From b00af970c2e3ee1beac5a11d15125eadd4ccfdc5 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 30 Jan 2026 02:57:29 +0000 Subject: [PATCH 01/12] chore: Update generation configuration at Fri Jan 30 02:57:19 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 0285f87b9360..b81c9a7f880b 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.66.0 -googleapis_commitish: af232e71d7b67e84811f55b48c51de867f98f35b +googleapis_commitish: fa4dc54cf123a351f3215b384a7dc7c9f36005b7 libraries_bom_version: 26.74.0 # the libraries are ordered with respect to library name, which is From c5c7d964e48b7654779700dc5a22f7ac28004018 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 30 Jan 2026 03:03:54 +0000 Subject: [PATCH 02/12] chore: generate libraries at Fri Jan 30 03:00:01 UTC 2026 --- java-dialogflow/README.md | 8 +- .../v2beta1/ParticipantsClient.java | 1 + .../v2beta1/ParticipantsClientTest.java | 2 + .../dialogflow/v2beta1/ParticipantProto.java | 386 +++++++++--------- .../StreamingAnalyzeContentRequest.java | 111 ++++- ...reamingAnalyzeContentRequestOrBuilder.java | 15 + .../dialogflow/v2beta1/participant.proto | 7 +- .../AsyncStreamingAnalyzeContent.java | 1 + 8 files changed, 330 insertions(+), 201 deletions(-) diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index a217f74877f2..7367fb5f66e4 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.88.0 + 4.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.88.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.89.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow/latest/overview [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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.89.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/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java index 138dd8183abc..fc03c19bcf11 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java @@ -1320,6 +1320,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request * .setCxCurrentPage("cxCurrentPage1596907507") * .setEnableExtendedStreaming(true) * .setEnablePartialAutomatedAgentReply(true) + * .setOutputMultipleUtterances(true) * .setEnableDebuggingInfo(true) * .build(); * bidiStream.send(request); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java index c68cbfabd24d..52736ec0d5b3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java @@ -740,6 +740,7 @@ public void streamingAnalyzeContentTest() throws Exception { .setCxCurrentPage("cxCurrentPage1596907507") .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) + .setOutputMultipleUtterances(true) .setEnableDebuggingInfo(true) .build(); @@ -776,6 +777,7 @@ public void streamingAnalyzeContentExceptionTest() throws Exception { .setCxCurrentPage("cxCurrentPage1596907507") .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) + .setOutputMultipleUtterances(true) .setEnableDebuggingInfo(true) .build(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index 5576c7518a88..864779f4dac2 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -524,7 +524,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017dtmf_parameters\030\t" + " \001(\0132/.google.cloud.dialogflow.v2beta1.DtmfParameters\"(\n" + "\017InputTextConfig\022\025\n\r" - + "language_code\030\001 \001(\t\"\343\006\n" + + "language_code\030\001 \001(\t\"\214\007\n" + "\036StreamingAnalyzeContentRequest\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022I\n" @@ -548,7 +548,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\027.google.protobuf.Struct\022\027\n" + "\017cx_current_page\030\017 \001(\t\022&\n" + "\031enable_extended_streaming\030\013 \001(\010B\003\340A\001\0221\n" - + "$enable_partial_automated_agent_reply\030\014 \001(\010B\003\340A\001\022\035\n" + + "$enable_partial_automated_agent_reply\030\014 \001(\010B\003\340A\001\022\'\n" + + "\032output_multiple_utterances\030\022 \001(\010B\003\340A\001\022\035\n" + "\025enable_debugging_info\030\023 \001(\010B\010\n" + "\006configB\007\n" + "\005input\"\315\005\n" @@ -557,17 +558,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132;.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult\022\022\n\n" + "reply_text\030\002 \001(\t\022A\n" + "\013reply_audio\030\003 \001(\0132,.google.cloud.dialogflow.v2beta1.OutputAudio\022S\n" - + "\025automated_agent_reply\030\004 \001(\01324.google.cl" - + "oud.dialogflow.v2beta1.AutomatedAgentReply\0229\n" + + "\025automated_agent_reply\030\004 \001(\01324.google.c" + + "loud.dialogflow.v2beta1.AutomatedAgentReply\0229\n" + "\007message\030\006 \001(\0132(.google.cloud.dialogflow.v2beta1.Message\022Y\n" + "\036human_agent_suggestion_results\030\007" + " \003(\01321.google.cloud.dialogflow.v2beta1.SuggestionResult\022V\n" - + "\033end_user_suggestion_results\030\010 \003(\01321.google.c" - + "loud.dialogflow.v2beta1.SuggestionResult\022H\n" + + "\033end_user_suggestion_results\030\010 \003(\01321.google." + + "cloud.dialogflow.v2beta1.SuggestionResult\022H\n" + "\017dtmf_parameters\030\n" + " \001(\0132/.google.cloud.dialogflow.v2beta1.DtmfParameters\022W\n" - + "\016debugging_info\030\013 \001(\0132?.google.cloud.dialog" - + "flow.v2beta1.CloudConversationDebuggingInfo\022\024\n" + + "\016debugging_info\030\013 \001(\0132?.google.cloud.dialo" + + "gflow.v2beta1.CloudConversationDebuggingInfo\022\024\n" + "\014speech_model\030\r" + " \001(\t\"j\n" + "\024AnnotatedMessagePart\022\014\n" @@ -599,8 +600,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"y\n" - + "\020SmartReplyAnswer\022\r" - + "\n" + + "\020SmartReplyAnswer\022\r\n" + "\005reply\030\001 \001(\t\022\022\n\n" + "confidence\030\002 \001(\002\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" @@ -613,26 +613,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DialogflowAssistAnswer\022D\n" + "\014query_result\030\001" + " \001(\0132,.google.cloud.dialogflow.v2beta1.QueryResultH\000\022N\n" - + "\021intent_suggestion\030\005 \001(\0132" - + "1.google.cloud.dialogflow.v2beta1.IntentSuggestionH\000\022\025\n\r" + + "\021intent_suggestion\030\005 \001(\013" + + "21.google.cloud.dialogflow.v2beta1.IntentSuggestionH\000\022\025\n\r" + "answer_record\030\002 \001(\tB\010\n" + "\006result\"\261\006\n" + "\020SuggestionResult\022#\n" + "\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022]\n" - + "\031suggest_articles_response\030\002 \001(\01328.google.cloud.dialog" - + "flow.v2beta1.SuggestArticlesResponseH\000\022l\n" - + "!suggest_knowledge_assist_response\030\010 \001(" - + "\0132?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponseH\000\022b\n" - + "\034suggest_faq_answers_response\030\003 \001(\0132:.google.clou" - + "d.dialogflow.v2beta1.SuggestFaqAnswersResponseH\000\022f\n" + + "\031suggest_articles_response\030\002 \001(\01328.google.cloud.dialo" + + "gflow.v2beta1.SuggestArticlesResponseH\000\022l\n" + + "!suggest_knowledge_assist_response\030\010 \001" + + "(\0132?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponseH\000\022b\n" + + "\034suggest_faq_answers_response\030\003 \001(\0132:.google.clo" + + "ud.dialogflow.v2beta1.SuggestFaqAnswersResponseH\000\022f\n" + "\036suggest_smart_replies_response\030\004" + " \001(\0132<.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponseH\000\022p\n" - + "#suggest_dialogflow_assists_response\030\005 \001(\0132A." - + "google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022o\n" - + "\"suggest_entity_extraction_response\030\007 \001(\0132A.google." - + "cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022e\n" - + "\035generate_suggestions_response\030\t \001(\0132<.google.cloud.dialog" - + "flow.v2beta1.GenerateSuggestionsResponseH\000B\025\n" + + "#suggest_dialogflow_assists_response\030\005 \001(\0132A" + + ".google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022o\n" + + "\"suggest_entity_extraction_response\030\007 \001(\0132A.google" + + ".cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022e\n" + + "\035generate_suggestions_response\030\t \001(\0132<.google.cloud.dialo" + + "gflow.v2beta1.GenerateSuggestionsResponseH\000B\025\n" + "\023suggestion_response\"\217\002\n" + "\026SuggestArticlesRequest\022=\n" + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n" @@ -640,11 +640,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022X\n" - + "\023assist_query_params\030\004 \001(\01326" - + ".google.cloud.dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\220\001\n" + + "\023assist_query_params\030\004 \001(\0132" + + "6.google.cloud.dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\220\001\n" + "\027SuggestArticlesResponse\022G\n" - + "\017article_answers\030\001 \003(\0132..googl" - + "e.cloud.dialogflow.v2beta1.ArticleAnswer\022\026\n" + + "\017article_answers\030\001 \003(\0132..goog" + + "le.cloud.dialogflow.v2beta1.ArticleAnswer\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\"\221\002\n" + "\030SuggestFaqAnswersRequest\022=\n" @@ -653,8 +653,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022X\n" - + "\023assist_query_params\030\004 \001(\01326.google.cloud.dia" - + "logflow.v2beta1.AssistQueryParametersB\003\340A\001\"\212\001\n" + + "\023assist_query_params\030\004 \001(\01326.google.cloud.di" + + "alogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\212\001\n" + "\031SuggestFaqAnswersResponse\022?\n" + "\013faq_answers\030\001" + " \003(\0132*.google.cloud.dialogflow.v2beta1.FaqAnswer\022\026\n" @@ -675,13 +675,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\"\253\003\n" + "\033GenerateSuggestionsResponse\022|\n" - + "\034generator_suggestion_answers\030\001 \003(\0132V.google.cloud.d" - + "ialogflow.v2beta1.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + + "\034generator_suggestion_answers\030\001 \003(\0132V.google.cloud." + + "dialogflow.v2beta1.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\032\315\001\n" + "\031GeneratorSuggestionAnswer\022R\n" - + "\024generator_suggestion\030\001 \001(\01324.go" - + "ogle.cloud.dialogflow.v2beta1.GeneratorSuggestion\022\030\n" + + "\024generator_suggestion\030\001 \001(\01324.g" + + "oogle.cloud.dialogflow.v2beta1.GeneratorSuggestion\022\030\n" + "\020source_generator\030\002 \001(\t\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\"\254\001\n" @@ -694,16 +694,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\t\022E\n" + "\010articles\030\002" + " \003(\01323.google.cloud.dialogflow.v2beta1.Suggestion.Article\022J\n" - + "\013faq_answers\030\004 \003(\0132" - + "5.google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer\022/\n" + + "\013faq_answers\030\004 \003(\013" + + "25.google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer\022/\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.Timestamp\022\026\n" + "\016latest_message\030\007 \001(\t\032\324\001\n" + "\007Article\022\r\n" + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\020\n" + "\010snippets\030\003 \003(\t\022S\n" - + "\010metadata\030\005 " - + "\003(\0132A.google.cloud.dialogflow.v2beta1.Suggestion.Article.MetadataEntry\022\025\n\r" + + "\010metadata\030\005" + + " \003(\0132A.google.cloud.dialogflow.v2beta1.Suggestion.Article.MetadataEntry\022\025\n\r" + "answer_record\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -740,22 +740,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\001" + " \001(\01325.google.cloud.dialogflow.v2beta1.ResponseMessage.TextH\000\022*\n" + "\007payload\030\002 \001(\0132\027.google.protobuf.StructH\000\022_\n" - + "\022live_agent_handoff\030\003 \001(\0132A.google.cloud.dialogflow" - + ".v2beta1.ResponseMessage.LiveAgentHandoffH\000\022Z\n" - + "\017end_interaction\030\004 \001(\0132?.google.cl" - + "oud.dialogflow.v2beta1.ResponseMessage.EndInteractionH\000\022R\n" - + "\013mixed_audio\030\005 \001(\0132;.g" - + "oogle.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioH\000\022i\n" - + "\027telephony_transfer_call\030\006 \001(\0132F.google.cloud.dialogflow.v" - + "2beta1.ResponseMessage.TelephonyTransferCallH\000\032\024\n" + + "\022live_agent_handoff\030\003 \001(\0132A.google.cloud.dialogflo" + + "w.v2beta1.ResponseMessage.LiveAgentHandoffH\000\022Z\n" + + "\017end_interaction\030\004 \001(\0132?.google.c" + + "loud.dialogflow.v2beta1.ResponseMessage.EndInteractionH\000\022R\n" + + "\013mixed_audio\030\005 \001(\0132;." + + "google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioH\000\022i\n" + + "\027telephony_transfer_call\030\006 \001(\0132F.google.cloud.dialogflow." + + "v2beta1.ResponseMessage.TelephonyTransferCallH\000\032\024\n" + "\004Text\022\014\n" + "\004text\030\001 \003(\t\032=\n" + "\020LiveAgentHandoff\022)\n" + "\010metadata\030\001 \001(\0132\027.google.protobuf.Struct\032\020\n" + "\016EndInteraction\032\276\001\n\n" + "MixedAudio\022U\n" - + "\010segments\030\001 \003(\0132C.google.cloud.di" - + "alogflow.v2beta1.ResponseMessage.MixedAudio.Segment\032Y\n" + + "\010segments\030\001 \003(\0132C.google.cloud.d" + + "ialogflow.v2beta1.ResponseMessage.MixedAudio.Segment\032Y\n" + "\007Segment\022\017\n" + "\005audio\030\001 \001(\014H\000\022\r\n" + "\003uri\030\002 \001(\tH\000\022#\n" @@ -779,24 +779,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\"\264\006\n" + "\025KnowledgeAssistAnswer\022^\n" - + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialogflow.v2be" - + "ta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" - + "\026suggested_query_answer\030\002 \001(\0132F.googl" - + "e.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialogflow.v2b" + + "eta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" + + "\026suggested_query_answer\030\002 \001(\0132F.goog" + + "le.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + "answer_record\030\003 \001(\t\032$\n" + "\016SuggestedQuery\022\022\n\n" + "query_text\030\001 \001(\t\032\225\004\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022f\n\n" - + "faq_source\030\003 \001(\0132P.google.clou" - + "d.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" - + "\021generative_source\030\004 \001(\0132W.google.cloud.dialogf" - + "low.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132P.google.clo" + + "ud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" + + "\021generative_source\030\004 \001(\0132W.google.cloud.dialog" + + "flow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\345\001\n" + "\020GenerativeSource\022q\n" - + "\010snippets\030\001 \003(\0132_.google.cloud.dialog" - + "flow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132_.google.cloud.dialo" + + "gflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" @@ -804,26 +804,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" + "\006source\"\327\n\n" + "\"BidiStreamingAnalyzeContentRequest\022\\\n" - + "\006config\030\001 \001(\0132J.g" - + "oogle.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" - + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v2be" - + "ta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + + "\006config\030\001 \001(\0132J." + + "google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" + + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v2b" + + "eta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + "\006Config\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022}\n" - + "\024voice_session_config\030\002 \001(\0132].go" - + "ogle.cloud.dialogflow.v2beta1.BidiStream" - + "ingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiStrea" + + "mingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + " initial_virtual_agent_parameters\030\003" + " \001(\0132\027.google.protobuf.Struct\022\\\n" - + "\"initial_virtual_agent_query_params\030\004 " - + "\001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\032\361\002\n" + + "\"initial_virtual_agent_query_params\030\004" + + " \001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\032\361\002\n" + "\022VoiceSessionConfig\022Q\n" - + "\024input_audio_encoding\030\001 \001(\0162..google.clou" - + "d.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + + "\024input_audio_encoding\030\001 \001(\0162..google.clo" + + "ud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + "\035input_audio_sample_rate_hertz\030\002 \001(\005B\003\340A\002\022X\n" - + "\025output_audio_encoding\030\003 \001(\01624.goo" - + "gle.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + + "\025output_audio_encoding\030\003 \001(\01624.go" + + "ogle.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + "\036output_audio_sample_rate_hertz\030\004 \001(\005B\003\340A\002\022+\n" + "\036enable_cx_proactive_processing\030\005 \001(\010B\003\340A\001\022(\n" + "\033enable_streaming_synthesize\030\027 \001(\010B\003\340A\001B\010\n" @@ -837,129 +836,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\027.google.protobuf.StructB\003\340A\001B\016\n" + "\014main_content\032\306\001\n" + "\005Input\022\017\n" - + "\005audio\030\001 \001(\014H\000\022D\n" - + "\004dtmf\030\002 \001(\01324.google.cloud.dial", - "ogflow.v2beta1.TelephonyDtmfEventsH\000\022]\n\004" - + "turn\030\003 \001(\0132M.google.cloud.dialogflow.v2b" - + "eta1.BidiStreamingAnalyzeContentRequest." - + "TurnInputH\000B\007\n\005inputB\t\n\007request\"\345\003\n#Bidi" - + "StreamingAnalyzeContentResponse\022Y\n\022recog" - + "nition_result\030\001 \001(\0132;.google.cloud.dialo" - + "gflow.v2beta1.StreamingRecognitionResult" - + "H\000\022m\n\017barge_in_signal\030\002 \001(\0132R.google.clo" - + "ud.dialogflow.v2beta1.BidiStreamingAnaly" - + "zeContentResponse.BargeInSignalH\000\022[\n\030ana" - + "lyze_content_response\030\003 \001(\01327.google.clo" - + "ud.dialogflow.v2beta1.AnalyzeContentResp" - + "onseH\000\022j\n\rturn_complete\030\004 \001(\0132Q.google.c" - + "loud.dialogflow.v2beta1.BidiStreamingAna" - + "lyzeContentResponse.TurnCompleteH\000\032\017\n\rBa" - + "rgeInSignal\032\016\n\014TurnCompleteB\n\n\010response2" - + "\262\037\n\014Participants\022\271\002\n\021CreateParticipant\0229" - + ".google.cloud.dialogflow.v2beta1.CreateP" - + "articipantRequest\032,.google.cloud.dialogf" - + "low.v2beta1.Participant\"\272\001\332A\022parent,part" - + "icipant\202\323\344\223\002\236\001\"9/v2beta1/{parent=project" - + "s/*/conversations/*}/participants:\013parti" - + "cipantZT\"E/v2beta1/{parent=projects/*/lo" - + "cations/*/conversations/*}/participants:" - + "\013participant\022\213\002\n\016GetParticipant\0226.google" - + ".cloud.dialogflow.v2beta1.GetParticipant" - + "Request\032,.google.cloud.dialogflow.v2beta" - + "1.Participant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta1" - + "/{name=projects/*/conversations/*/partic" - + "ipants/*}ZG\022E/v2beta1/{name=projects/*/l" - + "ocations/*/conversations/*/participants/" - + "*}\022\236\002\n\020ListParticipants\0228.google.cloud.d" - + "ialogflow.v2beta1.ListParticipantsReques" - + "t\0329.google.cloud.dialogflow.v2beta1.List" - + "ParticipantsResponse\"\224\001\332A\006parent\202\323\344\223\002\204\001\022" - + "9/v2beta1/{parent=projects/*/conversatio" - + "ns/*}/participantsZG\022E/v2beta1/{parent=p" - + "rojects/*/locations/*/conversations/*}/p" - + "articipants\022\326\002\n\021UpdateParticipant\0229.goog" - + "le.cloud.dialogflow.v2beta1.UpdatePartic" - + "ipantRequest\032,.google.cloud.dialogflow.v" - + "2beta1.Participant\"\327\001\332A\027participant,upda" - + "te_mask\202\323\344\223\002\266\0012E/v2beta1/{participant.na" - + "me=projects/*/conversations/*/participan" - + "ts/*}:\013participantZ`2Q/v2beta1/{particip" - + "ant.name=projects/*/locations/*/conversa" - + "tions/*/participants/*}:\013participant\022\216\003\n" - + "\016AnalyzeContent\0226.google.cloud.dialogflo" - + "w.v2beta1.AnalyzeContentRequest\0327.google" - + ".cloud.dialogflow.v2beta1.AnalyzeContent" - + "Response\"\212\002\332A\026participant,text_input\332A\027p" - + "articipant,audio_input\332A\027participant,eve" - + "nt_input\202\323\344\223\002\266\001\"O/v2beta1/{participant=p" - + "rojects/*/conversations/*/participants/*" - + "}:analyzeContent:\001*Z`\"[/v2beta1/{partici" - + "pant=projects/*/locations/*/conversation" - + "s/*/participants/*}:analyzeContent:\001*\022\242\001" - + "\n\027StreamingAnalyzeContent\022?.google.cloud" - + ".dialogflow.v2beta1.StreamingAnalyzeCont" - + "entRequest\032@.google.cloud.dialogflow.v2b" - + "eta1.StreamingAnalyzeContentResponse\"\000(\001" - + "0\001\022\256\001\n\033BidiStreamingAnalyzeContent\022C.goo" - + "gle.cloud.dialogflow.v2beta1.BidiStreami" - + "ngAnalyzeContentRequest\032D.google.cloud.d" - + "ialogflow.v2beta1.BidiStreamingAnalyzeCo" - + "ntentResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles\022" - + "7.google.cloud.dialogflow.v2beta1.Sugges" - + "tArticlesRequest\0328.google.cloud.dialogfl" - + "ow.v2beta1.SuggestArticlesResponse\"\326\001\332A\006" - + "parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=projects" - + "/*/conversations/*/participants/*}/sugge" - + "stions:suggestArticles:\001*Zh\"c/v2beta1/{p" - + "arent=projects/*/locations/*/conversatio" - + "ns/*/participants/*}/suggestions:suggest" - + "Articles:\001*\022\347\002\n\021SuggestFaqAnswers\0229.goog" - + "le.cloud.dialogflow.v2beta1.SuggestFaqAn" - + "swersRequest\032:.google.cloud.dialogflow.v" - + "2beta1.SuggestFaqAnswersResponse\"\332\001\332A\006pa" - + "rent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/*" - + "/conversations/*/participants/*}/suggest" - + "ions:suggestFaqAnswers:\001*Zj\"e/v2beta1/{p" - + "arent=projects/*/locations/*/conversatio" - + "ns/*/participants/*}/suggestions:suggest" - + "FaqAnswers:\001*\022\361\002\n\023SuggestSmartReplies\022;." - + "google.cloud.dialogflow.v2beta1.SuggestS" - + "martRepliesRequest\032<.google.cloud.dialog" - + "flow.v2beta1.SuggestSmartRepliesResponse" - + "\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=pr" - + "ojects/*/conversations/*/participants/*}" - + "/suggestions:suggestSmartReplies:\001*Zl\"g/" - + "v2beta1/{parent=projects/*/locations/*/c" - + "onversations/*/participants/*}/suggestio" - + "ns:suggestSmartReplies:\001*\022\367\002\n\026SuggestKno" - + "wledgeAssist\022>.google.cloud.dialogflow.v" - + "2beta1.SuggestKnowledgeAssistRequest\032?.g" - + "oogle.cloud.dialogflow.v2beta1.SuggestKn" - + "owledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"^/v2beta" - + "1/{parent=projects/*/conversations/*/par" - + "ticipants/*}/suggestions:suggestKnowledg" - + "eAssist:\001*Zo\"j/v2beta1/{parent=projects/" - + "*/locations/*/conversations/*/participan" - + "ts/*}/suggestions:suggestKnowledgeAssist" - + ":\001*\022\330\001\n\017ListSuggestions\0227.google.cloud.d" - + "ialogflow.v2beta1.ListSuggestionsRequest" - + "\0328.google.cloud.dialogflow.v2beta1.ListS" - + "uggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1/" - + "{parent=projects/*/conversations/*/parti" - + "cipants/*}/suggestions\022\351\001\n\021CompileSugges" - + "tion\0229.google.cloud.dialogflow.v2beta1.C" - + "ompileSuggestionRequest\032:.google.cloud.d" - + "ialogflow.v2beta1.CompileSuggestionRespo" - + "nse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=project" + + "\005audio\030", + "\001 \001(\014H\000\022D\n\004dtmf\030\002 \001(\01324.google.cloud.dia" + + "logflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" + + "\004turn\030\003 \001(\0132M.google.cloud.dialogflow.v2" + + "beta1.BidiStreamingAnalyzeContentRequest" + + ".TurnInputH\000B\007\n\005inputB\t\n\007request\"\345\003\n#Bid" + + "iStreamingAnalyzeContentResponse\022Y\n\022reco" + + "gnition_result\030\001 \001(\0132;.google.cloud.dial" + + "ogflow.v2beta1.StreamingRecognitionResul" + + "tH\000\022m\n\017barge_in_signal\030\002 \001(\0132R.google.cl" + + "oud.dialogflow.v2beta1.BidiStreamingAnal" + + "yzeContentResponse.BargeInSignalH\000\022[\n\030an" + + "alyze_content_response\030\003 \001(\01327.google.cl" + + "oud.dialogflow.v2beta1.AnalyzeContentRes" + + "ponseH\000\022j\n\rturn_complete\030\004 \001(\0132Q.google." + + "cloud.dialogflow.v2beta1.BidiStreamingAn" + + "alyzeContentResponse.TurnCompleteH\000\032\017\n\rB" + + "argeInSignal\032\016\n\014TurnCompleteB\n\n\010response" + + "2\262\037\n\014Participants\022\271\002\n\021CreateParticipant\022" + + "9.google.cloud.dialogflow.v2beta1.Create" + + "ParticipantRequest\032,.google.cloud.dialog" + + "flow.v2beta1.Participant\"\272\001\332A\022parent,par" + + "ticipant\202\323\344\223\002\236\001\"9/v2beta1/{parent=projec" + + "ts/*/conversations/*}/participants:\013part" + + "icipantZT\"E/v2beta1/{parent=projects/*/l" + + "ocations/*/conversations/*}/participants" + + ":\013participant\022\213\002\n\016GetParticipant\0226.googl" + + "e.cloud.dialogflow.v2beta1.GetParticipan" + + "tRequest\032,.google.cloud.dialogflow.v2bet" + + "a1.Participant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta" + + "1/{name=projects/*/conversations/*/parti" + + "cipants/*}ZG\022E/v2beta1/{name=projects/*/" + + "locations/*/conversations/*/participants" + + "/*}\022\236\002\n\020ListParticipants\0228.google.cloud." + + "dialogflow.v2beta1.ListParticipantsReque" + + "st\0329.google.cloud.dialogflow.v2beta1.Lis" + + "tParticipantsResponse\"\224\001\332A\006parent\202\323\344\223\002\204\001" + + "\0229/v2beta1/{parent=projects/*/conversati" + + "ons/*}/participantsZG\022E/v2beta1/{parent=" + + "projects/*/locations/*/conversations/*}/" + + "participants\022\326\002\n\021UpdateParticipant\0229.goo" + + "gle.cloud.dialogflow.v2beta1.UpdateParti" + + "cipantRequest\032,.google.cloud.dialogflow." + + "v2beta1.Participant\"\327\001\332A\027participant,upd" + + "ate_mask\202\323\344\223\002\266\0012E/v2beta1/{participant.n" + + "ame=projects/*/conversations/*/participa" + + "nts/*}:\013participantZ`2Q/v2beta1/{partici" + + "pant.name=projects/*/locations/*/convers" + + "ations/*/participants/*}:\013participant\022\216\003" + + "\n\016AnalyzeContent\0226.google.cloud.dialogfl" + + "ow.v2beta1.AnalyzeContentRequest\0327.googl" + + "e.cloud.dialogflow.v2beta1.AnalyzeConten" + + "tResponse\"\212\002\332A\026participant,text_input\332A\027" + + "participant,audio_input\332A\027participant,ev" + + "ent_input\202\323\344\223\002\266\001\"O/v2beta1/{participant=" + + "projects/*/conversations/*/participants/" + + "*}:analyzeContent:\001*Z`\"[/v2beta1/{partic" + + "ipant=projects/*/locations/*/conversatio" + + "ns/*/participants/*}:analyzeContent:\001*\022\242" + + "\001\n\027StreamingAnalyzeContent\022?.google.clou" + + "d.dialogflow.v2beta1.StreamingAnalyzeCon" + + "tentRequest\032@.google.cloud.dialogflow.v2" + + "beta1.StreamingAnalyzeContentResponse\"\000(" + + "\0010\001\022\256\001\n\033BidiStreamingAnalyzeContent\022C.go" + + "ogle.cloud.dialogflow.v2beta1.BidiStream" + + "ingAnalyzeContentRequest\032D.google.cloud." + + "dialogflow.v2beta1.BidiStreamingAnalyzeC" + + "ontentResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles" + + "\0227.google.cloud.dialogflow.v2beta1.Sugge" + + "stArticlesRequest\0328.google.cloud.dialogf" + + "low.v2beta1.SuggestArticlesResponse\"\326\001\332A" + + "\006parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=project" + "s/*/conversations/*/participants/*}/sugg" - + "estions:compile:\001*\032x\312A\031dialogflow.google" - + "apis.com\322AYhttps://www.googleapis.com/au" - + "th/cloud-platform,https://www.googleapis" - + ".com/auth/dialogflowB\245\001\n#com.google.clou" - + "d.dialogflow.v2beta1B\020ParticipantProtoP\001" - + "ZCcloud.google.com/go/dialogflow/apiv2be" - + "ta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Goo" - + "gle.Cloud.Dialogflow.V2Beta1b\006proto3" + + "estions:suggestArticles:\001*Zh\"c/v2beta1/{" + + "parent=projects/*/locations/*/conversati" + + "ons/*/participants/*}/suggestions:sugges" + + "tArticles:\001*\022\347\002\n\021SuggestFaqAnswers\0229.goo" + + "gle.cloud.dialogflow.v2beta1.SuggestFaqA" + + "nswersRequest\032:.google.cloud.dialogflow." + + "v2beta1.SuggestFaqAnswersResponse\"\332\001\332A\006p" + + "arent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/" + + "*/conversations/*/participants/*}/sugges" + + "tions:suggestFaqAnswers:\001*Zj\"e/v2beta1/{" + + "parent=projects/*/locations/*/conversati" + + "ons/*/participants/*}/suggestions:sugges" + + "tFaqAnswers:\001*\022\361\002\n\023SuggestSmartReplies\022;" + + ".google.cloud.dialogflow.v2beta1.Suggest" + + "SmartRepliesRequest\032<.google.cloud.dialo" + + "gflow.v2beta1.SuggestSmartRepliesRespons" + + "e\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=p" + + "rojects/*/conversations/*/participants/*" + + "}/suggestions:suggestSmartReplies:\001*Zl\"g" + + "/v2beta1/{parent=projects/*/locations/*/" + + "conversations/*/participants/*}/suggesti" + + "ons:suggestSmartReplies:\001*\022\367\002\n\026SuggestKn" + + "owledgeAssist\022>.google.cloud.dialogflow." + + "v2beta1.SuggestKnowledgeAssistRequest\032?." + + "google.cloud.dialogflow.v2beta1.SuggestK" + + "nowledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"^/v2bet" + + "a1/{parent=projects/*/conversations/*/pa" + + "rticipants/*}/suggestions:suggestKnowled" + + "geAssist:\001*Zo\"j/v2beta1/{parent=projects" + + "/*/locations/*/conversations/*/participa" + + "nts/*}/suggestions:suggestKnowledgeAssis" + + "t:\001*\022\330\001\n\017ListSuggestions\0227.google.cloud." + + "dialogflow.v2beta1.ListSuggestionsReques" + + "t\0328.google.cloud.dialogflow.v2beta1.List" + + "SuggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1" + + "/{parent=projects/*/conversations/*/part" + + "icipants/*}/suggestions\022\351\001\n\021CompileSugge" + + "stion\0229.google.cloud.dialogflow.v2beta1." + + "CompileSuggestionRequest\032:.google.cloud." + + "dialogflow.v2beta1.CompileSuggestionResp" + + "onse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=projec" + + "ts/*/conversations/*/participants/*}/sug" + + "gestions:compile:\001*\032x\312A\031dialogflow.googl" + + "eapis.com\322AYhttps://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/dialogflowB\245\001\n#com.google.clo" + + "ud.dialogflow.v2beta1B\020ParticipantProtoP" + + "\001ZCcloud.google.com/go/dialogflow/apiv2b" + + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Go" + + "ogle.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1203,6 +1202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CxCurrentPage", "EnableExtendedStreaming", "EnablePartialAutomatedAgentReply", + "OutputMultipleUtterances", "EnableDebuggingInfo", "Config", "Input", diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java index 6c5e83d38609..b607a1085a9a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java @@ -1116,6 +1116,27 @@ public boolean getEnablePartialAutomatedAgentReply() { return enablePartialAutomatedAgentReply_; } + public static final int OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER = 18; + private boolean outputMultipleUtterances_ = false; + + /** + * + * + *
+   * Optional. If multiple utterances are detected in the audio stream, process
+   * them individually instead of stitching them together to form a single
+   * utterance.
+   * 
+ * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + @java.lang.Override + public boolean getOutputMultipleUtterances() { + return outputMultipleUtterances_; + } + public static final int ENABLE_DEBUGGING_INFO_FIELD_NUMBER = 19; private boolean enableDebuggingInfo_ = false; @@ -1192,6 +1213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputCase_ == 17) { com.google.protobuf.GeneratedMessage.writeString(output, 17, input_); } + if (outputMultipleUtterances_ != false) { + output.writeBool(18, outputMultipleUtterances_); + } if (enableDebuggingInfo_ != false) { output.writeBool(19, enableDebuggingInfo_); } @@ -1259,6 +1283,9 @@ public int getSerializedSize() { if (inputCase_ == 17) { size += com.google.protobuf.GeneratedMessage.computeStringSize(17, input_); } + if (outputMultipleUtterances_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, outputMultipleUtterances_); + } if (enableDebuggingInfo_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, enableDebuggingInfo_); } @@ -1302,6 +1329,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableExtendedStreaming() != other.getEnableExtendedStreaming()) return false; if (getEnablePartialAutomatedAgentReply() != other.getEnablePartialAutomatedAgentReply()) return false; + if (getOutputMultipleUtterances() != other.getOutputMultipleUtterances()) return false; if (getEnableDebuggingInfo() != other.getEnableDebuggingInfo()) return false; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { @@ -1371,6 +1399,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePartialAutomatedAgentReply()); + hash = (37 * hash) + OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputMultipleUtterances()); hash = (37 * hash) + ENABLE_DEBUGGING_INFO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDebuggingInfo()); switch (configCase_) { @@ -1640,6 +1670,7 @@ public Builder clear() { cxCurrentPage_ = ""; enableExtendedStreaming_ = false; enablePartialAutomatedAgentReply_ = false; + outputMultipleUtterances_ = false; enableDebuggingInfo_ = false; configCase_ = 0; config_ = null; @@ -1721,6 +1752,9 @@ private void buildPartial0( result.enablePartialAutomatedAgentReply_ = enablePartialAutomatedAgentReply_; } if (((from_bitField0_ & 0x00008000) != 0)) { + result.outputMultipleUtterances_ = outputMultipleUtterances_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { result.enableDebuggingInfo_ = enableDebuggingInfo_; } result.bitField0_ |= to_bitField0_; @@ -1787,6 +1821,9 @@ public Builder mergeFrom( if (other.getEnablePartialAutomatedAgentReply() != false) { setEnablePartialAutomatedAgentReply(other.getEnablePartialAutomatedAgentReply()); } + if (other.getOutputMultipleUtterances() != false) { + setOutputMultipleUtterances(other.getOutputMultipleUtterances()); + } if (other.getEnableDebuggingInfo() != false) { setEnableDebuggingInfo(other.getEnableDebuggingInfo()); } @@ -1962,10 +1999,16 @@ public Builder mergeFrom( input_ = s; break; } // case 138 + case 144: + { + outputMultipleUtterances_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 144 case 152: { enableDebuggingInfo_ = input.readBool(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 152 case 162: @@ -4614,6 +4657,68 @@ public Builder clearEnablePartialAutomatedAgentReply() { return this; } + private boolean outputMultipleUtterances_; + + /** + * + * + *
+     * Optional. If multiple utterances are detected in the audio stream, process
+     * them individually instead of stitching them together to form a single
+     * utterance.
+     * 
+ * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + @java.lang.Override + public boolean getOutputMultipleUtterances() { + return outputMultipleUtterances_; + } + + /** + * + * + *
+     * Optional. If multiple utterances are detected in the audio stream, process
+     * them individually instead of stitching them together to form a single
+     * utterance.
+     * 
+ * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputMultipleUtterances to set. + * @return This builder for chaining. + */ + public Builder setOutputMultipleUtterances(boolean value) { + + outputMultipleUtterances_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If multiple utterances are detected in the audio stream, process
+     * them individually instead of stitching them together to form a single
+     * utterance.
+     * 
+ * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputMultipleUtterances() { + bitField0_ = (bitField0_ & ~0x00008000); + outputMultipleUtterances_ = false; + onChanged(); + return this; + } + private boolean enableDebuggingInfo_; /** @@ -4649,7 +4754,7 @@ public boolean getEnableDebuggingInfo() { public Builder setEnableDebuggingInfo(boolean value) { enableDebuggingInfo_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4667,7 +4772,7 @@ public Builder setEnableDebuggingInfo(boolean value) { * @return This builder for chaining. */ public Builder clearEnableDebuggingInfo() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); enableDebuggingInfo_ = false; onChanged(); return this; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java index b6e54478a37c..b9ddf2c92846 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java @@ -627,6 +627,21 @@ public interface StreamingAnalyzeContentRequestOrBuilder */ boolean getEnablePartialAutomatedAgentReply(); + /** + * + * + *
+   * Optional. If multiple utterances are detected in the audio stream, process
+   * them individually instead of stitching them together to form a single
+   * utterance.
+   * 
+ * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + boolean getOutputMultipleUtterances(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index bdfaad14076e..61cd31352728 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -1044,6 +1044,11 @@ message StreamingAnalyzeContentRequest { bool enable_partial_automated_agent_reply = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If multiple utterances are detected in the audio stream, process + // them individually instead of stitching them together to form a single + // utterance. + bool output_multiple_utterances = 18 [(google.api.field_behavior) = OPTIONAL]; + // if true, `StreamingAnalyzeContentResponse.debugging_info` will get // populated. bool enable_debugging_info = 19; diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java index f4f20e621c9d..78aae13ceb61 100644 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java @@ -55,6 +55,7 @@ public static void asyncStreamingAnalyzeContent() throws Exception { .setCxCurrentPage("cxCurrentPage1596907507") .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) + .setOutputMultipleUtterances(true) .setEnableDebuggingInfo(true) .build(); bidiStream.send(request); From 92abfe2125e2638cfcb149fc4a591223868453fa Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sat, 31 Jan 2026 02:51:07 +0000 Subject: [PATCH 03/12] chore: Update generation configuration at Sat Jan 31 02:50:57 UTC 2026 --- generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index b81c9a7f880b..9f3007984d09 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.66.0 -googleapis_commitish: fa4dc54cf123a351f3215b384a7dc7c9f36005b7 -libraries_bom_version: 26.74.0 +googleapis_commitish: f0e6fd9528d522d7165ecabafc1f202f2fafdead +libraries_bom_version: 26.75.0 # the libraries are ordered with respect to library name, which is # java-{library.library_name} or java-{library.api-shortname} when From 87af853281a0536e5e596e1c5010ee9cfa19f653 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sat, 31 Jan 2026 04:19:36 +0000 Subject: [PATCH 04/12] chore: generate libraries at Sat Jan 31 02:53:40 UTC 2026 --- java-accessapproval/README.md | 10 +- java-accesscontextmanager/README.md | 10 +- java-admanager/README.md | 8 +- java-advisorynotifications/README.md | 10 +- java-aiplatform/README.md | 10 +- .../reflect-config.json | 81 + .../cloud/aiplatform/v1/ContentProto.java | 259 +- .../cloud/aiplatform/v1/GenerationConfig.java | 2259 +++++++++++++++-- .../v1/GenerationConfigOrBuilder.java | 183 ++ .../cloud/aiplatform/v1/ImageConfig.java | 1918 +++++++++++++- .../aiplatform/v1/ImageConfigOrBuilder.java | 131 + .../com/google/cloud/aiplatform/v1/Part.java | 1252 ++++++++- .../cloud/aiplatform/v1/PartOrBuilder.java | 40 + .../cloud/aiplatform/v1/VideoMetadata.java | 104 + .../aiplatform/v1/VideoMetadataOrBuilder.java | 14 + .../google/cloud/aiplatform/v1/content.proto | 150 +- java-alloydb-connectors/README.md | 10 +- java-alloydb/README.md | 10 +- java-analytics-admin/README.md | 10 +- java-analytics-data/README.md | 10 +- java-analyticshub/README.md | 10 +- java-api-gateway/README.md | 10 +- java-apigee-connect/README.md | 10 +- java-apigee-registry/README.md | 10 +- java-apihub/README.md | 10 +- java-apikeys/README.md | 10 +- java-appengine-admin/README.md | 10 +- java-apphub/README.md | 10 +- java-area120-tables/README.md | 10 +- java-artifact-registry/README.md | 10 +- java-asset/README.md | 10 +- java-assured-workloads/README.md | 10 +- java-auditmanager/README.md | 10 +- java-automl/README.md | 10 +- java-backupdr/README.md | 10 +- java-bare-metal-solution/README.md | 10 +- java-batch/README.md | 10 +- java-beyondcorp-appconnections/README.md | 10 +- java-beyondcorp-appconnectors/README.md | 10 +- java-beyondcorp-appgateways/README.md | 10 +- .../README.md | 10 +- java-beyondcorp-clientgateways/README.md | 10 +- java-biglake/README.md | 10 +- java-bigquery-data-exchange/README.md | 10 +- java-bigqueryconnection/README.md | 10 +- java-bigquerydatapolicy/README.md | 10 +- java-bigquerydatatransfer/README.md | 10 +- java-bigquerymigration/README.md | 10 +- java-bigqueryreservation/README.md | 10 +- java-billing/README.md | 10 +- java-billingbudgets/README.md | 10 +- java-binary-authorization/README.md | 10 +- java-capacityplanner/README.md | 10 +- java-certificate-manager/README.md | 10 +- java-channel/README.md | 10 +- java-chat/README.md | 10 +- java-chronicle/README.md | 10 +- java-cloudapiregistry/README.md | 10 +- java-cloudbuild/README.md | 10 +- .../README.md | 10 +- java-cloudcontrolspartner/README.md | 10 +- java-cloudquotas/README.md | 10 +- .../QuotaAdjusterSettingsManagerClient.java | 18 +- .../QuotaAdjusterSettingsManagerGrpc.java | 20 +- .../v1beta/QuotaAdjusterSettings.java | 42 +- .../QuotaAdjusterSettingsOrBuilder.java | 12 +- .../v1beta/quota_adjuster_settings.proto | 10 +- java-cloudsecuritycompliance/README.md | 10 +- java-cloudsupport/README.md | 10 +- java-compute/README.md | 10 +- java-confidentialcomputing/README.md | 10 +- java-configdelivery/README.md | 10 +- java-connectgateway/README.md | 10 +- java-contact-center-insights/README.md | 10 +- java-container/README.md | 10 +- java-containeranalysis/README.md | 10 +- java-contentwarehouse/README.md | 10 +- java-data-fusion/README.md | 10 +- java-databasecenter/README.md | 10 +- java-datacatalog/README.md | 10 +- java-dataflow/README.md | 10 +- java-dataform/README.md | 10 +- java-datalabeling/README.md | 10 +- java-datalineage/README.md | 10 +- java-datamanager/README.md | 8 +- .../ads/datamanager/v1/AudienceProto.java | 12 +- .../ads/datamanager/v1/AwsWrappedKeyInfo.java | 35 +- .../v1/AwsWrappedKeyInfoOrBuilder.java | 10 +- .../ads/datamanager/v1/CartDataProto.java | 12 +- .../ads/datamanager/v1/ConsentProto.java | 13 +- .../ads/datamanager/v1/DestinationProto.java | 12 +- .../ads/datamanager/v1/DeviceInfoProto.java | 12 +- .../datamanager/v1/EncryptionInfoProto.java | 12 +- .../google/ads/datamanager/v1/ErrorProto.java | 12 +- .../google/ads/datamanager/v1/EventProto.java | 8 +- .../v1/ExperimentalFieldProto.java | 12 +- .../ads/datamanager/v1/GcpWrappedKeyInfo.java | 28 +- .../v1/GcpWrappedKeyInfoOrBuilder.java | 8 +- .../datamanager/v1/IngestionServiceProto.java | 12 +- .../datamanager/v1/ItemParameterProto.java | 12 +- .../ads/datamanager/v1/MatchRateProto.java | 12 +- .../datamanager/v1/ProcessingErrorsProto.java | 12 +- .../v1/RequestStatusPerDestinationProto.java | 12 +- .../datamanager/v1/TermsOfServiceProto.java | 12 +- .../ads/datamanager/v1/UserDataProto.java | 8 +- .../datamanager/v1/UserPropertiesProto.java | 12 +- .../google/ads/datamanager/v1/audience.proto | 4 +- .../google/ads/datamanager/v1/cart_data.proto | 4 +- .../google/ads/datamanager/v1/consent.proto | 4 +- .../ads/datamanager/v1/destination.proto | 4 +- .../ads/datamanager/v1/device_info.proto | 4 +- .../ads/datamanager/v1/encryption_info.proto | 13 +- .../google/ads/datamanager/v1/error.proto | 4 +- .../google/ads/datamanager/v1/event.proto | 4 +- .../datamanager/v1/experimental_field.proto | 4 +- .../datamanager/v1/ingestion_service.proto | 4 +- .../ads/datamanager/v1/item_parameter.proto | 4 +- .../ads/datamanager/v1/match_rate.proto | 4 +- .../datamanager/v1/processing_errors.proto | 4 +- .../v1/request_status_per_destination.proto | 4 +- .../ads/datamanager/v1/terms_of_service.proto | 4 +- .../google/ads/datamanager/v1/user_data.proto | 4 +- .../ads/datamanager/v1/user_properties.proto | 4 +- java-dataplex/README.md | 10 +- java-dataproc-metastore/README.md | 10 +- java-dataproc/README.md | 10 +- java-datastream/README.md | 10 +- java-deploy/README.md | 10 +- java-developerconnect/README.md | 10 +- java-devicestreaming/README.md | 10 +- java-dialogflow-cx/README.md | 10 +- java-dialogflow/README.md | 2 +- java-discoveryengine/README.md | 10 +- java-distributedcloudedge/README.md | 10 +- java-dlp/README.md | 10 +- java-dms/README.md | 10 +- java-document-ai/README.md | 10 +- java-domains/README.md | 10 +- java-edgenetwork/README.md | 10 +- java-enterpriseknowledgegraph/README.md | 10 +- java-errorreporting/README.md | 10 +- java-essential-contacts/README.md | 10 +- java-eventarc-publishing/README.md | 10 +- java-eventarc/README.md | 10 +- java-filestore/README.md | 10 +- java-financialservices/README.md | 10 +- java-functions/README.md | 10 +- java-gdchardwaremanagement/README.md | 10 +- java-geminidataanalytics/README.md | 10 +- java-gke-backup/README.md | 10 +- java-gke-connect-gateway/README.md | 10 +- java-gke-multi-cloud/README.md | 10 +- java-gkehub/README.md | 10 +- java-gkerecommender/README.md | 10 +- java-grafeas/README.md | 8 +- java-gsuite-addons/README.md | 10 +- java-hypercomputecluster/README.md | 10 +- java-iam-admin/README.md | 10 +- java-iam/README.md | 10 +- java-iamcredentials/README.md | 10 +- java-iap/README.md | 10 +- java-ids/README.md | 10 +- java-infra-manager/README.md | 10 +- java-iot/README.md | 10 +- .../README.md | 8 +- .../README.md | 8 +- java-kms/README.md | 10 +- java-kmsinventory/README.md | 10 +- java-language/README.md | 10 +- java-licensemanager/README.md | 10 +- java-life-sciences/README.md | 10 +- java-locationfinder/README.md | 10 +- java-lustre/README.md | 10 +- java-maintenance/README.md | 10 +- java-managed-identities/README.md | 10 +- java-managedkafka/README.md | 10 +- java-maps-addressvalidation/README.md | 8 +- java-maps-area-insights/README.md | 8 +- java-maps-fleetengine-delivery/README.md | 8 +- java-maps-fleetengine/README.md | 8 +- java-maps-mapsplatformdatasets/README.md | 8 +- java-maps-places/README.md | 8 +- java-maps-routeoptimization/README.md | 8 +- java-maps-routing/README.md | 8 +- java-maps-solar/README.md | 8 +- java-marketingplatformadminapi/README.md | 8 +- java-mediatranslation/README.md | 10 +- java-meet/README.md | 10 +- java-memcache/README.md | 10 +- java-migrationcenter/README.md | 10 +- java-modelarmor/README.md | 10 +- java-monitoring-dashboards/README.md | 10 +- java-monitoring-metricsscope/README.md | 10 +- java-monitoring/README.md | 10 +- java-netapp/README.md | 10 +- java-network-management/README.md | 10 +- java-network-security/README.md | 10 +- java-networkconnectivity/README.md | 10 +- java-networkservices/README.md | 10 +- java-notebooks/README.md | 10 +- java-optimization/README.md | 10 +- java-oracledatabase/README.md | 10 +- java-orchestration-airflow/README.md | 10 +- java-orgpolicy/README.md | 10 +- java-os-config/README.md | 10 +- java-os-login/README.md | 10 +- java-parallelstore/README.md | 10 +- java-parametermanager/README.md | 10 +- java-phishingprotection/README.md | 10 +- java-policy-troubleshooter/README.md | 10 +- java-policysimulator/README.md | 10 +- java-private-catalog/README.md | 10 +- java-privilegedaccessmanager/README.md | 10 +- java-profiler/README.md | 10 +- java-publicca/README.md | 10 +- java-rapidmigrationassessment/README.md | 10 +- java-recaptchaenterprise/README.md | 10 +- java-recommendations-ai/README.md | 10 +- java-recommender/README.md | 10 +- java-redis-cluster/README.md | 10 +- java-redis/README.md | 10 +- java-resourcemanager/README.md | 10 +- java-retail/README.md | 10 +- java-run/README.md | 10 +- java-saasservicemgmt/README.md | 10 +- java-scheduler/README.md | 10 +- java-secretmanager/README.md | 10 +- java-securesourcemanager/README.md | 10 +- java-security-private-ca/README.md | 10 +- java-securitycenter-settings/README.md | 10 +- java-securitycenter/README.md | 10 +- java-securitycentermanagement/README.md | 10 +- java-securityposture/README.md | 10 +- java-service-control/README.md | 10 +- java-service-management/README.md | 10 +- java-service-usage/README.md | 10 +- java-servicedirectory/README.md | 10 +- java-servicehealth/README.md | 10 +- java-shell/README.md | 10 +- java-shopping-css/README.md | 8 +- java-shopping-merchant-accounts/README.md | 8 +- java-shopping-merchant-conversions/README.md | 8 +- java-shopping-merchant-datasources/README.md | 8 +- java-shopping-merchant-inventories/README.md | 8 +- java-shopping-merchant-lfp/README.md | 8 +- .../README.md | 8 +- .../README.md | 8 +- java-shopping-merchant-products/README.md | 8 +- java-shopping-merchant-promotions/README.md | 8 +- java-shopping-merchant-quota/README.md | 8 +- java-shopping-merchant-reports/README.md | 8 +- java-shopping-merchant-reviews/README.md | 8 +- java-spanneradapter/README.md | 10 +- java-speech/README.md | 10 +- java-storage-transfer/README.md | 10 +- java-storagebatchoperations/README.md | 10 +- java-storageinsights/README.md | 10 +- java-talent/README.md | 10 +- java-tasks/README.md | 10 +- java-telcoautomation/README.md | 10 +- java-texttospeech/README.md | 10 +- java-tpu/README.md | 10 +- java-trace/README.md | 10 +- java-translate/README.md | 10 +- java-valkey/README.md | 10 +- java-vectorsearch/README.md | 10 +- .../v1beta/DataObjectSearchServiceClient.java | 27 +- .../v1beta/DataObjectServiceClient.java | 39 +- .../v1beta/VectorSearchServiceClient.java | 159 +- .../v1beta/VectorSearchServiceSettings.java | 26 + .../vectorsearch/v1beta/gapic_metadata.json | 3 + .../stub/DataObjectServiceStubSettings.java | 40 +- .../stub/GrpcVectorSearchServiceStub.java | 52 + .../stub/HttpJsonVectorSearchServiceStub.java | 85 + .../v1beta/stub/VectorSearchServiceStub.java | 14 + .../stub/VectorSearchServiceStubSettings.java | 133 +- .../reflect-config.json | 81 + .../v1beta/MockVectorSearchServiceImpl.java | 21 + ...VectorSearchServiceClientHttpJsonTest.java | 52 + .../v1beta/VectorSearchServiceClientTest.java | 50 + .../v1beta/VectorSearchServiceGrpc.java | 130 + .../cloud/vectorsearch/v1beta/Collection.java | 8 +- .../v1beta/CollectionOrBuilder.java | 4 +- .../v1beta/CreateCollectionRequest.java | 14 +- .../CreateCollectionRequestOrBuilder.java | 4 +- .../v1beta/CreateDataObjectRequest.java | 14 +- .../CreateDataObjectRequestOrBuilder.java | 4 +- .../v1beta/CreateIndexRequest.java | 14 +- .../v1beta/CreateIndexRequestOrBuilder.java | 4 +- .../cloud/vectorsearch/v1beta/DataObject.java | 63 +- .../v1beta/DataObjectOrBuilder.java | 18 +- .../vectorsearch/v1beta/DataObjectProto.java | 14 +- .../v1beta/DataObjectSearchServiceProto.java | 150 +- .../v1beta/ExportDataObjectsMetadata.java | 978 +++++++ .../ExportDataObjectsMetadataOrBuilder.java | 102 + .../v1beta/ExportDataObjectsRequest.java | 2111 +++++++++++++++ .../ExportDataObjectsRequestOrBuilder.java | 110 + .../v1beta/ExportDataObjectsResponse.java | 402 +++ .../ExportDataObjectsResponseOrBuilder.java | 27 + .../v1beta/ImportDataObjectsMetadata.java | 6 +- .../v1beta/ImportDataObjectsRequest.java | 248 +- .../v1beta/ImportDataObjectsResponse.java | 6 +- .../cloud/vectorsearch/v1beta/SearchHint.java | 96 +- .../v1beta/SearchHintOrBuilder.java | 26 +- .../vectorsearch/v1beta/SemanticSearch.java | 331 +++ .../v1beta/SemanticSearchOrBuilder.java | 49 + .../cloud/vectorsearch/v1beta/TextSearch.java | 284 +++ .../v1beta/TextSearchOrBuilder.java | 40 + .../v1beta/UpdateCollectionRequest.java | 36 +- .../UpdateCollectionRequestOrBuilder.java | 9 +- .../cloud/vectorsearch/v1beta/Vector.java | 20 +- .../vectorsearch/v1beta/VectorOrBuilder.java | 6 +- .../v1beta/VectorSearchServiceProto.java | 175 +- .../v1beta/VertexEmbeddingConfig.java | 14 +- .../VertexEmbeddingConfigOrBuilder.java | 4 +- .../vectorsearch/v1beta/data_object.proto | 11 +- .../v1beta/data_object_search_service.proto | 22 +- .../v1beta/data_object_service.proto | 4 +- .../v1beta/embedding_config.proto | 4 +- .../v1beta/vectorsearch_service.proto | 92 +- .../AsyncExportDataObjects.java | 50 + .../AsyncExportDataObjectsLRO.java | 51 + .../SyncExportDataObjects.java | 47 + java-video-intelligence/README.md | 10 +- java-video-live-stream/README.md | 10 +- java-video-stitcher/README.md | 10 +- java-video-transcoder/README.md | 10 +- java-vision/README.md | 10 +- java-visionai/README.md | 10 +- java-vmmigration/README.md | 10 +- java-vmwareengine/README.md | 10 +- java-vpcaccess/README.md | 10 +- java-webrisk/README.md | 10 +- java-websecurityscanner/README.md | 10 +- java-workflow-executions/README.md | 10 +- java-workflows/README.md | 10 +- java-workspaceevents/README.md | 10 +- java-workstations/README.md | 10 +- 338 files changed, 13562 insertions(+), 2076 deletions(-) create mode 100644 java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsMetadata.java create mode 100644 java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsMetadataOrBuilder.java create mode 100644 java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequest.java create mode 100644 java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequestOrBuilder.java create mode 100644 java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsResponse.java create mode 100644 java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsResponseOrBuilder.java create mode 100644 java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java create mode 100644 java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java create mode 100644 java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index eea259b28db5..57363b8f3ada 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.83.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-accessapproval/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.84.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 b089878ff8d9..42b8b1a65d04 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.83.0 + 1.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.83.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.83.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-identity-accesscontextmanager/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.84.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 9a7f3fb38360..4113112f9f87 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads ad-manager - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.41.0' +implementation 'com.google.api-ads:ad-manager:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.41.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.42.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview [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.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/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-advisorynotifications/README.md b/java-advisorynotifications/README.md index 13e09d418fd4..92fe00a0c1e3 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.71.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.72.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-advisorynotifications/latest/overview [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.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.72.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 09e8d7f9a14c..bc9fc27c1415 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.83.0 + 3.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.83.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-aiplatform/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.84.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/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index 5c9a28e61824..58d4a4af0c56 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -8162,6 +8162,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GenerationConfig$MediaResolution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GenerationConfig$Modality", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GenerationConfig$RoutingConfig", "queryAllDeclaredConstructors": true, @@ -8243,6 +8261,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GenerationConfig$ThinkingConfig$ThinkingLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GenericOperationMetadata", "queryAllDeclaredConstructors": true, @@ -9557,6 +9584,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ImageConfig$ImageOutputOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImageConfig$ImageOutputOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImageConfig$PersonGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ImportDataConfig", "queryAllDeclaredConstructors": true, @@ -14435,6 +14489,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Part$MediaResolution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Part$MediaResolution$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Part$MediaResolution$Level", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.PartialArg", "queryAllDeclaredConstructors": true, 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 702f5aaa4952..1a36f8c9c5e0 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 @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_Part_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_Part_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_Blob_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -88,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ImageConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ImageConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_GenerationConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -224,7 +232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007Content\022\021\n" + "\004role\030\001 \001(\tB\003\340A\001\0224\n" + "\005parts\030\002 \003(\0132" - + " .google.cloud.aiplatform.v1.PartB\003\340A\002\"\350\004\n" + + " .google.cloud.aiplatform.v1.PartB\003\340A\002\"\271\007\n" + "\004Part\022\023\n" + "\004text\030\001 \001(\tB\003\340A\001H\000\022<\n" + "\013inline_data\030\002 \001(\0132" @@ -243,20 +251,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010B\003\340A\001\022\036\n" + "\021thought_signature\030\013 \001(\014B\003\340A\001\022H\n" + "\016video_metadata\030\004" - + " \001(\0132).google.cloud.aiplatform.v1.VideoMetadataB\003\340A\001H\001B\006\n" - + "\004dataB\n" - + "\n" + + " \001(\0132).google.cloud.aiplatform.v1.VideoMetadataB\003\340A\001H\001\022J\n" + + "\020media_resolution\030\014" + + " \001(\01320.google.cloud.aiplatform.v1.Part.MediaResolution\032\202\002\n" + + "\017MediaResolution\022G\n" + + "\005level\030\001 \001(\01626.google.cloud.aip" + + "latform.v1.Part.MediaResolution.LevelH\000\"\234\001\n" + + "\005Level\022 \n" + + "\034MEDIA_RESOLUTION_UNSPECIFIED\020\000\022\030\n" + + "\024MEDIA_RESOLUTION_LOW\020\001\022\033\n" + + "\027MEDIA_RESOLUTION_MEDIUM\020\002\022\031\n" + + "\025MEDIA_RESOLUTION_HIGH\020\003\022\037\n" + + "\033MEDIA_RESOLUTION_ULTRA_HIGH\020\004B\007\n" + + "\005valueB\006\n" + + "\004dataB\n\n" + "\010metadata\"1\n" + "\004Blob\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" + "\004data\030\002 \001(\014B\003\340A\002\"9\n" + "\010FileData\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\025\n" - + "\010file_uri\030\002 \001(\tB\003\340A\002\"y\n\r" + + "\010file_uri\030\002 \001(\tB\003\340A\002\"\213\001\n\r" + "VideoMetadata\0224\n" + "\014start_offset\030\001" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0222\n\n" - + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"=\n" + + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\020\n" + + "\003fps\030\003 \001(\001B\003\340A\001\"=\n" + "\023PrebuiltVoiceConfig\022\027\n\n" + "voice_name\030\001 \001(\tH\000\210\001\001B\r\n" + "\013_voice_name\"P\n" @@ -264,27 +284,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tmime_type\030\001 \001(\tB\003\340A\001\022\037\n" + "\022voice_sample_audio\030\002 \001(\014B\003\340A\001\"\312\001\n" + "\013VoiceConfig\022P\n" - + "\025prebuilt_voice_config\030\001 \001(\0132/.go" - + "ogle.cloud.aiplatform.v1.PrebuiltVoiceConfigH\000\022Y\n" - + "\027replicated_voice_config\030\003 \001(\0132" - + "1.google.cloud.aiplatform.v1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n" + + "\025prebuilt_voice_config\030\001 \001(\0132/.google" + + ".cloud.aiplatform.v1.PrebuiltVoiceConfigH\000\022Y\n" + + "\027replicated_voice_config\030\003 \001(\01321.go" + + "ogle.cloud.aiplatform.v1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n" + "\014voice_config\"n\n" + "\022SpeakerVoiceConfig\022\024\n" + "\007speaker\030\001 \001(\tB\003\340A\002\022B\n" + "\014voice_config\030\002" + " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfigB\003\340A\002\"m\n" + "\027MultiSpeakerVoiceConfig\022R\n" - + "\025speaker_voice_configs\030\002 " - + "\003(\0132..google.cloud.aiplatform.v1.SpeakerVoiceConfigB\003\340A\002\"\302\001\n" + + "\025speaker_voice_configs\030\002 \003(\0132" + + "..google.cloud.aiplatform.v1.SpeakerVoiceConfigB\003\340A\002\"\302\001\n" + "\014SpeechConfig\022=\n" + "\014voice_config\030\001" + " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfig\022\032\n\r" + "language_code\030\002 \001(\tB\003\340A\001\022W\n" - + "\032multi_speaker_voice_config\030\003 \001(\013" - + "23.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig\">\n" - + "\013ImageConfig\022\036\n" - + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\000\210\001\001B\017\n\r" - + "_aspect_ratio\"\257\016\n" + + "\032multi_speaker_voice_config\030\003 \001(\01323.g" + + "oogle.cloud.aiplatform.v1.MultiSpeakerVoiceConfig\"\304\004\n" + + "\013ImageConfig\022b\n" + + "\024image_output_options\030\001 \001(\0132:.google.cloud.aiplatfor" + + "m.v1.ImageConfig.ImageOutputOptionsB\003\340A\001H\000\210\001\001\022\036\n" + + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\001\210\001\001\022]\n" + + "\021person_generation\030\003 \001(\01628.google.cloud." + + "aiplatform.v1.ImageConfig.PersonGenerationB\003\340A\001H\002\210\001\001\022\034\n\n" + + "image_size\030\004 \001(\tB\003\340A\001H\003\210\001\001\032~\n" + + "\022ImageOutputOptions\022\033\n" + + "\tmime_type\030\001 \001(\tB\003\340A\001H\000\210\001\001\022%\n" + + "\023compression_quality\030\002 \001(\005B\003\340A\001H\001\210\001\001B\014\n\n" + + "_mime_typeB\026\n" + + "\024_compression_quality\"e\n" + + "\020PersonGeneration\022!\n" + + "\035PERSON_GENERATION_UNSPECIFIED\020\000\022\r\n" + + "\tALLOW_ALL\020\001\022\017\n" + + "\013ALLOW_ADULT\020\002\022\016\n\n" + + "ALLOW_NONE\020\003B\027\n" + + "\025_image_output_optionsB\017\n\r" + + "_aspect_ratioB\024\n" + + "\022_person_generationB\r\n" + + "\013_image_size\"\341\023\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" @@ -304,24 +342,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022>\n" + "\024response_json_schema\030\034" + " \001(\0132\026.google.protobuf.ValueB\003\340A\001H\013\210\001\001\022\\\n" - + "\016routing_config\030\021 \001(\0132:.goo" - + "gle.cloud.aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022I\n\r" + + "\016routing_config\030\021 \001(\0132:.google.c" + + "loud.aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022!\n" + + "\017audio_timestamp\030\024 \001(\010B\003\340A\001H\r" + + "\210\001\001\022W\n" + + "\023response_modalities\030\025 " + + "\003(\01625.google.cloud.aiplatform.v1.GenerationConfig.ModalityB\003\340A\001\022`\n" + + "\020media_resolution\030\026 \001(\0162<.google.cloud.aiplatform.v1.G" + + "enerationConfig.MediaResolutionB\003\340A\001H\016\210\001\001\022I\n\r" + "speech_config\030\027" - + " \001(\0132(.google.cloud.aiplatform.v1.SpeechConfigB\003\340A\001H\r" - + "\210\001\001\022Y\n" - + "\017thinking_config\030\031" - + " \001(\0132;.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n" - + "\014image_config\030\036" - + " \001(\0132\'.google.cloud.aiplatform.v1.ImageConfigB\003\340A\001H\016\210\001\001\032\302\004\n\r" + + " \001(\0132(.google.cloud.aiplatform.v1.SpeechConfigB\003\340A\001H\017\210\001\001\022Y\n" + + "\017thinking_config\030\031 \001(\0132;.google.cloud.aip" + + "latform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n" + + "\014image_config\030\036 \001(\0132\'.google.c" + + "loud.aiplatform.v1.ImageConfigB\003\340A\001H\020\210\001\001\032\302\004\n\r" + "RoutingConfig\022_\n" - + "\tauto_mode\030\001 \001(\0132J.google.cloud.aipl" - + "atform.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n" - + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplatform.v1.GenerationC" - + "onfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n" + + "\tauto_mode\030\001 \001(\0132J." + + "google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n" + + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplatfo" + + "rm.v1.GenerationConfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n" + "\017AutoRoutingMode\022\210\001\n" - + "\030model_routing_preference\030\001 \001(\0162a.google.cloud.aiplatform" - + ".v1.GenerationConfig.RoutingConfig.AutoR" - + "outingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n" + + "\030model_routing_preference\030\001 \001(\0162a.google" + + ".cloud.aiplatform.v1.GenerationConfig.Ro" + + "utingConfig.AutoRoutingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n" + "\026ModelRoutingPreference\022\013\n" + "\007UNKNOWN\020\000\022\026\n" + "\022PRIORITIZE_QUALITY\020\001\022\014\n" @@ -331,12 +374,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ManualRoutingMode\022\027\n\n" + "model_name\030\001 \001(\tH\000\210\001\001B\r\n" + "\013_model_nameB\020\n" - + "\016routing_config\032\200\001\n" + + "\016routing_config\032\335\002\n" + "\016ThinkingConfig\022\"\n" + "\020include_thoughts\030\001 \001(\010B\003\340A\001H\000\210\001\001\022!\n" - + "\017thinking_budget\030\003 \001(\005B\003\340A\001H\001\210\001\001B\023\n" + + "\017thinking_budget\030\003 \001(\005B\003\340A\001H\001\210\001\001\022k\n" + + "\016thinking_level\030\004 \001(\0162I.google.cloud.aiplatfor" + + "m.v1.GenerationConfig.ThinkingConfig.ThinkingLevelB\003\340A\001H\002\210\001\001\"[\n\r" + + "ThinkingLevel\022\036\n" + + "\032THINKING_LEVEL_UNSPECIFIED\020\000\022\007\n" + + "\003LOW\020\001\022\n" + + "\n" + + "\006MEDIUM\020\002\022\010\n" + + "\004HIGH\020\003\022\013\n" + + "\007MINIMAL\020\004B\023\n" + "\021_include_thoughtsB\022\n" - + "\020_thinking_budgetB\016\n" + + "\020_thinking_budgetB\021\n" + + "\017_thinking_level\"D\n" + + "\010Modality\022\030\n" + + "\024MODALITY_UNSPECIFIED\020\000\022\010\n" + + "\004TEXT\020\001\022\t\n" + + "\005IMAGE\020\002\022\t\n" + + "\005AUDIO\020\003\"\205\001\n" + + "\017MediaResolution\022 \n" + + "\034MEDIA_RESOLUTION_UNSPECIFIED\020\000\022\030\n" + + "\024MEDIA_RESOLUTION_LOW\020\001\022\033\n" + + "\027MEDIA_RESOLUTION_MEDIUM\020\002\022\031\n" + + "\025MEDIA_RESOLUTION_HIGH\020\003B\016\n" + "\014_temperatureB\010\n" + "\006_top_pB\010\n" + "\006_top_kB\022\n" @@ -349,16 +412,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_seedB\022\n" + "\020_response_schemaB\027\n" + "\025_response_json_schemaB\021\n" - + "\017_routing_configB\020\n" + + "\017_routing_configB\022\n" + + "\020_audio_timestampB\023\n" + + "\021_media_resolutionB\020\n" + "\016_speech_configB\017\n\r" + "_image_config\"\353\003\n\r" + "SafetySetting\022?\n" - + "\010category\030\001 \001(\0162(.go" - + "ogle.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n" - + "\tthreshold\030\002 \001(\0162<.google.cloud.aip" - + "latform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n" - + "\006method\030\004 \001(\01629.google.cloud." - + "aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n" + + "\010category\030\001 \001(\016" + + "2(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n" + + "\tthreshold\030\002 \001(\0162<.google.clou" + + "d.aiplatform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n" + + "\006method\030\004 \001(\01629.google.c" + + "loud.aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n" + "\022HarmBlockThreshold\022$\n" + " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n" + "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n" @@ -373,11 +438,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014SafetyRating\022?\n" + "\010category\030\001" + " \001(\0162(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\003\022R\n" - + "\013probability\030\002 \001(\01628.g" - + "oogle.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n" + + "\013probability\030\002 \001(" + + "\01628.google.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n" + "\021probability_score\030\005 \001(\002B\003\340A\003\022L\n" - + "\010severity\030\006 \001(\01625.google.c" - + "loud.aiplatform.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n" + + "\010severity\030\006 \001(\01625.goo" + + "gle.cloud.aiplatform.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" @@ -393,8 +458,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024HARM_SEVERITY_MEDIUM\020\003\022\026\n" + "\022HARM_SEVERITY_HIGH\020\004\"P\n" + "\020CitationMetadata\022<\n" - + "\tcitations\030\001" - + " \003(\0132$.google.cloud.aiplatform.v1.CitationB\003\340A\003\"\252\001\n" + + "\tcitations\030\001 \003(\0132$.go" + + "ogle.cloud.aiplatform.v1.CitationB\003\340A\003\"\252\001\n" + "\010Citation\022\030\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" @@ -410,17 +475,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014avg_logprobs\030\t \001(\001B\003\340A\003\022H\n" + "\017logprobs_result\030\n" + " \001(\0132*.google.cloud.aiplatform.v1.LogprobsResultB\003\340A\003\022N\n\r" - + "finish_reason\030\003 " - + "\001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n" + + "finish_reason\030\003" + + " \001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n" + "\016safety_ratings\030\004" + " \003(\0132(.google.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022 \n" + "\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n" - + "\021citation_metadata\030\006 \001(\0132,.googl" - + "e.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n" - + "\022grounding_metadata\030\007 \001(\0132-.google" - + ".cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n" - + "\024url_context_metadata\030\013 \001(\0132..goog" - + "le.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n" + + "\021citation_metadata\030\006 \001(\0132,." + + "google.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n" + + "\022grounding_metadata\030\007 \001(\0132-.g" + + "oogle.cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n" + + "\024url_context_metadata\030\013 \001(\0132." + + ".google.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n" + "\014FinishReason\022\035\n" + "\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n" + "\004STOP\020\001\022\016\n\n" @@ -436,21 +501,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\021\n" + "\017_finish_message\"X\n" + "\022UrlContextMetadata\022B\n" - + "\014url_metadata\030\001 \003(\0132\'." - + "google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n" + + "\014url_metadata\030\001 \003" + + "(\0132\'.google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n" + "\013UrlMetadata\022\025\n\r" + "retrieved_url\030\001 \001(\t\022X\n" - + "\024url_retrieval_status\030\002 \001(\0162:.googl" - + "e.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n" + + "\024url_retrieval_status\030\002 \001(\0162:." + + "google.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n" + "\022UrlRetrievalStatus\022$\n" + " URL_RETRIEVAL_STATUS_UNSPECIFIED\020\000\022 \n" + "\034URL_RETRIEVAL_STATUS_SUCCESS\020\001\022\036\n" + "\032URL_RETRIEVAL_STATUS_ERROR\020\002\"\217\003\n" + "\016LogprobsResult\022P\n" - + "\016top_candidates\030\001 \003(\01328.google.cloud.aip" - + "latform.v1.LogprobsResult.TopCandidates\022O\n" - + "\021chosen_candidates\030\002 \003(\01324.google.clou" - + "d.aiplatform.v1.LogprobsResult.Candidate\032\177\n" + + "\016top_candidates\030\001 \003(\01328.google.clou" + + "d.aiplatform.v1.LogprobsResult.TopCandidates\022O\n" + + "\021chosen_candidates\030\002 \003(\01324.google" + + ".cloud.aiplatform.v1.LogprobsResult.Candidate\032\177\n" + "\tCandidate\022\022\n" + "\005token\030\001 \001(\tH\000\210\001\001\022\025\n" + "\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n" @@ -468,10 +533,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\004 \001(\tB\003\340A\003\"\322\007\n" + "\016GroundingChunk\022=\n" + "\003web\030\001 \001(\0132..google.cloud.aiplatform.v1.GroundingChunk.WebH\000\022X\n" - + "\021retrieved_context\030\002 \001(\0132;.goo" - + "gle.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n" - + "\004maps\030\003 \001(\0132/.google" - + ".cloud.aiplatform.v1.GroundingChunk.MapsH\000\032=\n" + + "\021retrieved_context\030\002 \001(\0132" + + ";.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n" + + "\004maps\030\003 \001(\0132/.g" + + "oogle.cloud.aiplatform.v1.GroundingChunk.MapsH\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" @@ -493,11 +558,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\002 \001(\tH\001\210\001\001\022\021\n" + "\004text\030\003 \001(\tH\002\210\001\001\022\025\n" + "\010place_id\030\004 \001(\tH\003\210\001\001\022`\n" - + "\024place_answer_sources\030\005 \001(\0132B.google.cloud.aiplat" - + "form.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n" + + "\024place_answer_sources\030\005 \001(\0132B.google.cloud.a" + + "iplatform.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n" + "\022PlaceAnswerSources\022i\n" - + "\017review_snippets\030\001 \003(\0132P.google.cloud.aiplatform" - + ".v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r" + + "\017review_snippets\030\001 \003(\0132P.google.cloud.aipla" + + "tform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r" + "ReviewSnippet\022\021\n" + "\treview_id\030\001 \001(\t\022\027\n" + "\017google_maps_uri\030\002 \001(\t\022\r\n" @@ -515,18 +580,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_segment\"\240\005\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.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n" + + "\022search_entry_point\030\004 \001(\0132,.google.clou" + + "d.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n" + "\020grounding_chunks\030\005" + " \003(\0132*.google.cloud.aiplatform.v1.GroundingChunk\022M\n" + "\022grounding_supports\030\006" + " \003(\0132,.google.cloud.aiplatform.v1.GroundingSupportB\003\340A\001\022V\n" - + "\022retrieval_metadata\030\007" - + " \001(\0132-.google.cloud.aiplatform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n" + + "\022retrieval_metadata\030\007 \001(\0132-.google.cloud.aipla" + + "tform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n" + " google_maps_widget_context_token\030\010 \001(" + "\tB\006\340A\001\340A\003H\002\210\001\001\022]\n" - + "\024source_flagging_uris\030\t \003(\0132" - + "?.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri\032@\n" + + "\024source_flagging_uris\030\t" + + " \003(\0132?.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri\032@\n" + "\021SourceFlaggingUri\022\021\n" + "\tsource_id\030\001 \001(\t\022\030\n" + "\020flag_content_uri\030\002 \001(\tB\025\n" @@ -561,12 +626,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005VIDEO\020\003\022\t\n" + "\005AUDIO\020\004\022\014\n" + "\010DOCUMENT\020\005B\257\002\n" - + "\036com.google.cloud.aiplatform.v1B\014ContentProtoP\001Z>cloud.googl" - + "e.com/go/aiplatform/apiv1/aiplatformpb;a" - + "iplatformpb\252\002\032Google.Cloud.AIPlatform.V1" - + "\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352Ab\n" - + "\"modelarmor.googleapis.com/Template\022cloud." + + "google.com/go/aiplatform/apiv1/aiplatfor" + + "mpb;aiplatformpb\252\002\032Google.Cloud.AIPlatfo" + + "rm.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352Ab\n" + + "\"modelarmor.googleapis.com/Template\022 builder private GenerationConfig() { stopSequences_ = com.google.protobuf.LazyStringArrayList.emptyList(); responseMimeType_ = ""; + responseModalities_ = emptyIntList(); + mediaResolution_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -71,6 +73,392 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.GenerationConfig.Builder.class); } + /** + * + * + *
+   * The modalities of the response.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.GenerationConfig.Modality} + */ + public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified modality. Will be processed as text.
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
+     * Text modality.
+     * 
+ * + * TEXT = 1; + */ + TEXT(1), + /** + * + * + *
+     * Image modality.
+     * 
+ * + * IMAGE = 2; + */ + IMAGE(2), + /** + * + * + *
+     * Audio modality.
+     * 
+ * + * AUDIO = 3; + */ + AUDIO(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Modality"); + } + + /** + * + * + *
+     * Unspecified modality. Will be processed as text.
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Text modality.
+     * 
+ * + * TEXT = 1; + */ + public static final int TEXT_VALUE = 1; + + /** + * + * + *
+     * Image modality.
+     * 
+ * + * IMAGE = 2; + */ + public static final int IMAGE_VALUE = 2; + + /** + * + * + *
+     * Audio modality.
+     * 
+ * + * AUDIO = 3; + */ + public static final int AUDIO_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 Modality 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 Modality forNumber(int value) { + switch (value) { + case 0: + return MODALITY_UNSPECIFIED; + case 1: + return TEXT; + case 2: + return IMAGE; + case 3: + return AUDIO; + 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 Modality findValueByNumber(int number) { + return Modality.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenerationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Modality[] VALUES = values(); + + public static Modality 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 Modality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.GenerationConfig.Modality) + } + + /** + * + * + *
+   * Media resolution for the input media.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.GenerationConfig.MediaResolution} + */ + public enum MediaResolution implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Media resolution has not been set.
+     * 
+ * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + MEDIA_RESOLUTION_UNSPECIFIED(0), + /** + * + * + *
+     * Media resolution set to low (64 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_LOW = 1; + */ + MEDIA_RESOLUTION_LOW(1), + /** + * + * + *
+     * Media resolution set to medium (256 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + MEDIA_RESOLUTION_MEDIUM(2), + /** + * + * + *
+     * Media resolution set to high (zoomed reframing with 256 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_HIGH = 3; + */ + MEDIA_RESOLUTION_HIGH(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MediaResolution"); + } + + /** + * + * + *
+     * Media resolution has not been set.
+     * 
+ * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + public static final int MEDIA_RESOLUTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Media resolution set to low (64 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_LOW = 1; + */ + public static final int MEDIA_RESOLUTION_LOW_VALUE = 1; + + /** + * + * + *
+     * Media resolution set to medium (256 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + public static final int MEDIA_RESOLUTION_MEDIUM_VALUE = 2; + + /** + * + * + *
+     * Media resolution set to high (zoomed reframing with 256 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_HIGH = 3; + */ + public static final int MEDIA_RESOLUTION_HIGH_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 MediaResolution 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 MediaResolution forNumber(int value) { + switch (value) { + case 0: + return MEDIA_RESOLUTION_UNSPECIFIED; + case 1: + return MEDIA_RESOLUTION_LOW; + case 2: + return MEDIA_RESOLUTION_MEDIUM; + case 3: + return MEDIA_RESOLUTION_HIGH; + 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 MediaResolution findValueByNumber(int number) { + return MediaResolution.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenerationConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final MediaResolution[] VALUES = values(); + + public static MediaResolution 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 MediaResolution(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.GenerationConfig.MediaResolution) + } + public interface RoutingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig) @@ -3063,25 +3451,70 @@ public interface ThinkingConfigOrBuilder * @return The thinkingBudget. */ int getThinkingBudget(); - } - /** - * - * - *
-   * Config for thinking features.
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig} - */ - public static final class ThinkingConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) - ThinkingConfigOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
+     * Optional. The number of thoughts tokens that the model should generate.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the thinkingLevel field is set. + */ + boolean hasThinkingLevel(); - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + /** + * + * + *
+     * Optional. The number of thoughts tokens that the model should generate.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + int getThinkingLevelValue(); + + /** + * + * + *
+     * Optional. The number of thoughts tokens that the model should generate.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel getThinkingLevel(); + } + + /** + * + * + *
+   * Config for thinking features.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig} + */ + public static final class ThinkingConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) + ThinkingConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 33, @@ -3095,7 +3528,9 @@ private ThinkingConfig(com.google.protobuf.GeneratedMessage.Builder builder) super(builder); } - private ThinkingConfig() {} + private ThinkingConfig() { + thinkingLevel_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1.ContentProto @@ -3112,6 +3547,226 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder.class); } + /** + * + * + *
+     * The thinking level for the model.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel} + */ + public enum ThinkingLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified thinking level.
+       * 
+ * + * THINKING_LEVEL_UNSPECIFIED = 0; + */ + THINKING_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+       * Low thinking level.
+       * 
+ * + * LOW = 1; + */ + LOW(1), + /** + * + * + *
+       * Medium thinking level.
+       * 
+ * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
+       * High thinking level.
+       * 
+ * + * HIGH = 3; + */ + HIGH(3), + /** + * + * + *
+       * MINIMAL thinking level.
+       * 
+ * + * MINIMAL = 4; + */ + MINIMAL(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ThinkingLevel"); + } + + /** + * + * + *
+       * Unspecified thinking level.
+       * 
+ * + * THINKING_LEVEL_UNSPECIFIED = 0; + */ + public static final int THINKING_LEVEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Low thinking level.
+       * 
+ * + * LOW = 1; + */ + public static final int LOW_VALUE = 1; + + /** + * + * + *
+       * Medium thinking level.
+       * 
+ * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + + /** + * + * + *
+       * High thinking level.
+       * 
+ * + * HIGH = 3; + */ + public static final int HIGH_VALUE = 3; + + /** + * + * + *
+       * MINIMAL thinking level.
+       * 
+ * + * MINIMAL = 4; + */ + public static final int MINIMAL_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 ThinkingLevel 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 ThinkingLevel forNumber(int value) { + switch (value) { + case 0: + return THINKING_LEVEL_UNSPECIFIED; + case 1: + return LOW; + case 2: + return MEDIUM; + case 3: + return HIGH; + case 4: + return MINIMAL; + 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 ThinkingLevel findValueByNumber(int number) { + return ThinkingLevel.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ThinkingLevel[] VALUES = values(); + + public static ThinkingLevel 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 ThinkingLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel) + } + private int bitField0_; public static final int INCLUDE_THOUGHTS_FIELD_NUMBER = 1; private boolean includeThoughts_ = false; @@ -3187,6 +3842,70 @@ public int getThinkingBudget() { return thinkingBudget_; } + public static final int THINKING_LEVEL_FIELD_NUMBER = 4; + private int thinkingLevel_ = 0; + + /** + * + * + *
+     * Optional. The number of thoughts tokens that the model should generate.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the thinkingLevel field is set. + */ + @java.lang.Override + public boolean hasThinkingLevel() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The number of thoughts tokens that the model should generate.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + @java.lang.Override + public int getThinkingLevelValue() { + return thinkingLevel_; + } + + /** + * + * + *
+     * Optional. The number of thoughts tokens that the model should generate.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel + getThinkingLevel() { + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel result = + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel.forNumber( + thinkingLevel_); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel + .UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3207,6 +3926,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(3, thinkingBudget_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, thinkingLevel_); + } getUnknownFields().writeTo(output); } @@ -3222,6 +3944,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, thinkingBudget_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, thinkingLevel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3246,6 +3971,10 @@ public boolean equals(final java.lang.Object obj) { if (hasThinkingBudget()) { if (getThinkingBudget() != other.getThinkingBudget()) return false; } + if (hasThinkingLevel() != other.hasThinkingLevel()) return false; + if (hasThinkingLevel()) { + if (thinkingLevel_ != other.thinkingLevel_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3265,6 +3994,10 @@ public int hashCode() { hash = (37 * hash) + THINKING_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getThinkingBudget(); } + if (hasThinkingLevel()) { + hash = (37 * hash) + THINKING_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + thinkingLevel_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3408,6 +4141,7 @@ public Builder clear() { bitField0_ = 0; includeThoughts_ = false; thinkingBudget_ = 0; + thinkingLevel_ = 0; return this; } @@ -3455,6 +4189,10 @@ private void buildPartial0( result.thinkingBudget_ = thinkingBudget_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thinkingLevel_ = thinkingLevel_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -3479,6 +4217,9 @@ public Builder mergeFrom( if (other.hasThinkingBudget()) { setThinkingBudget(other.getThinkingBudget()); } + if (other.hasThinkingLevel()) { + setThinkingLevelValue(other.getThinkingLevelValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3517,6 +4258,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 32: + { + thinkingLevel_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3688,25 +4435,154 @@ public Builder clearThinkingBudget() { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) - private static final com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig(); - } + private int thinkingLevel_ = 0; - public static com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
+       * Optional. The number of thoughts tokens that the model should generate.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the thinkingLevel field is set. + */ + @java.lang.Override + public boolean hasThinkingLevel() { + return ((bitField0_ & 0x00000004) != 0); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override + /** + * + * + *
+       * Optional. The number of thoughts tokens that the model should generate.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + @java.lang.Override + public int getThinkingLevelValue() { + return thinkingLevel_; + } + + /** + * + * + *
+       * Optional. The number of thoughts tokens that the model should generate.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for thinkingLevel to set. + * @return This builder for chaining. + */ + public Builder setThinkingLevelValue(int value) { + thinkingLevel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The number of thoughts tokens that the model should generate.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel + getThinkingLevel() { + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel result = + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel.forNumber( + thinkingLevel_); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. The number of thoughts tokens that the model should generate.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The thinkingLevel to set. + * @return This builder for chaining. + */ + public Builder setThinkingLevel( + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + thinkingLevel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The number of thoughts tokens that the model should generate.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearThinkingLevel() { + bitField0_ = (bitField0_ & ~0x00000004); + thinkingLevel_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) + private static final com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig(); + } + + public static com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override public ThinkingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4528,6 +5404,252 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC : routingConfig_; } + public static final int AUDIO_TIMESTAMP_FIELD_NUMBER = 20; + private boolean audioTimestamp_ = false; + + /** + * + * + *
+   * Optional. If enabled, audio timestamps will be included in the request to
+   * the model. This can be useful for synchronizing audio with other modalities
+   * in the response.
+   * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audioTimestamp field is set. + */ + @java.lang.Override + public boolean hasAudioTimestamp() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * Optional. If enabled, audio timestamps will be included in the request to
+   * the model. This can be useful for synchronizing audio with other modalities
+   * in the response.
+   * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audioTimestamp. + */ + @java.lang.Override + public boolean getAudioTimestamp() { + return audioTimestamp_; + } + + public static final int RESPONSE_MODALITIES_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList responseModalities_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.aiplatform.v1.GenerationConfig.Modality> + responseModalities_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.aiplatform.v1.GenerationConfig.Modality>() { + public com.google.cloud.aiplatform.v1.GenerationConfig.Modality convert(int from) { + com.google.cloud.aiplatform.v1.GenerationConfig.Modality result = + com.google.cloud.aiplatform.v1.GenerationConfig.Modality.forNumber(from); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.Modality.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the responseModalities. + */ + @java.lang.Override + public java.util.List + getResponseModalitiesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.aiplatform.v1.GenerationConfig.Modality>( + responseModalities_, responseModalities_converter_); + } + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of responseModalities. + */ + @java.lang.Override + public int getResponseModalitiesCount() { + return responseModalities_.size(); + } + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The responseModalities at the given index. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(int index) { + return responseModalities_converter_.convert(responseModalities_.getInt(index)); + } + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for responseModalities. + */ + @java.lang.Override + public java.util.List getResponseModalitiesValueList() { + return responseModalities_; + } + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of responseModalities at the given index. + */ + @java.lang.Override + public int getResponseModalitiesValue(int index) { + return responseModalities_.getInt(index); + } + + private int responseModalitiesMemoizedSerializedSize; + + public static final int MEDIA_RESOLUTION_FIELD_NUMBER = 22; + private int mediaResolution_ = 0; + + /** + * + * + *
+   * Optional. The token resolution at which input media content is sampled.
+   * This is used to control the trade-off between the quality of the response
+   * and the number of tokens used to represent the media. A higher resolution
+   * allows the model to perceive more detail, which can lead to a more nuanced
+   * response, but it will also use more tokens. This does not affect the
+   * image dimensions sent to the model.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaResolution field is set. + */ + @java.lang.Override + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Optional. The token resolution at which input media content is sampled.
+   * This is used to control the trade-off between the quality of the response
+   * and the number of tokens used to represent the media. A higher resolution
+   * allows the model to perceive more detail, which can lead to a more nuanced
+   * response, but it will also use more tokens. This does not affect the
+   * image dimensions sent to the model.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaResolution. + */ + @java.lang.Override + public int getMediaResolutionValue() { + return mediaResolution_; + } + + /** + * + * + *
+   * Optional. The token resolution at which input media content is sampled.
+   * This is used to control the trade-off between the quality of the response
+   * and the number of tokens used to represent the media. A higher resolution
+   * allows the model to perceive more detail, which can lead to a more nuanced
+   * response, but it will also use more tokens. This does not affect the
+   * image dimensions sent to the model.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaResolution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution() { + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution result = + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.forNumber(mediaResolution_); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.UNRECOGNIZED + : result; + } + public static final int SPEECH_CONFIG_FIELD_NUMBER = 23; private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_; @@ -4546,7 +5668,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC */ @java.lang.Override public boolean hasSpeechConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -4607,7 +5729,7 @@ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBui */ @java.lang.Override public boolean hasThinkingConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -4671,7 +5793,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig getThinkin */ @java.lang.Override public boolean hasImageConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -4726,6 +5848,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(1, temperature_); } @@ -4769,15 +5892,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeBool(18, responseLogprobs_); } if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(23, getSpeechConfig()); + output.writeBool(20, audioTimestamp_); + } + if (getResponseModalitiesList().size() > 0) { + output.writeUInt32NoTag(170); + output.writeUInt32NoTag(responseModalitiesMemoizedSerializedSize); + } + for (int i = 0; i < responseModalities_.size(); i++) { + output.writeEnumNoTag(responseModalities_.getInt(i)); } if (((bitField0_ & 0x00004000) != 0)) { + output.writeEnum(22, mediaResolution_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(23, getSpeechConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { output.writeMessage(25, getThinkingConfig()); } if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(28, getResponseJsonSchema()); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(30, getImageConfig()); } getUnknownFields().writeTo(output); @@ -4837,15 +5973,35 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_); } if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig()); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, audioTimestamp_); + } + { + int dataSize = 0; + for (int i = 0; i < responseModalities_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + responseModalities_.getInt(i)); + } + size += dataSize; + if (!getResponseModalitiesList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + responseModalitiesMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, mediaResolution_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getThinkingConfig()); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getResponseJsonSchema()); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getImageConfig()); } size += getUnknownFields().getSerializedSize(); @@ -4923,6 +6079,15 @@ public boolean equals(final java.lang.Object obj) { if (hasRoutingConfig()) { if (!getRoutingConfig().equals(other.getRoutingConfig())) return false; } + if (hasAudioTimestamp() != other.hasAudioTimestamp()) return false; + if (hasAudioTimestamp()) { + if (getAudioTimestamp() != other.getAudioTimestamp()) return false; + } + if (!responseModalities_.equals(other.responseModalities_)) return false; + if (hasMediaResolution() != other.hasMediaResolution()) return false; + if (hasMediaResolution()) { + if (mediaResolution_ != other.mediaResolution_) return false; + } if (hasSpeechConfig() != other.hasSpeechConfig()) return false; if (hasSpeechConfig()) { if (!getSpeechConfig().equals(other.getSpeechConfig())) return false; @@ -5004,6 +6169,18 @@ public int hashCode() { hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRoutingConfig().hashCode(); } + if (hasAudioTimestamp()) { + hash = (37 * hash) + AUDIO_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAudioTimestamp()); + } + if (getResponseModalitiesCount() > 0) { + hash = (37 * hash) + RESPONSE_MODALITIES_FIELD_NUMBER; + hash = (53 * hash) + responseModalities_.hashCode(); + } + if (hasMediaResolution()) { + hash = (37 * hash) + MEDIA_RESOLUTION_FIELD_NUMBER; + hash = (53 * hash) + mediaResolution_; + } if (hasSpeechConfig()) { hash = (37 * hash) + SPEECH_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSpeechConfig().hashCode(); @@ -5197,6 +6374,9 @@ public Builder clear() { routingConfigBuilder_.dispose(); routingConfigBuilder_ = null; } + audioTimestamp_ = false; + responseModalities_ = emptyIntList(); + mediaResolution_ = 0; speechConfig_ = null; if (speechConfigBuilder_ != null) { speechConfigBuilder_.dispose(); @@ -5314,19 +6494,31 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GenerationConfig resul to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.speechConfig_ = - speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build(); + result.audioTimestamp_ = audioTimestamp_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00010000) != 0)) { + responseModalities_.makeImmutable(); + result.responseModalities_ = responseModalities_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.mediaResolution_ = mediaResolution_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.speechConfig_ = + speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.thinkingConfig_ = thinkingConfigBuilder_ == null ? thinkingConfig_ : thinkingConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; + to_bitField0_ |= 0x00010000; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.imageConfig_ = imageConfigBuilder_ == null ? imageConfig_ : imageConfigBuilder_.build(); - to_bitField0_ |= 0x00008000; + to_bitField0_ |= 0x00020000; } result.bitField0_ |= to_bitField0_; } @@ -5398,6 +6590,23 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerationConfig other) if (other.hasRoutingConfig()) { mergeRoutingConfig(other.getRoutingConfig()); } + if (other.hasAudioTimestamp()) { + setAudioTimestamp(other.getAudioTimestamp()); + } + if (!other.responseModalities_.isEmpty()) { + if (responseModalities_.isEmpty()) { + responseModalities_ = other.responseModalities_; + responseModalities_.makeImmutable(); + bitField0_ |= 0x00010000; + } else { + ensureResponseModalitiesIsMutable(); + responseModalities_.addAll(other.responseModalities_); + } + onChanged(); + } + if (other.hasMediaResolution()) { + setMediaResolutionValue(other.getMediaResolutionValue()); + } if (other.hasSpeechConfig()) { mergeSpeechConfig(other.getSpeechConfig()); } @@ -5520,18 +6729,48 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 144 + case 160: + { + audioTimestamp_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 160 + case 168: + { + int tmpRaw = input.readEnum(); + ensureResponseModalitiesIsMutable(); + responseModalities_.addInt(tmpRaw); + break; + } // case 168 + case 170: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureResponseModalitiesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + responseModalities_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 170 + case 176: + { + mediaResolution_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 176 case 186: { input.readMessage( internalGetSpeechConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; break; } // case 186 case 202: { input.readMessage( internalGetThinkingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; break; } // case 202 case 226: @@ -5545,7 +6784,7 @@ public Builder mergeFrom( { input.readMessage( internalGetImageConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; break; } // case 242 default: @@ -7320,160 +8559,659 @@ public com.google.protobuf.Value.Builder getResponseJsonSchemaBuilder() { * - `additionalProperties` * - `required` * - * The non-standard `propertyOrdering` property may also be set. + * The non-standard `propertyOrdering` property may also be set. + * + * Cyclic references are unrolled to a limited degree and, as such, may only + * be used within non-required properties. (Nullable properties are not + * sufficient.) If `$ref` is set on a sub-schema, no other properties, except + * for than those starting as a `$`, may be set. + * + * + * + * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder() { + if (responseJsonSchemaBuilder_ != null) { + return responseJsonSchemaBuilder_.getMessageOrBuilder(); + } else { + return responseJsonSchema_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : responseJsonSchema_; + } + } + + /** + * + * + *
+     * Optional. Output schema of the generated response. This is an alternative
+     * to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
+     *
+     * If set, `response_schema` must be omitted, but `response_mime_type` is
+     * required.
+     *
+     * While the full JSON Schema may be sent, not all features are supported.
+     * Specifically, only the following properties are supported:
+     *
+     * - `$id`
+     * - `$defs`
+     * - `$ref`
+     * - `$anchor`
+     * - `type`
+     * - `format`
+     * - `title`
+     * - `description`
+     * - `enum` (for strings and numbers)
+     * - `items`
+     * - `prefixItems`
+     * - `minItems`
+     * - `maxItems`
+     * - `minimum`
+     * - `maximum`
+     * - `anyOf`
+     * - `oneOf` (interpreted the same as `anyOf`)
+     * - `properties`
+     * - `additionalProperties`
+     * - `required`
+     *
+     * The non-standard `propertyOrdering` property may also be set.
+     *
+     * Cyclic references are unrolled to a limited degree and, as such, may only
+     * be used within non-required properties. (Nullable properties are not
+     * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
+     * for than those starting as a `$`, may be set.
+     * 
+ * + * + * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetResponseJsonSchemaFieldBuilder() { + if (responseJsonSchemaBuilder_ == null) { + responseJsonSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getResponseJsonSchema(), getParentForChildren(), isClean()); + responseJsonSchema_ = null; + } + return responseJsonSchemaBuilder_; + } + + private com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder> + routingConfigBuilder_; + + /** + * + * + *
+     * Optional. Routing configuration.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the routingConfig field is set. + */ + public boolean hasRoutingConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+     * Optional. Routing configuration.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The routingConfig. + */ + public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingConfig() { + if (routingConfigBuilder_ == null) { + return routingConfig_ == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance() + : routingConfig_; + } else { + return routingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Routing configuration.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoutingConfig( + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) { + if (routingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + routingConfig_ = value; + } else { + routingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Routing configuration.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoutingConfig( + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder builderForValue) { + if (routingConfigBuilder_ == null) { + routingConfig_ = builderForValue.build(); + } else { + routingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Routing configuration.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRoutingConfig( + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) { + if (routingConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && routingConfig_ != null + && routingConfig_ + != com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + .getDefaultInstance()) { + getRoutingConfigBuilder().mergeFrom(value); + } else { + routingConfig_ = value; + } + } else { + routingConfigBuilder_.mergeFrom(value); + } + if (routingConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Routing configuration.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRoutingConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + routingConfig_ = null; + if (routingConfigBuilder_ != null) { + routingConfigBuilder_.dispose(); + routingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Routing configuration.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder + getRoutingConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetRoutingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Routing configuration.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder + getRoutingConfigOrBuilder() { + if (routingConfigBuilder_ != null) { + return routingConfigBuilder_.getMessageOrBuilder(); + } else { + return routingConfig_ == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance() + : routingConfig_; + } + } + + /** + * + * + *
+     * Optional. Routing configuration.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder> + internalGetRoutingConfigFieldBuilder() { + if (routingConfigBuilder_ == null) { + routingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>( + getRoutingConfig(), getParentForChildren(), isClean()); + routingConfig_ = null; + } + return routingConfigBuilder_; + } + + private boolean audioTimestamp_; + + /** + * + * + *
+     * Optional. If enabled, audio timestamps will be included in the request to
+     * the model. This can be useful for synchronizing audio with other modalities
+     * in the response.
+     * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audioTimestamp field is set. + */ + @java.lang.Override + public boolean hasAudioTimestamp() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Optional. If enabled, audio timestamps will be included in the request to
+     * the model. This can be useful for synchronizing audio with other modalities
+     * in the response.
+     * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audioTimestamp. + */ + @java.lang.Override + public boolean getAudioTimestamp() { + return audioTimestamp_; + } + + /** + * + * + *
+     * Optional. If enabled, audio timestamps will be included in the request to
+     * the model. This can be useful for synchronizing audio with other modalities
+     * in the response.
+     * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The audioTimestamp to set. + * @return This builder for chaining. + */ + public Builder setAudioTimestamp(boolean value) { + + audioTimestamp_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If enabled, audio timestamps will be included in the request to
+     * the model. This can be useful for synchronizing audio with other modalities
+     * in the response.
+     * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAudioTimestamp() { + bitField0_ = (bitField0_ & ~0x00008000); + audioTimestamp_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList responseModalities_ = emptyIntList(); + + private void ensureResponseModalitiesIsMutable() { + if (!responseModalities_.isModifiable()) { + responseModalities_ = makeMutableCopy(responseModalities_); + } + bitField0_ |= 0x00010000; + } + + /** + * + * + *
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the responseModalities. + */ + public java.util.List + getResponseModalitiesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.aiplatform.v1.GenerationConfig.Modality>( + responseModalities_, responseModalities_converter_); + } + + /** + * + * + *
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of responseModalities. + */ + public int getResponseModalitiesCount() { + return responseModalities_.size(); + } + + /** + * + * + *
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The responseModalities at the given index. + */ + public com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities( + int index) { + return responseModalities_converter_.convert(responseModalities_.getInt(index)); + } + + /** + * + * + *
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The responseModalities to set. + * @return This builder for chaining. + */ + public Builder setResponseModalities( + int index, com.google.cloud.aiplatform.v1.GenerationConfig.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseModalitiesIsMutable(); + responseModalities_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The responseModalities to add. + * @return This builder for chaining. + */ + public Builder addResponseModalities( + com.google.cloud.aiplatform.v1.GenerationConfig.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseModalitiesIsMutable(); + responseModalities_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * * - * Cyclic references are unrolled to a limited degree and, as such, may only - * be used within non-required properties. (Nullable properties are not - * sufficient.) If `$ref` is set on a sub-schema, no other properties, except - * for than those starting as a `$`, may be set. + *
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
      * 
* * - * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param values The responseModalities to add. + * @return This builder for chaining. */ - public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder() { - if (responseJsonSchemaBuilder_ != null) { - return responseJsonSchemaBuilder_.getMessageOrBuilder(); - } else { - return responseJsonSchema_ == null - ? com.google.protobuf.Value.getDefaultInstance() - : responseJsonSchema_; + public Builder addAllResponseModalities( + java.lang.Iterable + values) { + ensureResponseModalitiesIsMutable(); + for (com.google.cloud.aiplatform.v1.GenerationConfig.Modality value : values) { + responseModalities_.addInt(value.getNumber()); } + onChanged(); + return this; } /** * * *
-     * Optional. Output schema of the generated response. This is an alternative
-     * to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
-     *
-     * If set, `response_schema` must be omitted, but `response_mime_type` is
-     * required.
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
+     * 
* - * While the full JSON Schema may be sent, not all features are supported. - * Specifically, only the following properties are supported: + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * * - * - `$id` - * - `$defs` - * - `$ref` - * - `$anchor` - * - `type` - * - `format` - * - `title` - * - `description` - * - `enum` (for strings and numbers) - * - `items` - * - `prefixItems` - * - `minItems` - * - `maxItems` - * - `minimum` - * - `maximum` - * - `anyOf` - * - `oneOf` (interpreted the same as `anyOf`) - * - `properties` - * - `additionalProperties` - * - `required` + * @return This builder for chaining. + */ + public Builder clearResponseModalities() { + responseModalities_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** * - * The non-standard `propertyOrdering` property may also be set. * - * Cyclic references are unrolled to a limited degree and, as such, may only - * be used within non-required properties. (Nullable properties are not - * sufficient.) If `$ref` is set on a sub-schema, no other properties, except - * for than those starting as a `$`, may be set. + *
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
      * 
* * - * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return A list containing the enum numeric values on the wire for responseModalities. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder> - internalGetResponseJsonSchemaFieldBuilder() { - if (responseJsonSchemaBuilder_ == null) { - responseJsonSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder>( - getResponseJsonSchema(), getParentForChildren(), isClean()); - responseJsonSchema_ = null; - } - return responseJsonSchemaBuilder_; + public java.util.List getResponseModalitiesValueList() { + responseModalities_.makeImmutable(); + return responseModalities_; } - private com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routingConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder> - routingConfigBuilder_; - /** * * *
-     * Optional. Routing configuration.
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
      * 
* * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the routingConfig field is set. + * @param index The index of the value to return. + * @return The enum numeric value on the wire of responseModalities at the given index. */ - public boolean hasRoutingConfig() { - return ((bitField0_ & 0x00004000) != 0); + public int getResponseModalitiesValue(int index) { + return responseModalities_.getInt(index); } /** * * *
-     * Optional. Routing configuration.
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
      * 
* * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The routingConfig. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for responseModalities to set. + * @return This builder for chaining. */ - public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingConfig() { - if (routingConfigBuilder_ == null) { - return routingConfig_ == null - ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance() - : routingConfig_; - } else { - return routingConfigBuilder_.getMessage(); - } + public Builder setResponseModalitiesValue(int index, int value) { + ensureResponseModalitiesIsMutable(); + responseModalities_.setInt(index, value); + onChanged(); + return this; } /** * * *
-     * Optional. Routing configuration.
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
      * 
* * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The enum numeric value on the wire for responseModalities to add. + * @return This builder for chaining. */ - public Builder setRoutingConfig( - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) { - if (routingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - routingConfig_ = value; - } else { - routingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; + public Builder addResponseModalitiesValue(int value) { + ensureResponseModalitiesIsMutable(); + responseModalities_.addInt(value); onChanged(); return this; } @@ -7482,76 +9220,98 @@ public Builder setRoutingConfig( * * *
-     * Optional. Routing configuration.
+     * Optional. The modalities of the response. The model will generate a
+     * response that includes all the specified modalities. For example, if this
+     * is set to `[TEXT, IMAGE]`, the response will include both text and an
+     * image.
      * 
* * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param values The enum numeric values on the wire for responseModalities to add. + * @return This builder for chaining. */ - public Builder setRoutingConfig( - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder builderForValue) { - if (routingConfigBuilder_ == null) { - routingConfig_ = builderForValue.build(); - } else { - routingConfigBuilder_.setMessage(builderForValue.build()); + public Builder addAllResponseModalitiesValue(java.lang.Iterable values) { + ensureResponseModalitiesIsMutable(); + for (int value : values) { + responseModalities_.addInt(value); } - bitField0_ |= 0x00004000; onChanged(); return this; } + private int mediaResolution_ = 0; + /** * * *
-     * Optional. Routing configuration.
+     * Optional. The token resolution at which input media content is sampled.
+     * This is used to control the trade-off between the quality of the response
+     * and the number of tokens used to represent the media. A higher resolution
+     * allows the model to perceive more detail, which can lead to a more nuanced
+     * response, but it will also use more tokens. This does not affect the
+     * image dimensions sent to the model.
      * 
* * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the mediaResolution field is set. */ - public Builder mergeRoutingConfig( - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) { - if (routingConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && routingConfig_ != null - && routingConfig_ - != com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig - .getDefaultInstance()) { - getRoutingConfigBuilder().mergeFrom(value); - } else { - routingConfig_ = value; - } - } else { - routingConfigBuilder_.mergeFrom(value); - } - if (routingConfig_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; + @java.lang.Override + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Optional. Routing configuration.
+     * Optional. The token resolution at which input media content is sampled.
+     * This is used to control the trade-off between the quality of the response
+     * and the number of tokens used to represent the media. A higher resolution
+     * allows the model to perceive more detail, which can lead to a more nuanced
+     * response, but it will also use more tokens. This does not affect the
+     * image dimensions sent to the model.
      * 
* * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The enum numeric value on the wire for mediaResolution. */ - public Builder clearRoutingConfig() { - bitField0_ = (bitField0_ & ~0x00004000); - routingConfig_ = null; - if (routingConfigBuilder_ != null) { - routingConfigBuilder_.dispose(); - routingConfigBuilder_ = null; - } + @java.lang.Override + public int getMediaResolutionValue() { + return mediaResolution_; + } + + /** + * + * + *
+     * Optional. The token resolution at which input media content is sampled.
+     * This is used to control the trade-off between the quality of the response
+     * and the number of tokens used to represent the media. A higher resolution
+     * allows the model to perceive more detail, which can lead to a more nuanced
+     * response, but it will also use more tokens. This does not affect the
+     * image dimensions sent to the model.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mediaResolution to set. + * @return This builder for chaining. + */ + public Builder setMediaResolutionValue(int value) { + mediaResolution_ = value; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7560,68 +9320,83 @@ public Builder clearRoutingConfig() { * * *
-     * Optional. Routing configuration.
+     * Optional. The token resolution at which input media content is sampled.
+     * This is used to control the trade-off between the quality of the response
+     * and the number of tokens used to represent the media. A higher resolution
+     * allows the model to perceive more detail, which can lead to a more nuanced
+     * response, but it will also use more tokens. This does not affect the
+     * image dimensions sent to the model.
      * 
* * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The mediaResolution. */ - public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder - getRoutingConfigBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return internalGetRoutingConfigFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution() { + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution result = + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.forNumber( + mediaResolution_); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.UNRECOGNIZED + : result; } /** * * *
-     * Optional. Routing configuration.
+     * Optional. The token resolution at which input media content is sampled.
+     * This is used to control the trade-off between the quality of the response
+     * and the number of tokens used to represent the media. A higher resolution
+     * allows the model to perceive more detail, which can lead to a more nuanced
+     * response, but it will also use more tokens. This does not affect the
+     * image dimensions sent to the model.
      * 
* * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The mediaResolution to set. + * @return This builder for chaining. */ - public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder - getRoutingConfigOrBuilder() { - if (routingConfigBuilder_ != null) { - return routingConfigBuilder_.getMessageOrBuilder(); - } else { - return routingConfig_ == null - ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance() - : routingConfig_; + public Builder setMediaResolution( + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00020000; + mediaResolution_ = value.getNumber(); + onChanged(); + return this; } /** * * *
-     * Optional. Routing configuration.
+     * Optional. The token resolution at which input media content is sampled.
+     * This is used to control the trade-off between the quality of the response
+     * and the number of tokens used to represent the media. A higher resolution
+     * allows the model to perceive more detail, which can lead to a more nuanced
+     * response, but it will also use more tokens. This does not affect the
+     * image dimensions sent to the model.
      * 
* * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder> - internalGetRoutingConfigFieldBuilder() { - if (routingConfigBuilder_ == null) { - routingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>( - getRoutingConfig(), getParentForChildren(), isClean()); - routingConfig_ = null; - } - return routingConfigBuilder_; + public Builder clearMediaResolution() { + bitField0_ = (bitField0_ & ~0x00020000); + mediaResolution_ = 0; + onChanged(); + return this; } private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_; @@ -7645,7 +9420,7 @@ public Builder clearRoutingConfig() { * @return Whether the speechConfig field is set. */ public boolean hasSpeechConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -7691,7 +9466,7 @@ public Builder setSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value } else { speechConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7714,7 +9489,7 @@ public Builder setSpeechConfig( } else { speechConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7732,7 +9507,7 @@ public Builder setSpeechConfig( */ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value) { if (speechConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00040000) != 0) && speechConfig_ != null && speechConfig_ != com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()) { getSpeechConfigBuilder().mergeFrom(value); @@ -7743,7 +9518,7 @@ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig val speechConfigBuilder_.mergeFrom(value); } if (speechConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -7761,7 +9536,7 @@ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig val * */ public Builder clearSpeechConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00040000); speechConfig_ = null; if (speechConfigBuilder_ != null) { speechConfigBuilder_.dispose(); @@ -7783,7 +9558,7 @@ public Builder clearSpeechConfig() { * */ public com.google.cloud.aiplatform.v1.SpeechConfig.Builder getSpeechConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return internalGetSpeechConfigFieldBuilder().getBuilder(); } @@ -7860,7 +9635,7 @@ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBui * @return Whether the thinkingConfig field is set. */ public boolean hasThinkingConfig() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -7911,7 +9686,7 @@ public Builder setThinkingConfig( } else { thinkingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7936,7 +9711,7 @@ public Builder setThinkingConfig( } else { thinkingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7957,7 +9732,7 @@ public Builder setThinkingConfig( public Builder mergeThinkingConfig( com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig value) { if (thinkingConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00080000) != 0) && thinkingConfig_ != null && thinkingConfig_ != com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig @@ -7970,7 +9745,7 @@ public Builder mergeThinkingConfig( thinkingConfigBuilder_.mergeFrom(value); } if (thinkingConfig_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -7990,7 +9765,7 @@ public Builder mergeThinkingConfig( * */ public Builder clearThinkingConfig() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00080000); thinkingConfig_ = null; if (thinkingConfigBuilder_ != null) { thinkingConfigBuilder_.dispose(); @@ -8015,7 +9790,7 @@ public Builder clearThinkingConfig() { */ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder getThinkingConfigBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return internalGetThinkingConfigFieldBuilder().getBuilder(); } @@ -8095,7 +9870,7 @@ public Builder clearThinkingConfig() { * @return Whether the imageConfig field is set. */ public boolean hasImageConfig() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -8141,7 +9916,7 @@ public Builder setImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value) } else { imageConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -8164,7 +9939,7 @@ public Builder setImageConfig( } else { imageConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -8182,7 +9957,7 @@ public Builder setImageConfig( */ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value) { if (imageConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00100000) != 0) && imageConfig_ != null && imageConfig_ != com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) { getImageConfigBuilder().mergeFrom(value); @@ -8193,7 +9968,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value imageConfigBuilder_.mergeFrom(value); } if (imageConfig_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -8211,7 +9986,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value * */ public Builder clearImageConfig() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00100000); imageConfig_ = null; if (imageConfigBuilder_ != null) { imageConfigBuilder_.dispose(); @@ -8233,7 +10008,7 @@ public Builder clearImageConfig() { * */ public com.google.cloud.aiplatform.v1.ImageConfig.Builder getImageConfigBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return internalGetImageConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java index 5b087c47d539..ec50bdb56777 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java @@ -631,6 +631,189 @@ public interface GenerationConfigOrBuilder com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder getRoutingConfigOrBuilder(); + /** + * + * + *
+   * Optional. If enabled, audio timestamps will be included in the request to
+   * the model. This can be useful for synchronizing audio with other modalities
+   * in the response.
+   * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audioTimestamp field is set. + */ + boolean hasAudioTimestamp(); + + /** + * + * + *
+   * Optional. If enabled, audio timestamps will be included in the request to
+   * the model. This can be useful for synchronizing audio with other modalities
+   * in the response.
+   * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audioTimestamp. + */ + boolean getAudioTimestamp(); + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the responseModalities. + */ + java.util.List + getResponseModalitiesList(); + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of responseModalities. + */ + int getResponseModalitiesCount(); + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The responseModalities at the given index. + */ + com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(int index); + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for responseModalities. + */ + java.util.List getResponseModalitiesValueList(); + + /** + * + * + *
+   * Optional. The modalities of the response. The model will generate a
+   * response that includes all the specified modalities. For example, if this
+   * is set to `[TEXT, IMAGE]`, the response will include both text and an
+   * image.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of responseModalities at the given index. + */ + int getResponseModalitiesValue(int index); + + /** + * + * + *
+   * Optional. The token resolution at which input media content is sampled.
+   * This is used to control the trade-off between the quality of the response
+   * and the number of tokens used to represent the media. A higher resolution
+   * allows the model to perceive more detail, which can lead to a more nuanced
+   * response, but it will also use more tokens. This does not affect the
+   * image dimensions sent to the model.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaResolution field is set. + */ + boolean hasMediaResolution(); + + /** + * + * + *
+   * Optional. The token resolution at which input media content is sampled.
+   * This is used to control the trade-off between the quality of the response
+   * and the number of tokens used to represent the media. A higher resolution
+   * allows the model to perceive more detail, which can lead to a more nuanced
+   * response, but it will also use more tokens. This does not affect the
+   * image dimensions sent to the model.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaResolution. + */ + int getMediaResolutionValue(); + + /** + * + * + *
+   * Optional. The token resolution at which input media content is sampled.
+   * This is used to control the trade-off between the quality of the response
+   * and the number of tokens used to represent the media. A higher resolution
+   * allows the model to perceive more detail, which can lead to a more nuanced
+   * response, but it will also use more tokens. This does not affect the
+   * image dimensions sent to the model.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaResolution. + */ + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java index cd8d28aee20c..91b2c2c7b2fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java @@ -53,6 +53,8 @@ private ImageConfig(com.google.protobuf.GeneratedMessage.Builder builder) { private ImageConfig() { aspectRatio_ = ""; + personGeneration_ = 0; + imageSize_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -70,7 +72,1102 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.ImageConfig.Builder.class); } + /** + * + * + *
+   * Enum for controlling the generation of people in images.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.ImageConfig.PersonGeneration} + */ + public enum PersonGeneration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default behavior is unspecified. The model will decide whether to
+     * generate images of people.
+     * 
+ * + * PERSON_GENERATION_UNSPECIFIED = 0; + */ + PERSON_GENERATION_UNSPECIFIED(0), + /** + * + * + *
+     * Allows the model to generate images of people, including adults and
+     * children.
+     * 
+ * + * ALLOW_ALL = 1; + */ + ALLOW_ALL(1), + /** + * + * + *
+     * Allows the model to generate images of adults, but not children.
+     * 
+ * + * ALLOW_ADULT = 2; + */ + ALLOW_ADULT(2), + /** + * + * + *
+     * Prevents the model from generating images of people.
+     * 
+ * + * ALLOW_NONE = 3; + */ + ALLOW_NONE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PersonGeneration"); + } + + /** + * + * + *
+     * The default behavior is unspecified. The model will decide whether to
+     * generate images of people.
+     * 
+ * + * PERSON_GENERATION_UNSPECIFIED = 0; + */ + public static final int PERSON_GENERATION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Allows the model to generate images of people, including adults and
+     * children.
+     * 
+ * + * ALLOW_ALL = 1; + */ + public static final int ALLOW_ALL_VALUE = 1; + + /** + * + * + *
+     * Allows the model to generate images of adults, but not children.
+     * 
+ * + * ALLOW_ADULT = 2; + */ + public static final int ALLOW_ADULT_VALUE = 2; + + /** + * + * + *
+     * Prevents the model from generating images of people.
+     * 
+ * + * ALLOW_NONE = 3; + */ + public static final int ALLOW_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 PersonGeneration 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 PersonGeneration forNumber(int value) { + switch (value) { + case 0: + return PERSON_GENERATION_UNSPECIFIED; + case 1: + return ALLOW_ALL; + case 2: + return ALLOW_ADULT; + case 3: + return ALLOW_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 PersonGeneration findValueByNumber(int number) { + return PersonGeneration.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ImageConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final PersonGeneration[] VALUES = values(); + + public static PersonGeneration 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 PersonGeneration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.ImageConfig.PersonGeneration) + } + + public interface ImageOutputOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The image format that the output should be saved as.
+     * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mimeType field is set. + */ + boolean hasMimeType(); + + /** + * + * + *
+     * Optional. The image format that the output should be saved as.
+     * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
+     * Optional. The image format that the output should be saved as.
+     * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
+     * Optional. The compression quality of the output image.
+     * 
+ * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compressionQuality field is set. + */ + boolean hasCompressionQuality(); + + /** + * + * + *
+     * Optional. The compression quality of the output image.
+     * 
+ * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compressionQuality. + */ + int getCompressionQuality(); + } + + /** + * + * + *
+   * The image output format for generated images.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions} + */ + public static final class ImageOutputOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + ImageOutputOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImageOutputOptions"); + } + + // Use ImageOutputOptions.newBuilder() to construct. + private ImageOutputOptions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImageOutputOptions() { + mimeType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.class, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder.class); + } + + private int bitField0_; + public static final int MIME_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
+     * Optional. The image format that the output should be saved as.
+     * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mimeType field is set. + */ + @java.lang.Override + public boolean hasMimeType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The image format that the output should be saved as.
+     * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + 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(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The image format that the output should be saved as.
+     * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.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; + } + } + + public static final int COMPRESSION_QUALITY_FIELD_NUMBER = 2; + private int compressionQuality_ = 0; + + /** + * + * + *
+     * Optional. The compression quality of the output image.
+     * 
+ * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compressionQuality field is set. + */ + @java.lang.Override + public boolean hasCompressionQuality() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The compression quality of the output image.
+     * 
+ * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compressionQuality. + */ + @java.lang.Override + public int getCompressionQuality() { + return compressionQuality_; + } + + 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.GeneratedMessage.writeString(output, 1, mimeType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, compressionQuality_); + } + 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.GeneratedMessage.computeStringSize(1, mimeType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, compressionQuality_); + } + 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.v1.ImageConfig.ImageOutputOptions)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions other = + (com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) obj; + + if (hasMimeType() != other.hasMimeType()) return false; + if (hasMimeType()) { + if (!getMimeType().equals(other.getMimeType())) return false; + } + if (hasCompressionQuality() != other.hasCompressionQuality()) return false; + if (hasCompressionQuality()) { + if (getCompressionQuality() != other.getCompressionQuality()) 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 (hasMimeType()) { + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + } + if (hasCompressionQuality()) { + hash = (37 * hash) + COMPRESSION_QUALITY_FIELD_NUMBER; + hash = (53 * hash) + getCompressionQuality(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions 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.v1.ImageConfig.ImageOutputOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions 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.v1.ImageConfig.ImageOutputOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ImageConfig.ImageOutputOptions 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The image output format for generated images.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.class, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + compressionQuality_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions build() { + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions buildPartial() { + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions result = + new com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.compressionQuality_ = compressionQuality_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) { + return mergeFrom((com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions other) { + if (other + == com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()) + return this; + if (other.hasMimeType()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCompressionQuality()) { + setCompressionQuality(other.getCompressionQuality()); + } + 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: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + compressionQuality_ = 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 mimeType_ = ""; + + /** + * + * + *
+       * Optional. The image format that the output should be saved as.
+       * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mimeType field is set. + */ + public boolean hasMimeType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. The image format that the output should be saved as.
+       * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+       * Optional. The image format that the output should be saved as.
+       * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+       * Optional. The image format that the output should be saved as.
+       * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The image format that the output should be saved as.
+       * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The image format that the output should be saved as.
+       * 
+ * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int compressionQuality_; + + /** + * + * + *
+       * Optional. The compression quality of the output image.
+       * 
+ * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compressionQuality field is set. + */ + @java.lang.Override + public boolean hasCompressionQuality() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. The compression quality of the output image.
+       * 
+ * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compressionQuality. + */ + @java.lang.Override + public int getCompressionQuality() { + return compressionQuality_; + } + + /** + * + * + *
+       * Optional. The compression quality of the output image.
+       * 
+ * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The compressionQuality to set. + * @return This builder for chaining. + */ + public Builder setCompressionQuality(int value) { + + compressionQuality_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The compression quality of the output image.
+       * 
+ * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCompressionQuality() { + bitField0_ = (bitField0_ & ~0x00000002); + compressionQuality_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + private static final com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions(); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageOutputOptions 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.v1.ImageConfig.ImageOutputOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; + public static final int IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions imageOutputOptions_; + + /** + * + * + *
+   * Optional. The image output format for generated images.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imageOutputOptions field is set. + */ + @java.lang.Override + public boolean hasImageOutputOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The image output format for generated images.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageOutputOptions. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions() { + return imageOutputOptions_ == null + ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance() + : imageOutputOptions_; + } + + /** + * + * + *
+   * Optional. The image output format for generated images.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder + getImageOutputOptionsOrBuilder() { + return imageOutputOptions_ == null + ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance() + : imageOutputOptions_; + } + public static final int ASPECT_RATIO_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -97,7 +1194,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasAspectRatio() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -164,6 +1261,139 @@ public com.google.protobuf.ByteString getAspectRatioBytes() { } } + public static final int PERSON_GENERATION_FIELD_NUMBER = 3; + private int personGeneration_ = 0; + + /** + * + * + *
+   * Optional. Controls whether the model can generate people.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personGeneration field is set. + */ + @java.lang.Override + public boolean hasPersonGeneration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Controls whether the model can generate people.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for personGeneration. + */ + @java.lang.Override + public int getPersonGenerationValue() { + return personGeneration_; + } + + /** + * + * + *
+   * Optional. Controls whether the model can generate people.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personGeneration. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration() { + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration result = + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.forNumber(personGeneration_); + return result == null + ? com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.UNRECOGNIZED + : result; + } + + public static final int IMAGE_SIZE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageSize_ = ""; + + /** + * + * + *
+   * Optional. Specifies the size of generated images. Supported values are
+   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+   * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the imageSize field is set. + */ + @java.lang.Override + public boolean hasImageSize() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the size of generated images. Supported values are
+   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+   * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The imageSize. + */ + @java.lang.Override + public java.lang.String getImageSize() { + java.lang.Object ref = imageSize_; + 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(); + imageSize_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Specifies the size of generated images. Supported values are
+   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+   * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for imageSize. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageSizeBytes() { + java.lang.Object ref = imageSize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -179,8 +1409,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getImageOutputOptions()); + } + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, aspectRatio_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, personGeneration_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, imageSize_); + } getUnknownFields().writeTo(output); } @@ -191,8 +1430,17 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImageOutputOptions()); + } + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, aspectRatio_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, personGeneration_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, imageSize_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -209,10 +1457,22 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1.ImageConfig other = (com.google.cloud.aiplatform.v1.ImageConfig) obj; + if (hasImageOutputOptions() != other.hasImageOutputOptions()) return false; + if (hasImageOutputOptions()) { + if (!getImageOutputOptions().equals(other.getImageOutputOptions())) return false; + } if (hasAspectRatio() != other.hasAspectRatio()) return false; if (hasAspectRatio()) { if (!getAspectRatio().equals(other.getAspectRatio())) return false; } + if (hasPersonGeneration() != other.hasPersonGeneration()) return false; + if (hasPersonGeneration()) { + if (personGeneration_ != other.personGeneration_) return false; + } + if (hasImageSize() != other.hasImageSize()) return false; + if (hasImageSize()) { + if (!getImageSize().equals(other.getImageSize())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -224,10 +1484,22 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasImageOutputOptions()) { + hash = (37 * hash) + IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getImageOutputOptions().hashCode(); + } if (hasAspectRatio()) { hash = (37 * hash) + ASPECT_RATIO_FIELD_NUMBER; hash = (53 * hash) + getAspectRatio().hashCode(); } + if (hasPersonGeneration()) { + hash = (37 * hash) + PERSON_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + personGeneration_; + } + if (hasImageSize()) { + hash = (37 * hash) + IMAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getImageSize().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -358,17 +1630,33 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1.ImageConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetImageOutputOptionsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + imageOutputOptions_ = null; + if (imageOutputOptionsBuilder_ != null) { + imageOutputOptionsBuilder_.dispose(); + imageOutputOptionsBuilder_ = null; + } aspectRatio_ = ""; + personGeneration_ = 0; + imageSize_ = ""; return this; } @@ -407,9 +1695,24 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.ImageConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.aspectRatio_ = aspectRatio_; + result.imageOutputOptions_ = + imageOutputOptionsBuilder_ == null + ? imageOutputOptions_ + : imageOutputOptionsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aspectRatio_ = aspectRatio_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.personGeneration_ = personGeneration_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.imageSize_ = imageSize_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -421,65 +1724,314 @@ public Builder mergeFrom(com.google.protobuf.Message other) { super.mergeFrom(other); return this; } - } - - public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImageConfig other) { - if (other == com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) return this; - if (other.hasAspectRatio()) { - aspectRatio_ = other.aspectRatio_; + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImageConfig other) { + if (other == com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) return this; + if (other.hasImageOutputOptions()) { + mergeImageOutputOptions(other.getImageOutputOptions()); + } + if (other.hasAspectRatio()) { + aspectRatio_ = other.aspectRatio_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPersonGeneration()) { + setPersonGenerationValue(other.getPersonGenerationValue()); + } + if (other.hasImageSize()) { + imageSize_ = other.imageSize_; + 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: + { + input.readMessage( + internalGetImageOutputOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + aspectRatio_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + personGeneration_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + imageSize_ = 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 com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions imageOutputOptions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder> + imageOutputOptionsBuilder_; + + /** + * + * + *
+     * Optional. The image output format for generated images.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imageOutputOptions field is set. + */ + public boolean hasImageOutputOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The image output format for generated images.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageOutputOptions. + */ + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions() { + if (imageOutputOptionsBuilder_ == null) { + return imageOutputOptions_ == null + ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance() + : imageOutputOptions_; + } else { + return imageOutputOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The image output format for generated images.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImageOutputOptions( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions value) { + if (imageOutputOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + imageOutputOptions_ = value; + } else { + imageOutputOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The image output format for generated images.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImageOutputOptions( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder builderForValue) { + if (imageOutputOptionsBuilder_ == null) { + imageOutputOptions_ = builderForValue.build(); + } else { + imageOutputOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The image output format for generated images.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeImageOutputOptions( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions value) { + if (imageOutputOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && imageOutputOptions_ != null + && imageOutputOptions_ + != com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions + .getDefaultInstance()) { + getImageOutputOptionsBuilder().mergeFrom(value); + } else { + imageOutputOptions_ = value; + } + } else { + imageOutputOptionsBuilder_.mergeFrom(value); + } + if (imageOutputOptions_ != null) { bitField0_ |= 0x00000001; onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + /** + * + * + *
+     * Optional. The image output format for generated images.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearImageOutputOptions() { + bitField0_ = (bitField0_ & ~0x00000001); + imageOutputOptions_ = null; + if (imageOutputOptionsBuilder_ != null) { + imageOutputOptionsBuilder_.dispose(); + imageOutputOptionsBuilder_ = null; + } onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * Optional. The image output format for generated images.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder + getImageOutputOptionsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetImageOutputOptionsFieldBuilder().getBuilder(); } - @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(); + /** + * + * + *
+     * Optional. The image output format for generated images.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder + getImageOutputOptionsOrBuilder() { + if (imageOutputOptionsBuilder_ != null) { + return imageOutputOptionsBuilder_.getMessageOrBuilder(); + } else { + return imageOutputOptions_ == null + ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance() + : imageOutputOptions_; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - aspectRatio_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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_; + /** + * + * + *
+     * Optional. The image output format for generated images.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder> + internalGetImageOutputOptionsFieldBuilder() { + if (imageOutputOptionsBuilder_ == null) { + imageOutputOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder>( + getImageOutputOptions(), getParentForChildren(), isClean()); + imageOutputOptions_ = null; + } + return imageOutputOptionsBuilder_; + } private java.lang.Object aspectRatio_ = ""; @@ -503,7 +2055,7 @@ public Builder mergeFrom( * @return Whether the aspectRatio field is set. */ public boolean hasAspectRatio() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -593,7 +2145,7 @@ public Builder setAspectRatio(java.lang.String value) { throw new NullPointerException(); } aspectRatio_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -619,7 +2171,7 @@ public Builder setAspectRatio(java.lang.String value) { */ public Builder clearAspectRatio() { aspectRatio_ = getDefaultInstance().getAspectRatio(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -650,7 +2202,265 @@ public Builder setAspectRatioBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); aspectRatio_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int personGeneration_ = 0; + + /** + * + * + *
+     * Optional. Controls whether the model can generate people.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personGeneration field is set. + */ + @java.lang.Override + public boolean hasPersonGeneration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Controls whether the model can generate people.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for personGeneration. + */ + @java.lang.Override + public int getPersonGenerationValue() { + return personGeneration_; + } + + /** + * + * + *
+     * Optional. Controls whether the model can generate people.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for personGeneration to set. + * @return This builder for chaining. + */ + public Builder setPersonGenerationValue(int value) { + personGeneration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls whether the model can generate people.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personGeneration. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration() { + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration result = + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.forNumber(personGeneration_); + return result == null + ? com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Controls whether the model can generate people.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The personGeneration to set. + * @return This builder for chaining. + */ + public Builder setPersonGeneration( + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + personGeneration_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls whether the model can generate people.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPersonGeneration() { + bitField0_ = (bitField0_ & ~0x00000004); + personGeneration_ = 0; + onChanged(); + return this; + } + + private java.lang.Object imageSize_ = ""; + + /** + * + * + *
+     * Optional. Specifies the size of generated images. Supported values are
+     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+     * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the imageSize field is set. + */ + public boolean hasImageSize() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Specifies the size of generated images. Supported values are
+     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+     * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The imageSize. + */ + public java.lang.String getImageSize() { + java.lang.Object ref = imageSize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageSize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Specifies the size of generated images. Supported values are
+     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+     * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for imageSize. + */ + public com.google.protobuf.ByteString getImageSizeBytes() { + java.lang.Object ref = imageSize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Specifies the size of generated images. Supported values are
+     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+     * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The imageSize to set. + * @return This builder for chaining. + */ + public Builder setImageSize(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + imageSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the size of generated images. Supported values are
+     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+     * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearImageSize() { + imageSize_ = getDefaultInstance().getImageSize(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the size of generated images. Supported values are
+     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+     * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for imageSize to set. + * @return This builder for chaining. + */ + public Builder setImageSizeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageSize_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java index eb4736457b23..6e1689404161 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java @@ -26,6 +26,50 @@ public interface ImageConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImageConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Optional. The image output format for generated images.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imageOutputOptions field is set. + */ + boolean hasImageOutputOptions(); + + /** + * + * + *
+   * Optional. The image output format for generated images.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageOutputOptions. + */ + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions(); + + /** + * + * + *
+   * Optional. The image output format for generated images.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder + getImageOutputOptionsOrBuilder(); + /** * * @@ -88,4 +132,91 @@ public interface ImageConfigOrBuilder * @return The bytes for aspectRatio. */ com.google.protobuf.ByteString getAspectRatioBytes(); + + /** + * + * + *
+   * Optional. Controls whether the model can generate people.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personGeneration field is set. + */ + boolean hasPersonGeneration(); + + /** + * + * + *
+   * Optional. Controls whether the model can generate people.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for personGeneration. + */ + int getPersonGenerationValue(); + + /** + * + * + *
+   * Optional. Controls whether the model can generate people.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personGeneration. + */ + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration(); + + /** + * + * + *
+   * Optional. Specifies the size of generated images. Supported values are
+   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+   * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the imageSize field is set. + */ + boolean hasImageSize(); + + /** + * + * + *
+   * Optional. Specifies the size of generated images. Supported values are
+   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+   * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The imageSize. + */ + java.lang.String getImageSize(); + + /** + * + * + *
+   * Optional. Specifies the size of generated images. Supported values are
+   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+   * 
+ * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for imageSize. + */ + com.google.protobuf.ByteString getImageSizeBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java index 006606faeffb..013ab12cac35 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java @@ -76,6 +76,948 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.Part.Builder.class); } + public interface MediaResolutionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Part.MediaResolution) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The tokenization quality used for given media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return Whether the level field is set. + */ + boolean hasLevel(); + + /** + * + * + *
+     * The tokenization quality used for given media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The enum numeric value on the wire for level. + */ + int getLevelValue(); + + /** + * + * + *
+     * The tokenization quality used for given media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The level. + */ + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel(); + + com.google.cloud.aiplatform.v1.Part.MediaResolution.ValueCase getValueCase(); + } + + /** + * + * + *
+   * per part media resolution.
+   * Media resolution for the input media.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Part.MediaResolution} + */ + public static final class MediaResolution extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Part.MediaResolution) + MediaResolutionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MediaResolution"); + } + + // Use MediaResolution.newBuilder() to construct. + private MediaResolution(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MediaResolution() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Part.MediaResolution.class, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder.class); + } + + /** + * + * + *
+     * The media resolution level.
+     * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.Part.MediaResolution.Level} + */ + public enum Level implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Media resolution has not been set.
+       * 
+ * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + MEDIA_RESOLUTION_UNSPECIFIED(0), + /** + * + * + *
+       * Media resolution set to low.
+       * 
+ * + * MEDIA_RESOLUTION_LOW = 1; + */ + MEDIA_RESOLUTION_LOW(1), + /** + * + * + *
+       * Media resolution set to medium.
+       * 
+ * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + MEDIA_RESOLUTION_MEDIUM(2), + /** + * + * + *
+       * Media resolution set to high.
+       * 
+ * + * MEDIA_RESOLUTION_HIGH = 3; + */ + MEDIA_RESOLUTION_HIGH(3), + /** + * + * + *
+       * Media resolution set to ultra high. This is for image only.
+       * 
+ * + * MEDIA_RESOLUTION_ULTRA_HIGH = 4; + */ + MEDIA_RESOLUTION_ULTRA_HIGH(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Level"); + } + + /** + * + * + *
+       * Media resolution has not been set.
+       * 
+ * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + public static final int MEDIA_RESOLUTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Media resolution set to low.
+       * 
+ * + * MEDIA_RESOLUTION_LOW = 1; + */ + public static final int MEDIA_RESOLUTION_LOW_VALUE = 1; + + /** + * + * + *
+       * Media resolution set to medium.
+       * 
+ * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + public static final int MEDIA_RESOLUTION_MEDIUM_VALUE = 2; + + /** + * + * + *
+       * Media resolution set to high.
+       * 
+ * + * MEDIA_RESOLUTION_HIGH = 3; + */ + public static final int MEDIA_RESOLUTION_HIGH_VALUE = 3; + + /** + * + * + *
+       * Media resolution set to ultra high. This is for image only.
+       * 
+ * + * MEDIA_RESOLUTION_ULTRA_HIGH = 4; + */ + public static final int MEDIA_RESOLUTION_ULTRA_HIGH_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 Level 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 Level forNumber(int value) { + switch (value) { + case 0: + return MEDIA_RESOLUTION_UNSPECIFIED; + case 1: + return MEDIA_RESOLUTION_LOW; + case 2: + return MEDIA_RESOLUTION_MEDIUM; + case 3: + return MEDIA_RESOLUTION_HIGH; + case 4: + return MEDIA_RESOLUTION_ULTRA_HIGH; + 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 Level findValueByNumber(int number) { + return Level.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Part.MediaResolution.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Level[] VALUES = values(); + + public static Level 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 Level(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.Part.MediaResolution.Level) + } + + private int valueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LEVEL(1), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(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 ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return LEVEL; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int LEVEL_FIELD_NUMBER = 1; + + /** + * + * + *
+     * The tokenization quality used for given media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return Whether the level field is set. + */ + public boolean hasLevel() { + return valueCase_ == 1; + } + + /** + * + * + *
+     * The tokenization quality used for given media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The enum numeric value on the wire for level. + */ + public int getLevelValue() { + if (valueCase_ == 1) { + return (java.lang.Integer) value_; + } + return 0; + } + + /** + * + * + *
+     * The tokenization quality used for given media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The level. + */ + public com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel() { + if (valueCase_ == 1) { + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level result = + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.forNumber( + (java.lang.Integer) value_); + return result == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.UNRECOGNIZED + : result; + } + return com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.MEDIA_RESOLUTION_UNSPECIFIED; + } + + 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 (valueCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) value_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) value_)); + } + 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.v1.Part.MediaResolution)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Part.MediaResolution other = + (com.google.cloud.aiplatform.v1.Part.MediaResolution) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (getLevelValue() != other.getLevelValue()) 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 (valueCase_) { + case 1: + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getLevelValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution 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.v1.Part.MediaResolution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution 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.v1.Part.MediaResolution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.Part.MediaResolution 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Part.MediaResolution} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Part.MediaResolution) + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Part.MediaResolution.class, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Part.MediaResolution.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution build() { + com.google.cloud.aiplatform.v1.Part.MediaResolution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution buildPartial() { + com.google.cloud.aiplatform.v1.Part.MediaResolution result = + new com.google.cloud.aiplatform.v1.Part.MediaResolution(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Part.MediaResolution result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Part.MediaResolution result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.Part.MediaResolution) { + return mergeFrom((com.google.cloud.aiplatform.v1.Part.MediaResolution) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Part.MediaResolution other) { + if (other == com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()) + return this; + switch (other.getValueCase()) { + case LEVEL: + { + setLevelValue(other.getLevelValue()); + break; + } + case VALUE_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 8: + { + int rawValue = input.readEnum(); + valueCase_ = 1; + value_ = rawValue; + 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 valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * The tokenization quality used for given media.
+       * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return Whether the level field is set. + */ + @java.lang.Override + public boolean hasLevel() { + return valueCase_ == 1; + } + + /** + * + * + *
+       * The tokenization quality used for given media.
+       * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The enum numeric value on the wire for level. + */ + @java.lang.Override + public int getLevelValue() { + if (valueCase_ == 1) { + return ((java.lang.Integer) value_).intValue(); + } + return 0; + } + + /** + * + * + *
+       * The tokenization quality used for given media.
+       * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @param value The enum numeric value on the wire for level to set. + * @return This builder for chaining. + */ + public Builder setLevelValue(int value) { + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * The tokenization quality used for given media.
+       * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The level. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel() { + if (valueCase_ == 1) { + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level result = + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.forNumber( + (java.lang.Integer) value_); + return result == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.UNRECOGNIZED + : result; + } + return com.google.cloud.aiplatform.v1.Part.MediaResolution.Level + .MEDIA_RESOLUTION_UNSPECIFIED; + } + + /** + * + * + *
+       * The tokenization quality used for given media.
+       * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(com.google.cloud.aiplatform.v1.Part.MediaResolution.Level value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 1; + value_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * The tokenization quality used for given media.
+       * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return This builder for chaining. + */ + public Builder clearLevel() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Part.MediaResolution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Part.MediaResolution) + private static final com.google.cloud.aiplatform.v1.Part.MediaResolution DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Part.MediaResolution(); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaResolution 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.v1.Part.MediaResolution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; private int dataCase_ = 0; @SuppressWarnings("serial") @@ -739,6 +1681,63 @@ public com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrB return com.google.cloud.aiplatform.v1.VideoMetadata.getDefaultInstance(); } + public static final int MEDIA_RESOLUTION_FIELD_NUMBER = 12; + private com.google.cloud.aiplatform.v1.Part.MediaResolution mediaResolution_; + + /** + * + * + *
+   * per part media resolution.
+   * Media resolution for the input media.
+   * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return Whether the mediaResolution field is set. + */ + @java.lang.Override + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * per part media resolution.
+   * Media resolution for the input media.
+   * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return The mediaResolution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution() { + return mediaResolution_ == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance() + : mediaResolution_; + } + + /** + * + * + *
+   * per part media resolution.
+   * Media resolution for the input media.
+   * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder + getMediaResolutionOrBuilder() { + return mediaResolution_ == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance() + : mediaResolution_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -783,6 +1782,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!thoughtSignature_.isEmpty()) { output.writeBytes(11, thoughtSignature_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(12, getMediaResolution()); + } getUnknownFields().writeTo(output); } @@ -836,6 +1838,9 @@ public int getSerializedSize() { if (!thoughtSignature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, thoughtSignature_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMediaResolution()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -853,6 +1858,10 @@ public boolean equals(final java.lang.Object obj) { if (getThought() != other.getThought()) return false; if (!getThoughtSignature().equals(other.getThoughtSignature())) return false; + if (hasMediaResolution() != other.hasMediaResolution()) return false; + if (hasMediaResolution()) { + if (!getMediaResolution().equals(other.getMediaResolution())) return false; + } if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 1: @@ -902,6 +1911,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThought()); hash = (37 * hash) + THOUGHT_SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getThoughtSignature().hashCode(); + if (hasMediaResolution()) { + hash = (37 * hash) + MEDIA_RESOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getMediaResolution().hashCode(); + } switch (dataCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -1077,10 +2090,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1.Part.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMediaResolutionFieldBuilder(); + } } @java.lang.Override @@ -1110,6 +2132,11 @@ public Builder clear() { if (videoMetadataBuilder_ != null) { videoMetadataBuilder_.clear(); } + mediaResolution_ = null; + if (mediaResolutionBuilder_ != null) { + mediaResolutionBuilder_.dispose(); + mediaResolutionBuilder_ = null; + } dataCase_ = 0; data_ = null; metadataCase_ = 0; @@ -1156,6 +2183,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Part result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.thoughtSignature_ = thoughtSignature_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.mediaResolution_ = + mediaResolutionBuilder_ == null ? mediaResolution_ : mediaResolutionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Part result) { @@ -1204,6 +2238,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Part other) { if (!other.getThoughtSignature().isEmpty()) { setThoughtSignature(other.getThoughtSignature()); } + if (other.hasMediaResolution()) { + mergeMediaResolution(other.getMediaResolution()); + } switch (other.getDataCase()) { case TEXT: { @@ -1352,6 +2389,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 90 + case 98: + { + input.readMessage( + internalGetMediaResolutionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3358,6 +4402,212 @@ public com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrB return videoMetadataBuilder_; } + private com.google.cloud.aiplatform.v1.Part.MediaResolution mediaResolution_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.Part.MediaResolution, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder, + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder> + mediaResolutionBuilder_; + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return Whether the mediaResolution field is set. + */ + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return The mediaResolution. + */ + public com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution() { + if (mediaResolutionBuilder_ == null) { + return mediaResolution_ == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance() + : mediaResolution_; + } else { + return mediaResolutionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public Builder setMediaResolution(com.google.cloud.aiplatform.v1.Part.MediaResolution value) { + if (mediaResolutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mediaResolution_ = value; + } else { + mediaResolutionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public Builder setMediaResolution( + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder builderForValue) { + if (mediaResolutionBuilder_ == null) { + mediaResolution_ = builderForValue.build(); + } else { + mediaResolutionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public Builder mergeMediaResolution(com.google.cloud.aiplatform.v1.Part.MediaResolution value) { + if (mediaResolutionBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && mediaResolution_ != null + && mediaResolution_ + != com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()) { + getMediaResolutionBuilder().mergeFrom(value); + } else { + mediaResolution_ = value; + } + } else { + mediaResolutionBuilder_.mergeFrom(value); + } + if (mediaResolution_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public Builder clearMediaResolution() { + bitField0_ = (bitField0_ & ~0x00000400); + mediaResolution_ = null; + if (mediaResolutionBuilder_ != null) { + mediaResolutionBuilder_.dispose(); + mediaResolutionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder getMediaResolutionBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetMediaResolutionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder + getMediaResolutionOrBuilder() { + if (mediaResolutionBuilder_ != null) { + return mediaResolutionBuilder_.getMessageOrBuilder(); + } else { + return mediaResolution_ == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance() + : mediaResolution_; + } + } + + /** + * + * + *
+     * per part media resolution.
+     * Media resolution for the input media.
+     * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.Part.MediaResolution, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder, + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder> + internalGetMediaResolutionFieldBuilder() { + if (mediaResolutionBuilder_ == null) { + mediaResolutionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.Part.MediaResolution, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder, + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder>( + getMediaResolution(), getParentForChildren(), isClean()); + mediaResolution_ = null; + } + return mediaResolutionBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Part) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java index b28fd4b633c0..39cf77b7d299 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java @@ -411,6 +411,46 @@ public interface PartOrBuilder */ com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrBuilder(); + /** + * + * + *
+   * per part media resolution.
+   * Media resolution for the input media.
+   * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return Whether the mediaResolution field is set. + */ + boolean hasMediaResolution(); + + /** + * + * + *
+   * per part media resolution.
+   * Media resolution for the input media.
+   * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return The mediaResolution. + */ + com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution(); + + /** + * + * + *
+   * per part media resolution.
+   * Media resolution for the input media.
+   * 
+ * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder getMediaResolutionOrBuilder(); + com.google.cloud.aiplatform.v1.Part.DataCase getDataCase(); com.google.cloud.aiplatform.v1.Part.MetadataCase getMetadataCase(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java index cdff9015a01f..f4e8524da860 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java @@ -173,6 +173,26 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() { return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_; } + public static final int FPS_FIELD_NUMBER = 3; + private double fps_ = 0D; + + /** + * + * + *
+   * Optional. The frame rate of the video sent to the model. If not specified,
+   * the default value is 1.0. The valid range is (0.0, 24.0].
+   * 
+ * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fps. + */ + @java.lang.Override + public double getFps() { + return fps_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -193,6 +213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getEndOffset()); } + if (java.lang.Double.doubleToRawLongBits(fps_) != 0) { + output.writeDouble(3, fps_); + } getUnknownFields().writeTo(output); } @@ -208,6 +231,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset()); } + if (java.lang.Double.doubleToRawLongBits(fps_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, fps_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -232,6 +258,8 @@ public boolean equals(final java.lang.Object obj) { if (hasEndOffset()) { if (!getEndOffset().equals(other.getEndOffset())) return false; } + if (java.lang.Double.doubleToLongBits(getFps()) + != java.lang.Double.doubleToLongBits(other.getFps())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,6 +279,10 @@ public int hashCode() { hash = (37 * hash) + END_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getEndOffset().hashCode(); } + hash = (37 * hash) + FPS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getFps())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -411,6 +443,7 @@ public Builder clear() { endOffsetBuilder_.dispose(); endOffsetBuilder_ = null; } + fps_ = 0D; return this; } @@ -457,6 +490,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.VideoMetadata result) result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fps_ = fps_; + } result.bitField0_ |= to_bitField0_; } @@ -478,6 +514,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.VideoMetadata other) { if (other.hasEndOffset()) { mergeEndOffset(other.getEndOffset()); } + if (java.lang.Double.doubleToRawLongBits(other.getFps()) != 0) { + setFps(other.getFps()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -518,6 +557,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 25: + { + fps_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -939,6 +984,65 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() { return endOffsetBuilder_; } + private double fps_; + + /** + * + * + *
+     * Optional. The frame rate of the video sent to the model. If not specified,
+     * the default value is 1.0. The valid range is (0.0, 24.0].
+     * 
+ * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fps. + */ + @java.lang.Override + public double getFps() { + return fps_; + } + + /** + * + * + *
+     * Optional. The frame rate of the video sent to the model. If not specified,
+     * the default value is 1.0. The valid range is (0.0, 24.0].
+     * 
+ * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fps to set. + * @return This builder for chaining. + */ + public Builder setFps(double value) { + + fps_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The frame rate of the video sent to the model. If not specified,
+     * the default value is 1.0. The valid range is (0.0, 24.0].
+     * 
+ * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFps() { + bitField0_ = (bitField0_ & ~0x00000004); + fps_ = 0D; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.VideoMetadata) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java index f17652609962..8945b1f74515 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java @@ -105,4 +105,18 @@ public interface VideoMetadataOrBuilder * */ com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder(); + + /** + * + * + *
+   * Optional. The frame rate of the video sent to the model. If not specified,
+   * the default value is 1.0. The valid range is (0.0, 24.0].
+   * 
+ * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fps. + */ + double getFps(); } 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 55041862d78c..fc656beea9b4 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 @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -108,6 +108,33 @@ message Content { // A `Part` must have a fixed IANA MIME type identifying the type and subtype // of the media if `inline_data` or `file_data` field is filled with raw bytes. message Part { + // per part media resolution. + // Media resolution for the input media. + message MediaResolution { + // The media resolution level. + enum Level { + // Media resolution has not been set. + MEDIA_RESOLUTION_UNSPECIFIED = 0; + + // Media resolution set to low. + MEDIA_RESOLUTION_LOW = 1; + + // Media resolution set to medium. + MEDIA_RESOLUTION_MEDIUM = 2; + + // Media resolution set to high. + MEDIA_RESOLUTION_HIGH = 3; + + // Media resolution set to ultra high. This is for image only. + MEDIA_RESOLUTION_ULTRA_HIGH = 4; + } + + oneof value { + // The tokenization quality used for given media. + Level level = 1; + } + } + oneof data { // Optional. Text part (can be code). string text = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -150,6 +177,10 @@ message Part { // video data is presented in inline_data or file_data. VideoMetadata video_metadata = 4 [(google.api.field_behavior) = OPTIONAL]; } + + // per part media resolution. + // Media resolution for the input media. + MediaResolution media_resolution = 12; } // Content blob. @@ -182,6 +213,10 @@ message VideoMetadata { // Optional. The end offset of the video. google.protobuf.Duration end_offset = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The frame rate of the video sent to the model. If not specified, + // the default value is 1.0. The valid range is (0.0, 24.0]. + double fps = 3 [(google.api.field_behavior) = OPTIONAL]; } // Configuration for a prebuilt voice. @@ -202,7 +237,6 @@ message ReplicatedVoiceConfig { bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Configuration for a voice. message VoiceConfig { // The configuration for the speaker to use. @@ -250,6 +284,37 @@ message SpeechConfig { // Config for image generation features. message ImageConfig { + // The image output format for generated images. + message ImageOutputOptions { + // Optional. The image format that the output should be saved as. + optional string mime_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The compression quality of the output image. + optional int32 compression_quality = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Enum for controlling the generation of people in images. + enum PersonGeneration { + // The default behavior is unspecified. The model will decide whether to + // generate images of people. + PERSON_GENERATION_UNSPECIFIED = 0; + + // Allows the model to generate images of people, including adults and + // children. + ALLOW_ALL = 1; + + // Allows the model to generate images of adults, but not children. + ALLOW_ADULT = 2; + + // Prevents the model from generating images of people. + ALLOW_NONE = 3; + } + + // Optional. The image output format for generated images. + optional ImageOutputOptions image_output_options = 1 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The desired aspect ratio for the generated images. The following // aspect ratios are supported: // @@ -260,6 +325,14 @@ message ImageConfig { // "9:16", "16:9" // "21:9" optional string aspect_ratio = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Controls whether the model can generate people. + optional PersonGeneration person_generation = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the size of generated images. Supported values are + // `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`. + optional string image_size = 4 [(google.api.field_behavior) = OPTIONAL]; } // Generation config. @@ -308,6 +381,24 @@ message GenerationConfig { // Config for thinking features. message ThinkingConfig { + // The thinking level for the model. + enum ThinkingLevel { + // Unspecified thinking level. + THINKING_LEVEL_UNSPECIFIED = 0; + + // Low thinking level. + LOW = 1; + + // Medium thinking level. + MEDIUM = 2; + + // High thinking level. + HIGH = 3; + + // MINIMAL thinking level. + MINIMAL = 4; + } + // Indicates whether to include thoughts in the response. // If true, thoughts are returned only when available. optional bool include_thoughts = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -315,6 +406,40 @@ message GenerationConfig { // Optional. Indicates the thinking budget in tokens. // This is only applied when enable_thinking is true. optional int32 thinking_budget = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of thoughts tokens that the model should generate. + optional ThinkingLevel thinking_level = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The modalities of the response. + enum Modality { + // Unspecified modality. Will be processed as text. + MODALITY_UNSPECIFIED = 0; + + // Text modality. + TEXT = 1; + + // Image modality. + IMAGE = 2; + + // Audio modality. + AUDIO = 3; + } + + // Media resolution for the input media. + enum MediaResolution { + // Media resolution has not been set. + MEDIA_RESOLUTION_UNSPECIFIED = 0; + + // Media resolution set to low (64 tokens). + MEDIA_RESOLUTION_LOW = 1; + + // Media resolution set to medium (256 tokens). + MEDIA_RESOLUTION_MEDIUM = 2; + + // Media resolution set to high (zoomed reframing with 256 tokens). + MEDIA_RESOLUTION_HIGH = 3; } // Optional. Controls the randomness of predictions. @@ -411,6 +536,27 @@ message GenerationConfig { optional RoutingConfig routing_config = 17 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If enabled, audio timestamps will be included in the request to + // the model. This can be useful for synchronizing audio with other modalities + // in the response. + optional bool audio_timestamp = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The modalities of the response. The model will generate a + // response that includes all the specified modalities. For example, if this + // is set to `[TEXT, IMAGE]`, the response will include both text and an + // image. + repeated Modality response_modalities = 21 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The token resolution at which input media content is sampled. + // This is used to control the trade-off between the quality of the response + // and the number of tokens used to represent the media. A higher resolution + // allows the model to perceive more detail, which can lead to a more nuanced + // response, but it will also use more tokens. This does not affect the + // image dimensions sent to the model. + optional MediaResolution media_resolution = 22 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The speech generation config. optional SpeechConfig speech_config = 23 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index be297cb2e0bf..765194825729 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.74.0 + 26.75.0 pom import @@ -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.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.60.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.61.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview [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.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.61.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 a6a53843fb3b..7e57a9d2043f 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.71.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.72.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb/latest/overview [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.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.72.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 a228731b6a72..16e08d2ddbce 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.92.0 + 0.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.92.0' +implementation 'com.google.analytics:google-analytics-admin:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.92.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.93.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-admin/latest/overview [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.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.93.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 21aa7a05048b..1f1fa61ca2ef 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.93.0 + 0.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.93.0' +implementation 'com.google.analytics:google-analytics-data:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.93.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.94.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-data/latest/overview [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.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.94.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 2ff341986b8c..5af9cc3c1787 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.79.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-analyticshub/latest/overview [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.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.80.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 83bca2681114..ea91809547c4 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.82.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-api-gateway/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.83.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 009cd4883470..8534974f0371 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.82.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-connect/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.83.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 2e4ef42436c3..9e12c6fd6ecf 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.82.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-registry/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.83.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-apihub/README.md b/java-apihub/README.md index 226e33f00b9f..4d9f1c7bb627 100644 --- a/java-apihub/README.md +++ b/java-apihub/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.35.0 + 0.36.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.35.0' +implementation 'com.google.cloud:google-cloud-apihub:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.36.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview [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-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.36.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 fa971b067faf..adaf0fdc7ceb 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.80.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.81.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 f73182ea5441..b361dfc01846 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.82.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appengine-admin/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.83.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 c5315776a752..75309e679bc0 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 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-apphub:0.46.0' +implementation 'com.google.cloud:google-cloud-apphub:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.47.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apphub/latest/overview [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.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/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-area120-tables/README.md b/java-area120-tables/README.md index 1331b34c7200..d3855ae4f1e8 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.86.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.86.0' +implementation 'com.google.area120:google-area120-tables:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.86.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.87.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-area120-tables/latest/overview [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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.87.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 8337668cdd74..c9a529cee0dd 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.74.0 + 26.75.0 pom import @@ -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.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.81.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.82.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 59b045948cdc..f805802fe19d 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.86.0 + 3.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.86.0' +implementation 'com.google.cloud:google-cloud-asset:3.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.87.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview [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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.87.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 a1958291edc9..66de12a7a470 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.82.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-assured-workloads/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.83.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-auditmanager/README.md b/java-auditmanager/README.md index f44ebe5eba0b..86654586a571 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-auditmanager - 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-auditmanager:0.0.0' +implementation 'com.google.cloud:google-cloud-auditmanager:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.1.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview [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-auditmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/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-automl/README.md b/java-automl/README.md index 37d0ea100b47..dcc44189bb78 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.82.0' +implementation 'com.google.cloud:google-cloud-automl:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.83.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-automl/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.83.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 01e4a389117e..8e71eb09b7ea 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 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-backupdr:0.41.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.42.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview [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.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/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-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 9e7030d0e962..7ea239aba3d8 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.82.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.83.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 b9df0ca805f0..3ed463ad2720 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.82.0' +implementation 'com.google.cloud:google-cloud-batch:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-batch/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.83.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-appconnections/README.md b/java-beyondcorp-appconnections/README.md index fd83b8bfa4b8..23120b0418c6 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.74.0 + 26.75.0 pom import @@ -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.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnections/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.81.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 1696363a99b4..2db4dca08198 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.74.0 + 26.75.0 pom import @@ -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.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnectors/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.81.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 ad1e2cf4f082..488ab5c02b50 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.74.0 + 26.75.0 pom import @@ -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.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appgateways/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.81.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 9ab8d8c19e1a..3c8c41a2c331 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.74.0 + 26.75.0 pom import @@ -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.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientconnectorservices/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.81.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 211d0c3a175c..9bb921de9f42 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.74.0 + 26.75.0 pom import @@ -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.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientgateways/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.81.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 3bfe137f03b3..f3767802e6dd 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.70.0' +implementation 'com.google.cloud:google-cloud-biglake:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.71.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake/latest/overview [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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.71.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 cc3aa8bdf8b4..d7b8d8d10d85 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.74.0 + 26.75.0 pom import @@ -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.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.77.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.78.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquery-data-exchange/latest/overview [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.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.78.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 1b267a999002..e36f9597936d 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.84.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.84.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.85.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 b091f269d646..afabf70ed666 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.79.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.80.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/latest/overview [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.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.80.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 e56e51d3e1c0..d165c560fb46 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.82.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatatransfer/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.83.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 10e24f8eceb2..b6eb12da9edb 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.85.0 + 0.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.85.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.86.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerymigration/latest/overview [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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.86.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 b4a8c22564ef..527ce90671fc 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.83.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigqueryreservation/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.84.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 04281b64b09f..626f6ae7aff8 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.82.0' +implementation 'com.google.cloud:google-cloud-billing:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billing/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.83.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-billingbudgets/README.md b/java-billingbudgets/README.md index 79c803d8464a..00eded0e9052 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.82.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billingbudgets/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.83.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 bd905f14b4bb..9a4e3efd471a 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.74.0 + 26.75.0 pom import @@ -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.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.81.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.82.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-capacityplanner/README.md b/java-capacityplanner/README.md index 9db8bbab95e0..212fb0d859af 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.5.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.5.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.6.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview [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-capacityplanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.6.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 2954d7a4262e..1d93728b43ee 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.74.0 + 26.75.0 pom import @@ -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.85.0 + 0.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.85.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.86.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-certificate-manager/latest/overview [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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.86.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 b23225bd17ae..d2a0b64191c0 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.86.0 + 3.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.86.0' +implementation 'com.google.cloud:google-cloud-channel:3.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.87.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-channel/latest/overview [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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.87.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 c41baa886e91..af6aa04f9c89 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 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-chat:0.46.0' +implementation 'com.google.cloud:google-cloud-chat:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.47.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chat/latest/overview [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.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/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-chronicle/README.md b/java-chronicle/README.md index 1effacfdceea..94d52a7b2383 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.20.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.21.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview [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-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/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-cloudapiregistry/README.md b/java-cloudapiregistry/README.md index 03b63a07927d..59e191e1dcbb 100644 --- a/java-cloudapiregistry/README.md +++ b/java-cloudapiregistry/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudapiregistry - 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-cloudapiregistry:0.1.0' +implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.2.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview [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-cloudapiregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/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-cloudbuild/README.md b/java-cloudbuild/README.md index 7debd16a12c8..c9a4d88104e9 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.84.0 + 3.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.84.0' +implementation 'com.google.cloud:google-cloud-build:3.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-build/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.85.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 a2e5e2b5dccc..3accec9a233b 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.80.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcommerceconsumerprocurement/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.81.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 1911258b5cca..42fc49d43820 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 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-cloudcontrolspartner:0.46.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.47.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/overview [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.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/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-cloudquotas/README.md b/java-cloudquotas/README.md index a9787ca59177..8b4318a472b1 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.50.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.51.0" ``` ## Authentication @@ -177,7 +177,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudquotas/latest/overview [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.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/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-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java index 632f4e1ba30d..1c3b8221675f 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java @@ -65,7 +65,7 @@ * * *

UpdateQuotaAdjusterSettings - *

RPC Method for updating QuotaAdjusterSettings based on the request + *

Updates the QuotaAdjusterSettings for the specified resource. * *

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

*
    @@ -83,7 +83,7 @@ * * *

    GetQuotaAdjusterSettings - *

    RPC Method for getting QuotaAdjusterSettings based on the request + *

    Gets the QuotaAdjusterSettings for the specified resource. * *

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

    *
      @@ -215,7 +215,7 @@ public QuotaAdjusterSettingsManagerStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *

      Sample code: * @@ -251,7 +251,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *

      Sample code: * @@ -284,7 +284,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *

      Sample code: * @@ -318,7 +318,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *

      Sample code: * @@ -351,7 +351,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings(QuotaAdjusterSetting // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *

      Sample code: * @@ -382,7 +382,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *

      Sample code: * @@ -415,7 +415,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *

      Sample code: * diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java index 3c9cb1bd94b9..addd059f73a1 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java @@ -215,7 +215,7 @@ public interface AsyncService { * * *

      -     * RPC Method for updating QuotaAdjusterSettings based on the request
      +     * Updates the QuotaAdjusterSettings for the specified resource.
            * 
      */ default void updateQuotaAdjusterSettings( @@ -230,7 +230,7 @@ default void updateQuotaAdjusterSettings( * * *
      -     * RPC Method for getting QuotaAdjusterSettings based on the request
      +     * Gets the QuotaAdjusterSettings for the specified resource.
            * 
      */ default void getQuotaAdjusterSettings( @@ -290,7 +290,7 @@ protected QuotaAdjusterSettingsManagerStub build( * * *
      -     * RPC Method for updating QuotaAdjusterSettings based on the request
      +     * Updates the QuotaAdjusterSettings for the specified resource.
            * 
      */ public void updateQuotaAdjusterSettings( @@ -307,7 +307,7 @@ public void updateQuotaAdjusterSettings( * * *
      -     * RPC Method for getting QuotaAdjusterSettings based on the request
      +     * Gets the QuotaAdjusterSettings for the specified resource.
            * 
      */ public void getQuotaAdjusterSettings( @@ -349,7 +349,7 @@ protected QuotaAdjusterSettingsManagerBlockingV2Stub build( * * *
      -     * RPC Method for updating QuotaAdjusterSettings based on the request
      +     * Updates the QuotaAdjusterSettings for the specified resource.
            * 
      */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjusterSettings( @@ -363,7 +363,7 @@ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjust * * *
      -     * RPC Method for getting QuotaAdjusterSettings based on the request
      +     * Gets the QuotaAdjusterSettings for the specified resource.
            * 
      */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings getQuotaAdjusterSettings( @@ -403,7 +403,7 @@ protected QuotaAdjusterSettingsManagerBlockingStub build( * * *
      -     * RPC Method for updating QuotaAdjusterSettings based on the request
      +     * Updates the QuotaAdjusterSettings for the specified resource.
            * 
      */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjusterSettings( @@ -416,7 +416,7 @@ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjust * * *
      -     * RPC Method for getting QuotaAdjusterSettings based on the request
      +     * Gets the QuotaAdjusterSettings for the specified resource.
            * 
      */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings getQuotaAdjusterSettings( @@ -455,7 +455,7 @@ protected QuotaAdjusterSettingsManagerFutureStub build( * * *
      -     * RPC Method for updating QuotaAdjusterSettings based on the request
      +     * Updates the QuotaAdjusterSettings for the specified resource.
            * 
      */ public com.google.common.util.concurrent.ListenableFuture< @@ -470,7 +470,7 @@ protected QuotaAdjusterSettingsManagerFutureStub build( * * *
      -     * RPC Method for getting QuotaAdjusterSettings based on the request
      +     * Gets the QuotaAdjusterSettings for the specified resource.
            * 
      */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java index c6dc4fb8f60a..2579b3a972a1 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java @@ -255,9 +255,13 @@ private Enablement(int value) { * * *
      -   * Identifier. Name of the config would be of the format:
      +   * Identifier. Name of the configuration, in the formats below:
      +   *
      +   * * For a project:
          * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
      +   * * For a folder:
          * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
      +   * * For an organization:
          * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
          * 
      * @@ -282,9 +286,13 @@ public java.lang.String getName() { * * *
      -   * Identifier. Name of the config would be of the format:
      +   * Identifier. Name of the configuration, in the formats below:
      +   *
      +   * * For a project:
          * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
      +   * * For a folder:
          * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
      +   * * For an organization:
          * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
          * 
      * @@ -1003,9 +1011,13 @@ public Builder mergeFrom( * * *
      -     * Identifier. Name of the config would be of the format:
      +     * Identifier. Name of the configuration, in the formats below:
      +     *
      +     * * For a project:
            * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For a folder:
            * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For an organization:
            * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
            * 
      * @@ -1029,9 +1041,13 @@ public java.lang.String getName() { * * *
      -     * Identifier. Name of the config would be of the format:
      +     * Identifier. Name of the configuration, in the formats below:
      +     *
      +     * * For a project:
            * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For a folder:
            * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For an organization:
            * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
            * 
      * @@ -1055,9 +1071,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Identifier. Name of the config would be of the format:
      +     * Identifier. Name of the configuration, in the formats below:
      +     *
      +     * * For a project:
            * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For a folder:
            * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For an organization:
            * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
            * 
      * @@ -1080,9 +1100,13 @@ public Builder setName(java.lang.String value) { * * *
      -     * Identifier. Name of the config would be of the format:
      +     * Identifier. Name of the configuration, in the formats below:
      +     *
      +     * * For a project:
            * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For a folder:
            * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For an organization:
            * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
            * 
      * @@ -1101,9 +1125,13 @@ public Builder clearName() { * * *
      -     * Identifier. Name of the config would be of the format:
      +     * Identifier. Name of the configuration, in the formats below:
      +     *
      +     * * For a project:
            * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For a folder:
            * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
      +     * * For an organization:
            * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
            * 
      * diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java index 9134319c5554..4fdfec7861a3 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java @@ -30,9 +30,13 @@ public interface QuotaAdjusterSettingsOrBuilder * * *
      -   * Identifier. Name of the config would be of the format:
      +   * Identifier. Name of the configuration, in the formats below:
      +   *
      +   * * For a project:
          * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
      +   * * For a folder:
          * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
      +   * * For an organization:
          * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
          * 
      * @@ -46,9 +50,13 @@ public interface QuotaAdjusterSettingsOrBuilder * * *
      -   * Identifier. Name of the config would be of the format:
      +   * Identifier. Name of the configuration, in the formats below:
      +   *
      +   * * For a project:
          * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
      +   * * For a folder:
          * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
      +   * * For an organization:
          * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
          * 
      * diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto index 15b0f299c2ef..8f8d3eb4e846 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto @@ -42,7 +42,7 @@ service QuotaAdjusterSettingsManager { option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // RPC Method for updating QuotaAdjusterSettings based on the request + // Updates the QuotaAdjusterSettings for the specified resource. rpc UpdateQuotaAdjusterSettings(UpdateQuotaAdjusterSettingsRequest) returns (QuotaAdjusterSettings) { option (google.api.http) = { @@ -61,7 +61,7 @@ service QuotaAdjusterSettingsManager { "quota_adjuster_settings,update_mask"; } - // RPC Method for getting QuotaAdjusterSettings based on the request + // Gets the QuotaAdjusterSettings for the specified resource. rpc GetQuotaAdjusterSettings(GetQuotaAdjusterSettingsRequest) returns (QuotaAdjusterSettings) { option (google.api.http) = { @@ -130,9 +130,13 @@ message QuotaAdjusterSettings { DISABLED = 3; } - // Identifier. Name of the config would be of the format: + // Identifier. Name of the configuration, in the formats below: + // + // * For a project: // projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings + // * For a folder: // folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings + // * For an organization: // organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings string name = 1 [(google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index 5e33f33f520f..f4e3ec985904 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsecuritycompliance - 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-cloudsecuritycompliance:0.9.0' +implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.10.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview [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-cloudsecuritycompliance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/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-cloudsupport/README.md b/java-cloudsupport/README.md index 26b4941312c7..79fc9e31ec93 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.66.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.67.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsupport/latest/overview [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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.67.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 d4d4ae9ccb22..682b3e66a1d8 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.92.0 + 1.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.92.0' +implementation 'com.google.cloud:google-cloud-compute:1.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.93.0" ``` ## Authentication @@ -238,7 +238,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-compute/latest/overview [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.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.93.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 d9268ec8d993..6da7a78c9aa3 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.68.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.69.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/overview [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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.69.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-configdelivery/README.md b/java-configdelivery/README.md index 45d9ba387e73..e68d95a8680a 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.16.0 + 0.17.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.16.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.16.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.17.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview [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-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/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-connectgateway/README.md b/java-connectgateway/README.md index c713d1843d88..ffccef375d6a 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 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-connectgateway:0.34.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.35.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview [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-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.35.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 c09a2231e988..43849a9312e7 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.82.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contact-center-insights/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.83.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 82930ea4af6c..b78af242f91e 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.85.0 + 2.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.85.0' +implementation 'com.google.cloud:google-cloud-container:2.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.86.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-container/latest/overview [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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.86.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-containeranalysis/README.md b/java-containeranalysis/README.md index 812e81b5a225..a3bbeff70b19 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.83.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.84.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 5a245da5f868..fa5049cc0e9b 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.78.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.78.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.79.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contentwarehouse/latest/overview [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.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.79.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 305b1a1a6c38..2ef07d3a7bd8 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.82.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-data-fusion/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.83.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-databasecenter/README.md b/java-databasecenter/README.md index 9763f5e83093..3405816ed03c 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.3.0 + 0.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.3.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.4.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview [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-databasecenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/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-datacatalog/README.md b/java-datacatalog/README.md index db43607725ea..68a1b5207e51 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datacatalog - 1.88.0 + 1.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.88.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.89.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datacatalog/latest/overview [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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.89.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 84c7e23e096d..a94b2d9e4f9d 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.86.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.86.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.87.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataflow/latest/overview [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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.87.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 0d7fa4211401..2e382316626c 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.81.0 + 0.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.81.0' +implementation 'com.google.cloud:google-cloud-dataform:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.82.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataform/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.82.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 1ce3d040b0fe..8cf455618525 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalabeling - 0.202.0 + 0.203.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.202.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.203.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.202.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.203.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalabeling/latest/overview [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.202.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.203.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 0f3694afbd09..850b8e892796 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.74.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.74.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.75.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/overview [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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.75.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-datamanager/README.md b/java-datamanager/README.md index 455c8733b36b..3de63663868b 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads data-manager - 0.3.0 + 0.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.3.0' +implementation 'com.google.api-ads:data-manager:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.3.0" +libraryDependencies += "com.google.api-ads" % "data-manager" % "0.4.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/data-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/data-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-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-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java index 73bdb0e6f124..88fc20d89d48 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java @@ -75,12 +75,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.ads.datamanager.v1.ConsentB\003\340A\001B\006" + "\n\004data\"!\n\010PairData\022\025\n\010pair_ids\030\001 \003(\tB\003\340A" + "\002\"%\n\nMobileData\022\027\n\nmobile_ids\030\001 \003(\tB\003\340A\002" - + "B\315\001\n\035com.google.ads.datamanager.v1B\rAudi" - + "enceProtoP\001ZDgoogle.golang.org/genproto/" - + "googleapis/ads/datamanager/v1;datamanage" - + "r\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\A" - + "ds\\DataManager\\V1\352\002\034Google::Ads::DataMan" - + "ager::V1b\006proto3" + + "B\312\001\n\035com.google.ads.datamanager.v1B\rAudi" + + "enceProtoP\001ZAcloud.google.com/go/dataman" + + "ager/apiv1/datamanagerpb;datamanagerpb\252\002" + + "\031Google.Ads.DataManager.V1\312\002\031Google\\Ads\\" + + "DataManager\\V1\352\002\034Google::Ads::DataManage" + + "r::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfo.java index 2c82461918ca..c647d08cd7e0 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfo.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfo.java @@ -273,7 +273,7 @@ public com.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType getKeyType() { *
          * Required. The Amazon Resource Name of the IAM Role to assume for KMS
          * decryption access. Should be in the format of
      -   * "arn:{partition}:iam::{account_id}:role/{role_name}"
      +   * `arn:{partition}:iam::{account_id}:role/{role_name}`
          * 
      * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -299,7 +299,7 @@ public java.lang.String getRoleArn() { *
          * Required. The Amazon Resource Name of the IAM Role to assume for KMS
          * decryption access. Should be in the format of
      -   * "arn:{partition}:iam::{account_id}:role/{role_name}"
      +   * `arn:{partition}:iam::{account_id}:role/{role_name}`
          * 
      * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -329,7 +329,8 @@ public com.google.protobuf.ByteString getRoleArnBytes() { * *
          * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
      -   * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
      +   * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
      +   * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
          * 
      * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -354,7 +355,8 @@ public java.lang.String getKekUri() { * *
          * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
      -   * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
      +   * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
      +   * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
          * 
      * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -926,7 +928,7 @@ public Builder clearKeyType() { *
            * Required. The Amazon Resource Name of the IAM Role to assume for KMS
            * decryption access. Should be in the format of
      -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
      +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
            * 
      * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -951,7 +953,7 @@ public java.lang.String getRoleArn() { *
            * Required. The Amazon Resource Name of the IAM Role to assume for KMS
            * decryption access. Should be in the format of
      -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
      +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
            * 
      * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -976,7 +978,7 @@ public com.google.protobuf.ByteString getRoleArnBytes() { *
            * Required. The Amazon Resource Name of the IAM Role to assume for KMS
            * decryption access. Should be in the format of
      -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
      +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
            * 
      * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1000,7 +1002,7 @@ public Builder setRoleArn(java.lang.String value) { *
            * Required. The Amazon Resource Name of the IAM Role to assume for KMS
            * decryption access. Should be in the format of
      -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
      +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
            * 
      * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1020,7 +1022,7 @@ public Builder clearRoleArn() { *
            * Required. The Amazon Resource Name of the IAM Role to assume for KMS
            * decryption access. Should be in the format of
      -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
      +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
            * 
      * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1046,7 +1048,8 @@ public Builder setRoleArnBytes(com.google.protobuf.ByteString value) { * *
            * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
      -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
      +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
      +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
            * 
      * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1070,7 +1073,8 @@ public java.lang.String getKekUri() { * *
            * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
      -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
      +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
      +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
            * 
      * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1094,7 +1098,8 @@ public com.google.protobuf.ByteString getKekUriBytes() { * *
            * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
      -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
      +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
      +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
            * 
      * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1117,7 +1122,8 @@ public Builder setKekUri(java.lang.String value) { * *
            * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
      -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
      +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
      +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
            * 
      * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1136,7 +1142,8 @@ public Builder clearKekUri() { * *
            * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
      -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
      +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
      +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
            * 
      * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java index 1c417aed7079..95f4e5466772 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java @@ -62,7 +62,7 @@ public interface AwsWrappedKeyInfoOrBuilder *
          * Required. The Amazon Resource Name of the IAM Role to assume for KMS
          * decryption access. Should be in the format of
      -   * "arn:{partition}:iam::{account_id}:role/{role_name}"
      +   * `arn:{partition}:iam::{account_id}:role/{role_name}`
          * 
      * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -77,7 +77,7 @@ public interface AwsWrappedKeyInfoOrBuilder *
          * Required. The Amazon Resource Name of the IAM Role to assume for KMS
          * decryption access. Should be in the format of
      -   * "arn:{partition}:iam::{account_id}:role/{role_name}"
      +   * `arn:{partition}:iam::{account_id}:role/{role_name}`
          * 
      * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -91,7 +91,8 @@ public interface AwsWrappedKeyInfoOrBuilder * *
          * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
      -   * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
      +   * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
      +   * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
          * 
      * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -105,7 +106,8 @@ public interface AwsWrappedKeyInfoOrBuilder * *
          * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
      -   * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
      +   * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
      +   * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
          * 
      * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java index b5008a5741ca..85f4a762baef 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java @@ -70,13 +70,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010quantity\030\002 \001(\003B\003\340A\001\022\027\n\nunit_price\030\003 \001(\001" + "B\003\340A\001\022\024\n\007item_id\030\004 \001(\tB\003\340A\001\022Q\n\032additiona" + "l_item_parameters\030\005 \003(\0132(.google.ads.dat" - + "amanager.v1.ItemParameterB\003\340A\001B\315\001\n\035com.g" + + "amanager.v1.ItemParameterB\003\340A\001B\312\001\n\035com.g" + "oogle.ads.datamanager.v1B\rCartDataProtoP" - + "\001ZDgoogle.golang.org/genproto/googleapis" - + "/ads/datamanager/v1;datamanager\252\002\031Google" - + ".Ads.DataManager.V1\312\002\031Google\\Ads\\DataMan" - + "ager\\V1\352\002\034Google::Ads::DataManager::V1b\006" - + "proto3" + + "\001ZAcloud.google.com/go/datamanager/apiv1" + + "/datamanagerpb;datamanagerpb\252\002\031Google.Ad" + + "s.DataManager.V1\312\002\031Google\\Ads\\DataManage" + + "r\\V1\352\002\034Google::Ads::DataManager::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java index a3099c4f36c3..f9efcbc3b6e1 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java @@ -61,13 +61,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion\030\002 \001(\0162(.google.ads.datamanager.v1.C" + "onsentStatusB\003\340A\001*X\n\rConsentStatus\022\036\n\032CO" + "NSENT_STATUS_UNSPECIFIED\020\000\022\023\n\017CONSENT_GR" - + "ANTED\020\001\022\022\n\016CONSENT_DENIED\020\002B\314\001\n\035com.goog" - + "le.ads.datamanager.v1B\014ConsentProtoP\001ZDg" - + "oogle.golang.org/genproto/googleapis/ads" - + "/datamanager/v1;datamanager\252\002\031Google.Ads" - + ".DataManager.V1\312\002\031Google\\Ads\\DataManager" - + "\\V1\352\002\034Google::Ads::DataManager::V1b\006prot" - + "o3" + + "ANTED\020\001\022\022\n\016CONSENT_DENIED\020\002B\311\001\n\035com.goog" + + "le.ads.datamanager.v1B\014ConsentProtoP\001ZAc" + + "loud.google.com/go/datamanager/apiv1/dat" + + "amanagerpb;datamanagerpb\252\002\031Google.Ads.Da" + + "taManager.V1\312\002\031Google\\Ads\\DataManager\\V1" + + "\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java index 64023f8c2d40..dcba72cabe42 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java @@ -79,12 +79,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uct\022\027\n\023PRODUCT_UNSPECIFIED\020\000\022\016\n\nGOOGLE_A" + "DS\020\001\022\031\n\025DISPLAY_VIDEO_PARTNER\020\002\022\034\n\030DISPL" + "AY_VIDEO_ADVERTISER\020\003\022\020\n\014DATA_PARTNER\020\004\032" - + "\002\030\001B\320\001\n\035com.google.ads.datamanager.v1B\020D" - + "estinationProtoP\001ZDgoogle.golang.org/gen" - + "proto/googleapis/ads/datamanager/v1;data" - + "manager\252\002\031Google.Ads.DataManager.V1\312\002\031Go" - + "ogle\\Ads\\DataManager\\V1\352\002\034Google::Ads::D" - + "ataManager::V1b\006proto3" + + "\002\030\001B\315\001\n\035com.google.ads.datamanager.v1B\020D" + + "estinationProtoP\001ZAcloud.google.com/go/d" + + "atamanager/apiv1/datamanagerpb;datamanag" + + "erpb\252\002\031Google.Ads.DataManager.V1\312\002\031Googl" + + "e\\Ads\\DataManager\\V1\352\002\034Google::Ads::Data" + + "Manager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java index d052b330b1ed..b6c5cf073868 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java @@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022\031google.ads.datamanager.v1\032\037google" + "/api/field_behavior.proto\">\n\nDeviceInfo\022" + "\027\n\nuser_agent\030\001 \001(\tB\003\340A\001\022\027\n\nip_address\030\002" - + " \001(\tB\003\340A\001B\317\001\n\035com.google.ads.datamanager" - + ".v1B\017DeviceInfoProtoP\001ZDgoogle.golang.or" - + "g/genproto/googleapis/ads/datamanager/v1" - + ";datamanager\252\002\031Google.Ads.DataManager.V1" - + "\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::A" - + "ds::DataManager::V1b\006proto3" + + " \001(\tB\003\340A\001B\314\001\n\035com.google.ads.datamanager" + + ".v1B\017DeviceInfoProtoP\001ZAcloud.google.com" + + "/go/datamanager/apiv1/datamanagerpb;data" + + "managerpb\252\002\031Google.Ads.DataManager.V1\312\002\031" + + "Google\\Ads\\DataManager\\V1\352\002\034Google::Ads:" + + ":DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java index 0d5374be2cd2..cc530e5c4306 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java @@ -87,12 +87,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "encrypted_dek\030\004 \001(\tB\003\340A\002\";\n" + "\007KeyType\022\030\n" + "\024KEY_TYPE_UNSPECIFIED\020\000\022\026\n" - + "\022XCHACHA20_POLY1305\020\001B\323\001\n" - + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZDgoogle.golan" - + "g.org/genproto/googleapis/ads/datamanage" - + "r/v1;datamanager\252\002\031Google.Ads.DataManage" - + "r.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Googl" - + "e::Ads::DataManager::V1b\006proto3" + + "\022XCHACHA20_POLY1305\020\001B\320\001\n" + + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZAcloud.google" + + ".com/go/datamanager/apiv1/datamanagerpb;" + + "datamanagerpb\252\002\031Google.Ads.DataManager.V" + + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::" + + "Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java index da92d6f29499..7be2b5520d81 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java @@ -92,12 +92,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022INVALID_REQUEST_ID\0200\0224\n0MULTIPLE_DESTIN" + "ATIONS_FOR_GOOGLE_ANALYTICS_EVENT\0201\022\030\n\024F" + "IELD_VALUE_TOO_LONG\0202\022\025\n\021TOO_MANY_ELEMEN" - + "TS\0203B\312\001\n\035com.google.ads.datamanager.v1B\n" - + "ErrorProtoP\001ZDgoogle.golang.org/genproto" - + "/googleapis/ads/datamanager/v1;datamanag" - + "er\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\" - + "Ads\\DataManager\\V1\352\002\034Google::Ads::DataMa" - + "nager::V1b\006proto3" + + "TS\0203B\307\001\n\035com.google.ads.datamanager.v1B\n" + + "ErrorProtoP\001ZAcloud.google.com/go/datama" + + "nager/apiv1/datamanagerpb;datamanagerpb\252" + + "\002\031Google.Ads.DataManager.V1\312\002\031Google\\Ads" + + "\\DataManager\\V1\352\002\034Google::Ads::DataManag" + + "er::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java index dc2cb39e4850..92cc8222a784 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java @@ -126,11 +126,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003APP\020\002\022\014\n" + "\010IN_STORE\020\003\022\t\n" + "\005PHONE\020\004\022\t\n" - + "\005OTHER\020\005B\312\001\n" + + "\005OTHER\020\005B\307\001\n" + "\035com.google.ads.datamanager.v1B\n" - + "EventProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/datamanager/v1;datamana" - + "ger\252\002\031Google.Ads.DataManager.V1\312\002\031Google" - + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" + + "EventProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb" + + "\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\Ad" + + "s\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java index 078ca71fe26e..b11adc9dce76 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java @@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_field.proto\022\031google.ads.datamanager.v1\032" + "\037google/api/field_behavior.proto\";\n\021Expe" + "rimentalField\022\022\n\005field\030\001 \001(\tB\003\340A\001\022\022\n\005val" - + "ue\030\002 \001(\tB\003\340A\001B\326\001\n\035com.google.ads.dataman" - + "ager.v1B\026ExperimentalFieldProtoP\001ZDgoogl" - + "e.golang.org/genproto/googleapis/ads/dat" - + "amanager/v1;datamanager\252\002\031Google.Ads.Dat" - + "aManager.V1\312\002\031Google\\Ads\\DataManager\\V1\352" - + "\002\034Google::Ads::DataManager::V1b\006proto3" + + "ue\030\002 \001(\tB\003\340A\001B\323\001\n\035com.google.ads.dataman" + + "ager.v1B\026ExperimentalFieldProtoP\001ZAcloud" + + ".google.com/go/datamanager/apiv1/dataman" + + "agerpb;datamanagerpb\252\002\031Google.Ads.DataMa" + + "nager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034G" + + "oogle::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java index 35166aee4e68..af83469e1247 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java @@ -332,7 +332,9 @@ public com.google.protobuf.ByteString getWipProviderBytes() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -359,7 +361,9 @@ public java.lang.String getKekUri() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1054,7 +1058,9 @@ public Builder setWipProviderBytes(com.google.protobuf.ByteString value) { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1080,7 +1086,9 @@ public java.lang.String getKekUri() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1106,7 +1114,9 @@ public com.google.protobuf.ByteString getKekUriBytes() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1131,7 +1141,9 @@ public Builder setKekUri(java.lang.String value) { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1152,7 +1164,9 @@ public Builder clearKekUri() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java index 841149635d5d..6c24d9acdf2b 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java @@ -93,7 +93,9 @@ public interface GcpWrappedKeyInfoOrBuilder * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -109,7 +111,9 @@ public interface GcpWrappedKeyInfoOrBuilder * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java index 8d1d8e4fec73..aaaf7d0a7d3e 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java @@ -151,13 +151,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "datamanager.v1.RetrieveRequestStatusResp" + "onse\"\"\202\323\344\223\002\034\022\032/v1/requestStatus:retrieve" + "\032K\312A\032datamanager.googleapis.com\322A+https:" - + "//www.googleapis.com/auth/datamanagerB\325\001" + + "//www.googleapis.com/auth/datamanagerB\322\001" + "\n\035com.google.ads.datamanager.v1B\025Ingesti" - + "onServiceProtoP\001ZDgoogle.golang.org/genp" - + "roto/googleapis/ads/datamanager/v1;datam" - + "anager\252\002\031Google.Ads.DataManager.V1\312\002\031Goo" - + "gle\\Ads\\DataManager\\V1\352\002\034Google::Ads::Da" - + "taManager::V1b\006proto3" + + "onServiceProtoP\001ZAcloud.google.com/go/da" + + "tamanager/apiv1/datamanagerpb;datamanage" + + "rpb\252\002\031Google.Ads.DataManager.V1\312\002\031Google" + + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataM" + + "anager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java index dff9b0f78dda..86101d19dc2c 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java @@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "er.proto\022\031google.ads.datamanager.v1\032\037goo" + "gle/api/field_behavior.proto\"@\n\rItemPara" + "meter\022\033\n\016parameter_name\030\001 \001(\tB\003\340A\002\022\022\n\005va" - + "lue\030\002 \001(\tB\003\340A\002B\322\001\n\035com.google.ads.datama" - + "nager.v1B\022ItemParameterProtoP\001ZDgoogle.g" - + "olang.org/genproto/googleapis/ads/datama" - + "nager/v1;datamanager\252\002\031Google.Ads.DataMa" - + "nager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034G" - + "oogle::Ads::DataManager::V1b\006proto3" + + "lue\030\002 \001(\tB\003\340A\002B\317\001\n\035com.google.ads.datama" + + "nager.v1B\022ItemParameterProtoP\001ZAcloud.go" + + "ogle.com/go/datamanager/apiv1/datamanage" + + "rpb;datamanagerpb\252\002\031Google.Ads.DataManag" + + "er.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Goog" + + "le::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java index 3a8c335cd94a..c1c8a89fc981 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java @@ -59,12 +59,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "TCH_RATE_RANGE_61_TO_70\020\007\022\035\n\031MATCH_RATE_" + "RANGE_71_TO_80\020\010\022\035\n\031MATCH_RATE_RANGE_81_" + "TO_90\020\t\022\036\n\032MATCH_RATE_RANGE_91_TO_100\020\nB" - + "\316\001\n\035com.google.ads.datamanager.v1B\016Match" - + "RateProtoP\001ZDgoogle.golang.org/genproto/" - + "googleapis/ads/datamanager/v1;datamanage" - + "r\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\A" - + "ds\\DataManager\\V1\352\002\034Google::Ads::DataMan" - + "ager::V1b\006proto3" + + "\313\001\n\035com.google.ads.datamanager.v1B\016Match" + + "RateProtoP\001ZAcloud.google.com/go/dataman" + + "ager/apiv1/datamanagerpb;datamanagerpb\252\002" + + "\031Google.Ads.DataManager.V1\312\002\031Google\\Ads\\" + + "DataManager\\V1\352\002\034Google::Ads::DataManage" + + "r::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java index ed757a546550..ec5c38d9a3b9 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java @@ -124,12 +124,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SER_IDENTIFIER_DECRYPTION_ERROR\020\007\022,\n(PRO" + "CESSING_WARNING_REASON_INTERNAL_ERROR\020\010\022" + "-\n)PROCESSING_WARNING_REASON_AWS_AUTH_FA" - + "ILED\020\tB\325\001\n\035com.google.ads.datamanager.v1" - + "B\025ProcessingErrorsProtoP\001ZDgoogle.golang" - + ".org/genproto/googleapis/ads/datamanager" - + "/v1;datamanager\252\002\031Google.Ads.DataManager" - + ".V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google" - + "::Ads::DataManager::V1b\006proto3" + + "ILED\020\tB\322\001\n\035com.google.ads.datamanager.v1" + + "B\025ProcessingErrorsProtoP\001ZAcloud.google." + + "com/go/datamanager/apiv1/datamanagerpb;d" + + "atamanagerpb\252\002\031Google.Ads.DataManager.V1" + + "\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::A" + + "ds::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java index 2c6160e4b327..708ae83dda00 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java @@ -147,13 +147,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cord_count\030\001 \001(\003\022\025\n\rpair_id_count\030\002 \001(\003\"" + "i\n\rRequestStatus\022\032\n\026REQUEST_STATUS_UNKNO" + "WN\020\000\022\013\n\007SUCCESS\020\001\022\016\n\nPROCESSING\020\002\022\n\n\006FAI" - + "LED\020\003\022\023\n\017PARTIAL_SUCCESS\020\004B\010\n\006statusB\340\001\n" + + "LED\020\003\022\023\n\017PARTIAL_SUCCESS\020\004B\010\n\006statusB\335\001\n" + "\035com.google.ads.datamanager.v1B RequestS" - + "tatusPerDestinationProtoP\001ZDgoogle.golan" - + "g.org/genproto/googleapis/ads/datamanage" - + "r/v1;datamanager\252\002\031Google.Ads.DataManage" - + "r.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Googl" - + "e::Ads::DataManager::V1b\006proto3" + + "tatusPerDestinationProtoP\001ZAcloud.google" + + ".com/go/datamanager/apiv1/datamanagerpb;" + + "datamanagerpb\252\002\031Google.Ads.DataManager.V" + + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::" + + "Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java index f5665198d57f..0d30a1a79b02 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java @@ -61,12 +61,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "r.v1.TermsOfServiceStatusB\003\340A\001*[\n\024TermsO" + "fServiceStatus\022\'\n#TERMS_OF_SERVICE_STATU" + "S_UNSPECIFIED\020\000\022\014\n\010ACCEPTED\020\001\022\014\n\010REJECTE" - + "D\020\002B\323\001\n\035com.google.ads.datamanager.v1B\023T" - + "ermsOfServiceProtoP\001ZDgoogle.golang.org/" - + "genproto/googleapis/ads/datamanager/v1;d" - + "atamanager\252\002\031Google.Ads.DataManager.V1\312\002" - + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads" - + "::DataManager::V1b\006proto3" + + "D\020\002B\320\001\n\035com.google.ads.datamanager.v1B\023T" + + "ermsOfServiceProtoP\001ZAcloud.google.com/g" + + "o/datamanager/apiv1/datamanagerpb;datama" + + "nagerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Go" + + "ogle\\Ads\\DataManager\\V1\352\002\034Google::Ads::D" + + "ataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java index ca0ccfac4aa1..e672e98b0fc1 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java @@ -76,11 +76,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "given_name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013family_name\030\002 \001(\tB\003\340A\002\022\030\n" + "\013region_code\030\003 \001(\tB\003\340A\002\022\030\n" - + "\013postal_code\030\004 \001(\tB\003\340A\002B\315\001\n" + + "\013postal_code\030\004 \001(\tB\003\340A\002B\312\001\n" + "\035com.google.ads.datamanager.v1B\r" - + "UserDataProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/datamanager/v1;da" - + "tamanager\252\002\031Google.Ads.DataManager.V1\312\002\031" - + "Google\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" + + "UserDataProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;dataman" + + "agerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Goo" + + "gle\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java index 775afcf48623..fcb0534cee35 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java @@ -72,12 +72,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "W\020\001\022\r\n\tRETURNING\020\002\022\r\n\tREENGAGED\020\003*[\n\023Cus" + "tomerValueBucket\022%\n!CUSTOMER_VALUE_BUCKE" + "T_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004" - + "HIGH\020\003B\323\001\n\035com.google.ads.datamanager.v1" - + "B\023UserPropertiesProtoP\001ZDgoogle.golang.o" - + "rg/genproto/googleapis/ads/datamanager/v" - + "1;datamanager\252\002\031Google.Ads.DataManager.V" - + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::" - + "Ads::DataManager::V1b\006proto3" + + "HIGH\020\003B\320\001\n\035com.google.ads.datamanager.v1" + + "B\023UserPropertiesProtoP\001ZAcloud.google.co" + + "m/go/datamanager/apiv1/datamanagerpb;dat" + + "amanagerpb\252\002\031Google.Ads.DataManager.V1\312\002" + + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads" + + "::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto index 9940294a00e7..8bbda8751542 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import "google/ads/datamanager/v1/user_data.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "AudienceProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto index 26c483a00395..5ddd8d9ba6fe 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ import "google/ads/datamanager/v1/item_parameter.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "CartDataProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto index 9e7cad217b67..4fec4a414c52 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ConsentProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto index 41c41ea34aab..5cdb43a689e0 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "DestinationProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto index ed59798b737f..702c6022c03b 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "DeviceInfoProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto index 421aab420127..365e5cd12e05 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "EncryptionInfoProto"; option java_package = "com.google.ads.datamanager.v1"; @@ -62,7 +62,9 @@ message GcpWrappedKeyInfo { // Required. Google Cloud Platform [Cloud Key Management Service resource // ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the // format of - // "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + // or + // `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` string kek_uri = 3 [(google.api.field_behavior) = REQUIRED]; // Required. The base64 encoded encrypted data encryption key. @@ -85,11 +87,12 @@ message AwsWrappedKeyInfo { // Required. The Amazon Resource Name of the IAM Role to assume for KMS // decryption access. Should be in the format of - // "arn:{partition}:iam::{account_id}:role/{role_name}" + // `arn:{partition}:iam::{account_id}:role/{role_name}` string role_arn = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in - // the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}" + // the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or + // `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}` string kek_uri = 3 [(google.api.field_behavior) = REQUIRED]; // Required. The base64 encoded encrypted data encryption key. diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto index 28f9d22ee3ab..44c3ed5e79ee 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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,7 @@ syntax = "proto3"; package google.ads.datamanager.v1; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ErrorProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto index c24be7e56d0b..213af3f461c3 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "EventProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto index 48ca08b28981..da9eb1063984 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ExperimentalFieldProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto index dd6066117c3b..d388f7691b90 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "IngestionServiceProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto index 711ef464384d..59ae9e3e2337 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ItemParameterProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto index f6309d2e3864..1fdfc7ed9ef9 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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,7 @@ syntax = "proto3"; package google.ads.datamanager.v1; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "MatchRateProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto index 1a28815b7a56..c2d77837de5a 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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,7 @@ syntax = "proto3"; package google.ads.datamanager.v1; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ProcessingErrorsProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto index bac562d00988..739851242af8 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import "google/ads/datamanager/v1/match_rate.proto"; import "google/ads/datamanager/v1/processing_errors.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "RequestStatusPerDestinationProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto index 71a6b4ce8994..c4231dfa5aa1 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "TermsOfServiceProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto index 649f9f41d150..887c02b30e97 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "UserDataProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto index 0a28a561d20b..75c59e2b0309 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "UserPropertiesProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 3e34de47b11c..173cc3b406aa 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.80.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.80.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataplex/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.81.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-metastore/README.md b/java-dataproc-metastore/README.md index db7400318cfb..010d2375cdf5 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.74.0 + 26.75.0 pom import @@ -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.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.83.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc-metastore/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.84.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 7871fd83c558..825b7fe9a9d4 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.79.0 + 4.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.79.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/overview [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.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.80.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-datastream/README.md b/java-datastream/README.md index 63616dff1dec..eda8a22503c8 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.81.0' +implementation 'com.google.cloud:google-cloud-datastream:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastream/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.82.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 2daacd7146ee..5054fac29236 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.80.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.80.0' +implementation 'com.google.cloud:google-cloud-deploy:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-deploy/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.81.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 ea64b7d23aae..3d8886770200 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 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-developerconnect:0.39.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.40.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview [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.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.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-devicestreaming/README.md b/java-devicestreaming/README.md index 448480d6a16c..26e77d70caad 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 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-devicestreaming:0.22.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.23.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview [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-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/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-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index bc34c57aa901..c59d25423768 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.74.0 + 26.75.0 pom import @@ -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.93.0 + 0.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.93.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.94.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/overview [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.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.94.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/README.md b/java-dialogflow/README.md index 7367fb5f66e4..7fc024881782 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.74.0 + 26.75.0 pom import diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 8fd973e561a4..8c53ca88c1b5 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.78.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.78.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.79.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/overview [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.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.79.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 04285742b3ba..4c7e5ea0e350 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.79.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-distributedcloudedge/latest/overview [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.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.80.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 5cdce1f95e4f..c87ae192665e 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.86.0 + 3.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.86.0' +implementation 'com.google.cloud:google-cloud-dlp:3.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.87.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dlp/latest/overview [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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.87.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 99299b3dc18f..93a9f4746e49 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.81.0 + 2.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.81.0' +implementation 'com.google.cloud:google-cloud-dms:2.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dms/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.82.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 fa0d294cf09f..7ecc0c82536e 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.74.0 + 26.75.0 pom import @@ -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.86.0 + 2.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.86.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.87.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-document-ai/latest/overview [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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.87.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-domains/README.md b/java-domains/README.md index ebc3374dcf81..6e9226287934 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.79.0 + 1.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.79.0' +implementation 'com.google.cloud:google-cloud-domains:1.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-domains/latest/overview [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.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.80.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 6dc3c70096ad..116e453288b8 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.50.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.51.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-edgenetwork/latest/overview [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.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/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-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 343023861f68..7bcc0eb61a9c 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.78.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.78.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.79.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/overview [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.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.79.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 89e94d5107b0..34f51c41f96b 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.203.0-beta + 0.204.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.203.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.204.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.203.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.204.0-beta" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-errorreporting/latest/overview [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.203.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.204.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 9e9977dfb749..70c96741768f 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.82.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-essential-contacts/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.83.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 0ca0b5019c96..f23b8c2196f2 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.82.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc-publishing/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.83.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 cdb3a1547585..2eef2dc54093 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.82.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.83.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 7eeca9de65cc..e9c315e5fc1c 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.83.0 + 1.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.83.0' +implementation 'com.google.cloud:google-cloud-filestore:1.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-filestore/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.84.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-financialservices/README.md b/java-financialservices/README.md index 6ec103ad145f..826e27af2023 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 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-financialservices:0.23.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.24.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview [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-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/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-functions/README.md b/java-functions/README.md index 57af2917ce69..8b09e1a96b06 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.84.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.84.0' +implementation 'com.google.cloud:google-cloud-functions:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-functions/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.85.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-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index ee324144e2dd..9edc4028fa88 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 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-gdchardwaremanagement:0.37.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.38.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview [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.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.38.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-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index ae99c0428dfc..ef25252908f2 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 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-geminidataanalytics:0.10.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.11.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview [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-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.11.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 5d93df1f9836..2d48fb65e797 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.74.0 + 26.75.0 pom import @@ -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.81.0 + 0.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.81.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.82.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-backup/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.82.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 82e99dfd1de3..2b640f14f0b7 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.74.0 + 26.75.0 pom import @@ -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.83.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.83.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-connect-gateway/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.84.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 68f4bc422970..f3cde216ef51 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.74.0 + 26.75.0 pom import @@ -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.81.0 + 0.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.81.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.82.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-multi-cloud/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.82.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 fe1f320d6631..ba1f98691569 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.82.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkehub/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.83.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-gkerecommender/README.md b/java-gkerecommender/README.md index 4ca5a525a0da..d0be4551b6f5 100644 --- a/java-gkerecommender/README.md +++ b/java-gkerecommender/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkerecommender - 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-gkerecommender:0.2.0' +implementation 'com.google.cloud:google-cloud-gkerecommender:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.3.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview [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-gkerecommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/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-grafeas/README.md b/java-grafeas/README.md index c05b671a306a..022e8de06dc4 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: io.grafeas grafeas - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.83.0' +implementation 'io.grafeas:grafeas:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.83.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.84.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/grafeas/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.84.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 39c947485a2c..530bc73fc12c 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.82.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gsuite-addons/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.83.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-hypercomputecluster/README.md b/java-hypercomputecluster/README.md index 536d2cd23139..5898dadfaca1 100644 --- a/java-hypercomputecluster/README.md +++ b/java-hypercomputecluster/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-hypercomputecluster - 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-hypercomputecluster:0.2.0' +implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.3.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview [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-hypercomputecluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/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-iam-admin/README.md b/java-iam-admin/README.md index 048523c04fec..3fe365231498 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.77.0 + 3.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.77.0' +implementation 'com.google.cloud:google-iam-admin:3.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.77.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.78.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-iam-admin/latest/overview [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.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.78.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/README.md b/java-iam/README.md index 1502bdfc268c..2492d0ad00b7 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.80.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.80.0' +implementation 'com.google.cloud:google-iam-policy:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.80.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/history [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.81.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 a77c446b623f..2a1fe440e1a6 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.82.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iamcredentials/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.83.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 d71f54f87835..520adc56bb4c 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.38.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.38.0' +implementation 'com.google.cloud:google-cloud-iap:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.39.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iap/latest/overview [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.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/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-ids/README.md b/java-ids/README.md index edaebec0e3e0..da73078ec1e4 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.81.0' +implementation 'com.google.cloud:google-cloud-ids:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ids/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.82.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 3e576d0d12fe..bc40565fd180 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.74.0 + 26.75.0 pom import @@ -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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.59.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.60.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-infra-manager/latest/overview [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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.60.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 119e4183f884..9d86d1dd4f99 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.82.0' +implementation 'com.google.cloud:google-cloud-iot:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iot/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.83.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-java-shopping-merchant-issue-resolution/README.md b/java-java-shopping-merchant-issue-resolution/README.md index 5836cc10fd16..e36bb733fe63 100644 --- a/java-java-shopping-merchant-issue-resolution/README.md +++ b/java-java-shopping-merchant-issue-resolution/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-issue-resolution - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.11.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-java-shopping-merchant-order-tracking/README.md b/java-java-shopping-merchant-order-tracking/README.md index 05f24b566aa5..339c5af444d5 100644 --- a/java-java-shopping-merchant-order-tracking/README.md +++ b/java-java-shopping-merchant-order-tracking/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-order-tracking - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.11.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 6de7555721b0..2a0a1ecc2880 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.85.0 + 2.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.85.0' +implementation 'com.google.cloud:google-cloud-kms:2.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.86.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kms/latest/overview [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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.86.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/README.md b/java-kmsinventory/README.md index 25a4b6531166..a2607bf55b49 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.71.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.72.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/overview [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.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.72.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-language/README.md b/java-language/README.md index 44d1e92ab467..88d7f9838feb 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.83.0' +implementation 'com.google.cloud:google-cloud-language:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.84.0" ``` ## Authentication @@ -207,7 +207,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-language/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.84.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-licensemanager/README.md b/java-licensemanager/README.md index 965f5c9ba289..e29204981c2a 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-licensemanager - 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-licensemanager:0.15.0' +implementation 'com.google.cloud:google-cloud-licensemanager:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.16.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview [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-licensemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/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-life-sciences/README.md b/java-life-sciences/README.md index c176fe7a5bfc..3b561690715e 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.74.0 + 26.75.0 pom import @@ -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.84.0 + 0.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.84.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.85.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-life-sciences/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.85.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-locationfinder/README.md b/java-locationfinder/README.md index 91e959e76786..67288b1e84bb 100644 --- a/java-locationfinder/README.md +++ b/java-locationfinder/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-locationfinder - 0.7.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-locationfinder:0.7.0' +implementation 'com.google.cloud:google-cloud-locationfinder:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.8.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview [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-locationfinder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/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-lustre/README.md b/java-lustre/README.md index efc0997f3c59..fad8a3bb7293 100644 --- a/java-lustre/README.md +++ b/java-lustre/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-lustre - 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-lustre:0.22.0' +implementation 'com.google.cloud:google-cloud-lustre:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.23.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-lustre/latest/overview [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-lustre.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/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-maintenance/README.md b/java-maintenance/README.md index e39616272c9a..dd7dcaf3abb1 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-maintenance - 0.16.0 + 0.17.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-maintenance:0.16.0' +implementation 'com.google.cloud:google-cloud-maintenance:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.16.0" +libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.17.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/overview [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-maintenance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/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-managed-identities/README.md b/java-managed-identities/README.md index 209f632ac11e..d92504f32c74 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.74.0 + 26.75.0 pom import @@ -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.80.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.80.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managed-identities/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.81.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 1c3ab0744de5..a6fabffb07cd 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.38.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.38.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.39.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/latest/overview [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.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/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-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 4f4315f455f2..0edd9b52a738 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-addressvalidation - 0.76.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.76.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.76.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.77.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-addressvalidation/latest/overview [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.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.77.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-area-insights/README.md b/java-maps-area-insights/README.md index b261d09230a5..c8f68025d987 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-area-insights - 0.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.33.0' +implementation 'com.google.maps:google-maps-area-insights:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.33.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.34.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview [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-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/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-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index 6c2f92185473..79e0e83b2c4c 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine-delivery - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.29.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.29.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.30.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview [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-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/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-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index 4617bcde7410..0e83fd4e755c 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.29.0' +implementation 'com.google.maps:google-maps-fleetengine:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.29.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.30.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview [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-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/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-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 8ebbebad2cdb..d69984026348 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapsplatformdatasets - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.71.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.71.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.72.0" ``` ## Authentication @@ -159,7 +159,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapsplatformdatasets/latest/overview [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.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.72.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 6d905ca25117..9c4b7ce7277c 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-places - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.53.0' +implementation 'com.google.maps:google-maps-places:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.53.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.54.0" ``` ## Authentication @@ -162,7 +162,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-places/latest/overview [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.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.54.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 c7a637f37e5c..13d4fa0828c3 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routeoptimization - 0.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.40.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.40.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.41.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview [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.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/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-maps-routing/README.md b/java-maps-routing/README.md index f8e9ce2a9935..a92287f36d45 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routing - 1.67.0 + 1.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.67.0' +implementation 'com.google.maps:google-maps-routing:1.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.67.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.68.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routing/latest/overview [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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.68.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 afea793902fe..381adacebef6 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-solar - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.41.0' +implementation 'com.google.maps:google-maps-solar:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.41.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.42.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-solar/latest/overview [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.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/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-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index 861aa7f149e1..cf3c6b81ccd6 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.ads-marketingplatform admin - 0.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.31.0' +implementation 'com.google.ads-marketingplatform:admin:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.31.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.32.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.32.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 3a0f71e227ee..80c5ce3dddae 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.88.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.89.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-mediatranslation/latest/overview [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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.89.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 5a636c930473..fcfcdcf55812 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 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-meet:0.49.0' +implementation 'com.google.cloud:google-cloud-meet:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.50.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-meet/latest/overview [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.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.50.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 a4f9b2c96dc8..32430d04b079 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.82.0' +implementation 'com.google.cloud:google-cloud-memcache:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memcache/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.83.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 38ca4d9f14b3..5ca62cf7aacc 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.64.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.65.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-migrationcenter/latest/overview [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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.65.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-modelarmor/README.md b/java-modelarmor/README.md index fafa4bec6742..3d663f51e1e5 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-modelarmor - 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-modelarmor:0.23.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.24.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/overview [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-modelarmor.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/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-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index a15fe83ed31d..2faaea7601d6 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.74.0 + 26.75.0 pom import @@ -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.84.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.84.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-dashboard/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.85.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 d84d462a1756..edeeb9131ccf 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.74.0 + 26.75.0 pom import @@ -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.76.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.76.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.77.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-metricsscope/latest/overview [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.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.77.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 6f17a2c75493..13e125d5dca0 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.83.0 + 3.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.83.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.84.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-netapp/README.md b/java-netapp/README.md index 952d75e4e1d6..343ebdd43b8a 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.61.0' +implementation 'com.google.cloud:google-cloud-netapp:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.62.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-netapp/latest/overview [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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.62.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 bd38d0a1b0e2..19b54aa88a57 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.74.0 + 26.75.0 pom import @@ -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.83.0 + 1.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.83.0' +implementation 'com.google.cloud:google-cloud-network-management:1.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-management/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.84.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 a81de7bf1812..1846ecd6c437 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.74.0 + 26.75.0 pom import @@ -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.85.0 + 0.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.85.0' +implementation 'com.google.cloud:google-cloud-network-security:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.86.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-security/latest/overview [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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.86.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 5d36ba286d5c..e4cb617e6932 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.81.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.82.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 c0f5b91cf3b0..c30ac538966c 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.38.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.38.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.39.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/overview [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.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/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-notebooks/README.md b/java-notebooks/README.md index d38276ebb1eb..61d23f6e3a76 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.80.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.80.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-notebooks/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.81.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 baa34466c226..b42715e86436 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.80.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.80.0' +implementation 'com.google.cloud:google-cloud-optimization:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-optimization/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.81.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-oracledatabase/README.md b/java-oracledatabase/README.md index 6325ccdb6097..6ca667426dee 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-oracledatabase - 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-oracledatabase:0.31.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.32.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview [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-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.32.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 2e8ba0b31c11..ec52547eac43 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.82.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-orchestration-airflow/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.83.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/README.md b/java-orgpolicy/README.md index 965bfa78d0ec..9b57aa7a8aa3 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.82.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.83.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 853fc1da68cc..47cea8b10536 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.74.0 + 26.75.0 pom import @@ -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.84.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.84.0' +implementation 'com.google.cloud:google-cloud-os-config:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-config/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.85.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 b4a0c0a13e27..a002e801c80d 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.74.0 + 26.75.0 pom import @@ -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.81.0 + 2.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.81.0' +implementation 'com.google.cloud:google-cloud-os-login:2.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-login/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.82.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 cc2097b4434d..11ef4bfb7486 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 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-parallelstore:0.45.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.46.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/latest/overview [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.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/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-parametermanager/README.md b/java-parametermanager/README.md index 9ab91189d727..dbba31527a58 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parametermanager - 0.26.0 + 0.27.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.26.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.27.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.26.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.27.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/latest/overview [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-parametermanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/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-phishingprotection/README.md b/java-phishingprotection/README.md index 78af69238118..70160dc493e9 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.113.0 + 0.114.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.113.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.114.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.113.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.114.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-phishingprotection/latest/overview [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.113.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.114.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 d6060265c165..0098cdd6e3b1 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.74.0 + 26.75.0 pom import @@ -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.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.81.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.82.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 2d69bba25fc4..c7bd7396eb98 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.61.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.62.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policysimulator/latest/overview [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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.62.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 ae0c62800487..2f49b65af702 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.74.0 + 26.75.0 pom import @@ -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.84.0 + 0.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.84.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.85.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-private-catalog/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.85.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-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index 3823cf576fa1..68649c3e6efa 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-privilegedaccessmanager - 0.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.36.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.37.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview [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-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/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-profiler/README.md b/java-profiler/README.md index 837040f94ff9..617857807950 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.82.0' +implementation 'com.google.cloud:google-cloud-profiler:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-profiler/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.83.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 8650056306fc..739f73d311cf 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.79.0' +implementation 'com.google.cloud:google-cloud-publicca:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-publicca/latest/overview [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.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.80.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 15aa8e538e62..ff999b574a1b 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.65.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.66.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-rapidmigrationassessment/latest/overview [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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.66.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 8e741bcbf0d4..8d42b62d40c9 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.79.0 + 3.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.79.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recaptchaenterprise/latest/overview [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.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.80.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 f748e16940bb..6b4b1aa9adb4 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.74.0 + 26.75.0 pom import @@ -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.89.0 + 0.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.89.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.90.0" ``` ## Authentication @@ -182,7 +182,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommendations-ai/latest/overview [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.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.90.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 cc4cc2d0e757..82d25ebe1042 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.84.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.84.0' +implementation 'com.google.cloud:google-cloud-recommender:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommender/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.85.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 7052c8cdbed1..9005ce24763f 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.74.0 + 26.75.0 pom import @@ -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.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.54.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.55.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis-cluster/latest/overview [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.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/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-redis/README.md b/java-redis/README.md index 970e8ad0040e..1f3697bd4e29 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.85.0 + 2.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.85.0' +implementation 'com.google.cloud:google-cloud-redis:2.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.86.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis/latest/overview [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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.86.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 5ca80b4e101f..46c6eb5d00b1 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.84.0 + 1.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.84.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.85.0" ``` ## Authentication @@ -316,7 +316,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-resourcemanager/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.85.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 36f2688a0bd7..94a49d390cd1 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.84.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.84.0' +implementation 'com.google.cloud:google-cloud-retail:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-retail/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.85.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-run/README.md b/java-run/README.md index a1792d8f7ab3..39056fc19ab6 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.82.0' +implementation 'com.google.cloud:google-cloud-run:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-run/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.83.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-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index 9d6f18b9044c..96d57a4c72b6 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-saasservicemgmt - 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-saasservicemgmt:0.12.0' +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.13.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview [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-saasservicemgmt.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/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-scheduler/README.md b/java-scheduler/README.md index 3e29e8a23a36..2530fd2be3e8 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.82.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-scheduler/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.83.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 efdabd2681dc..749801460ac1 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.82.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-secretmanager/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.83.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 0d31e44fc443..49d728bd071a 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 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-securesourcemanager:0.52.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.53.0" ``` ## Authentication @@ -176,7 +176,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securesourcemanager/latest/overview [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.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.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-security-private-ca/README.md b/java-security-private-ca/README.md index 4c751ca9f2fe..4b040767e22a 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.74.0 + 26.75.0 pom import @@ -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.84.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.84.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.85.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 e14c6e76153e..9bb5d8503380 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.74.0 + 26.75.0 pom import @@ -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.85.0 + 0.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.85.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.86.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter-settings/latest/overview [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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.86.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 b57d9cfc4d3f..1bc14419366c 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.90.0 + 2.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.90.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.91.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter/latest/overview [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.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.91.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/README.md b/java-securitycentermanagement/README.md index a409e9886dd6..e2d54070c360 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.50.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.51.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycentermanagement/latest/overview [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.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/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-securityposture/README.md b/java-securityposture/README.md index 8c02bc9294db..365cb6dad605 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 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-securityposture:0.47.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.48.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securityposture/latest/overview [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.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/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-service-control/README.md b/java-service-control/README.md index c70bb8551aca..fa837bfff8da 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.82.0' +implementation 'com.google.cloud:google-cloud-service-control:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-control/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.83.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 850ede4bc9a8..d965aed2bc0d 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.74.0 + 26.75.0 pom import @@ -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.80.0 + 3.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.80.0' +implementation 'com.google.cloud:google-cloud-service-management:3.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-management/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.81.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 1669839300f5..ac78f98f21d8 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.82.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.83.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 1fde98cb6158..e5325c330614 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.83.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicedirectory/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.84.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 eb1c2ef8b022..351448d3a553 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 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-servicehealth:0.49.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.50.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicehealth/latest/overview [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.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.50.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 c7ce1e2357e7..f7421d58255a 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.81.0 + 2.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.81.0' +implementation 'com.google.cloud:google-cloud-shell:2.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-shell/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.82.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 950eac215fee..e51edbad2d06 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-css - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.50.0' +implementation 'com.google.shopping:google-shopping-css:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.50.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.51.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-css/latest/overview [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.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/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-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index f86157522f35..69b5f9f2bab0 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-accounts - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.11.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-conversions/README.md b/java-shopping-merchant-conversions/README.md index 4555b1b756ad..d819ec924623 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-conversions - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.11.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 d172b5b99ba1..f8861c6acaeb 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-datasources - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.11.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-inventories/README.md b/java-shopping-merchant-inventories/README.md index e05eb56d0f02..80edc6b0393a 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-inventories - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.11.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 018efc6eed9a..baee892c4505 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-lfp - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.11.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-notifications/README.md b/java-shopping-merchant-notifications/README.md index df8a1246f971..196f54892038 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-notifications - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-notifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.11.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-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index c361e79ea95c..b66081123250 100644 --- a/java-shopping-merchant-product-studio/README.md +++ b/java-shopping-merchant-product-studio/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-productstudio - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.22.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.23.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview [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-productstudio.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/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-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 9819aad259fb..178df6f1cd7a 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-products - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-products:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.11.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/README.md b/java-shopping-merchant-promotions/README.md index 3fac9e74b908..64fd6ad3f166 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-promotions - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.11.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-quota/README.md b/java-shopping-merchant-quota/README.md index 73ff9390661f..0c2cfa7f296f 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-quota - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.11.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 2463aab9a375..c2a723bc986a 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reports - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reports/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.11.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-reviews/README.md b/java-shopping-merchant-reviews/README.md index 9adafb24d0f5..938fa6d200d2 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reviews - 0.28.0 + 0.29.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.28.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.28.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.29.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview [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-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/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-spanneradapter/README.md b/java-spanneradapter/README.md index 65e9d677dc2d..4fd01979facc 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanneradapter - 0.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanneradapter:0.18.0' +implementation 'com.google.cloud:google-cloud-spanneradapter:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.19.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview [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-spanneradapter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.19.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 34592c800999..544b1282d13c 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.77.0 + 4.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.77.0' +implementation 'com.google.cloud:google-cloud-speech:4.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.78.0" ``` ## Authentication @@ -211,7 +211,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-speech/latest/overview [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.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.78.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 2cec62c04b43..909f18e8c8b9 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.82.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storage-transfer/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.83.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-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index 49567f77b695..3f127dc4e01d 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storagebatchoperations - 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-storagebatchoperations:0.22.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.23.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/overview [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-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/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-storageinsights/README.md b/java-storageinsights/README.md index 07e0d8115dc8..8ccc9a61a309 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.67.0 + 0.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.67.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.68.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/overview [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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.68.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 3bac3314df40..dd0f92aacf43 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.83.0' +implementation 'com.google.cloud:google-cloud-talent:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-talent/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.84.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 cb9275d9a8d4..c66a1d459004 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.82.0' +implementation 'com.google.cloud:google-cloud-tasks:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.83.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 87602eaf5e58..2900dd475eba 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 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-telcoautomation:0.52.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.53.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-telcoautomation/latest/overview [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.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.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-texttospeech/README.md b/java-texttospeech/README.md index 7349cb41fe26..d3bd34e334c7 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.83.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-texttospeech/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.84.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 55978c8a7765..8bac5862a36a 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.83.0' +implementation 'com.google.cloud:google-cloud-tpu:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tpu/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.84.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 8093d7ac6746..9a229c810977 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.82.0' +implementation 'com.google.cloud:google-cloud-trace:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-trace/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.83.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 9d7285b24da2..e69f54916af3 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.82.0' +implementation 'com.google.cloud:google-cloud-translate:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.83.0" ``` ## Authentication @@ -252,7 +252,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-translate/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.83.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-valkey/README.md b/java-valkey/README.md index d89d94ceae31..0cbc23bd7fdd 100644 --- a/java-valkey/README.md +++ b/java-valkey/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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-valkey - 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-valkey:0.28.0' +implementation 'com.google.cloud:google-cloud-valkey:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.29.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview [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-valkey.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/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-vectorsearch/README.md b/java-vectorsearch/README.md index 2c825441eaad..e1ef9565ab5d 100644 --- a/java-vectorsearch/README.md +++ b/java-vectorsearch/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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vectorsearch - 0.3.0 + 0.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vectorsearch:0.3.0' +implementation 'com.google.cloud:google-cloud-vectorsearch:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.4.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview [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-vectorsearch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/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-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java index 2207113430a9..c414a88aa802 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java @@ -134,7 +134,8 @@ * * *

      ListLocations - *

      Lists information about the supported locations for this service. + *

      Lists information about the supported locations for this service.This method can be called in two ways: + *

      * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

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

      *
        @@ -627,7 +628,13 @@ public final BatchSearchDataObjectsResponse batchSearchDataObjects( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

        * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

        Sample code: * @@ -661,7 +668,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

        * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

        Sample code: * @@ -696,7 +709,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

        * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

        Sample code: * diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java index c6b5abf64c64..63b4f1df47ec 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java @@ -195,7 +195,8 @@ * * *

        ListLocations - *

        Lists information about the supported locations for this service. + *

        Lists information about the supported locations for this service.This method can be called in two ways: + *

        * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

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

        *
          @@ -356,9 +357,9 @@ public DataObjectServiceStub getStub() { * Format: `projects/{project}/locations/{location}/collections/{collection}` * @param dataObject Required. The DataObject to create. * @param dataObjectId Required. The id of the dataObject to create. The id must be 1-63 - * characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" - * target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and - * match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. + * characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). + * Specifically, it must be 1-63 characters long and match the regular expression + * `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataObject createDataObject( @@ -397,9 +398,9 @@ public final DataObject createDataObject( * Format: `projects/{project}/locations/{location}/collections/{collection}` * @param dataObject Required. The DataObject to create. * @param dataObjectId Required. The id of the dataObject to create. The id must be 1-63 - * characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" - * target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and - * match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. + * characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). + * Specifically, it must be 1-63 characters long and match the regular expression + * `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataObject createDataObject( @@ -1124,7 +1125,13 @@ public final void batchDeleteDataObjects(BatchDeleteDataObjectsRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

          * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

          Sample code: * @@ -1157,7 +1164,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

          * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

          Sample code: * @@ -1191,7 +1204,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

          * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

          Sample code: * diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java index 6d370cf57696..7514ee5e0e3d 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java @@ -269,8 +269,24 @@ * * * + *

          ExportDataObjects + *

          Initiates a Long-Running Operation to export DataObjects from a Collection. + * + *

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

          + *
            + *
          • exportDataObjectsAsync(ExportDataObjectsRequest request) + *

          + *

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

          + *
            + *
          • exportDataObjectsOperationCallable() + *

          • exportDataObjectsCallable() + *

          + * + * + * *

          ListLocations - *

          Lists information about the supported locations for this service. + *

          Lists information about the supported locations for this service.This method can be called in two ways: + *

          * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

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

          *
            @@ -734,9 +750,9 @@ public final UnaryCallable getCollectionCallab * @param parent Required. Value for parent. * @param collection Required. The resource being created * @param collectionId Required. ID of the Collection to create. The id must be 1-63 characters - * long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" - * target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and - * match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. + * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, it + * must be 1-63 characters long and match the regular expression + * `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCollectionAsync( @@ -774,9 +790,9 @@ public final OperationFuture createCollectionAsyn * @param parent Required. Value for parent. * @param collection Required. The resource being created * @param collectionId Required. ID of the Collection to create. The id must be 1-63 characters - * long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" - * target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and - * match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. + * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, it + * must be 1-63 characters long and match the regular expression + * `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCollectionAsync( @@ -913,9 +929,10 @@ public final UnaryCallable createCollectionC * overwritten. *

            The following fields support update: `display_name`, `description`, `labels`, * `data_schema`, `vector_schema`. For `data_schema` and `vector_schema`, fields can only be - * added, not modified or deleted. Partial updates for `data_schema` and `vector_schema` are - * also supported by using sub-field paths in `update_mask`, e.g. `data_schema.properties.foo` - * or `vector_schema.my_vector_field`. + * added, not deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. Partial updates for `data_schema` and `vector_schema` are also supported by using + * sub-field paths in `update_mask`, e.g. `data_schema.properties.foo` or + * `vector_schema.my_vector_field`. *

            If `*` is provided in the update_mask, full replacement will be performed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1467,9 +1484,8 @@ public final UnaryCallable getIndexCallable() { * Format: `projects/{project}/locations/{location}/collections/{collection}` * @param index Required. The resource being created * @param indexId Required. ID of the Index to create. The id must be 1-63 characters long, and - * comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" - * target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and - * match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. + * comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, it must be 1-63 + * characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIndexAsync( @@ -1507,9 +1523,8 @@ public final OperationFuture createIndexAsync( * Format: `projects/{project}/locations/{location}/collections/{collection}` * @param index Required. The resource being created * @param indexId Required. ID of the Index to create. The id must be 1-63 characters long, and - * comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" - * target="_blank">RFC1035</a>. Specifically, it must be 1-63 characters long and - * match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. + * comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, it must be 1-63 + * characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIndexAsync( @@ -1855,7 +1870,101 @@ public final UnaryCallable importDataObject // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Initiates a Long-Running Operation to export DataObjects from a Collection. + * + *

            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 (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) {
            +   *   ExportDataObjectsRequest request =
            +   *       ExportDataObjectsRequest.newBuilder()
            +   *           .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
            +   *           .build();
            +   *   ExportDataObjectsResponse response =
            +   *       vectorSearchServiceClient.exportDataObjectsAsync(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 + exportDataObjectsAsync(ExportDataObjectsRequest request) { + return exportDataObjectsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a Long-Running Operation to export DataObjects from a Collection. + * + *

            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 (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) {
            +   *   ExportDataObjectsRequest request =
            +   *       ExportDataObjectsRequest.newBuilder()
            +   *           .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       vectorSearchServiceClient.exportDataObjectsOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   ExportDataObjectsResponse response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationCallable() { + return stub.exportDataObjectsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a Long-Running Operation to export DataObjects from a Collection. + * + *

            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 (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) {
            +   *   ExportDataObjectsRequest request =
            +   *       ExportDataObjectsRequest.newBuilder()
            +   *           .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       vectorSearchServiceClient.exportDataObjectsCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable exportDataObjectsCallable() { + return stub.exportDataObjectsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * @@ -1888,7 +1997,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * @@ -1922,7 +2037,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceSettings.java index 9e66ee9637ab..f073834e82eb 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceSettings.java @@ -219,6 +219,19 @@ public UnaryCallSettings importDataObjectsS .importDataObjectsOperationSettings(); } + /** Returns the object with the settings used for calls to exportDataObjects. */ + public UnaryCallSettings exportDataObjectsSettings() { + return ((VectorSearchServiceStubSettings) getStubSettings()).exportDataObjectsSettings(); + } + + /** Returns the object with the settings used for calls to exportDataObjects. */ + public OperationCallSettings< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationSettings() { + return ((VectorSearchServiceStubSettings) getStubSettings()) + .exportDataObjectsOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -437,6 +450,19 @@ public UnaryCallSettings.Builder deleteIndexSetti return getStubSettingsBuilder().importDataObjectsOperationSettings(); } + /** Returns the builder for the settings used for calls to exportDataObjects. */ + public UnaryCallSettings.Builder + exportDataObjectsSettings() { + return getStubSettingsBuilder().exportDataObjectsSettings(); + } + + /** Returns the builder for the settings used for calls to exportDataObjects. */ + public OperationCallSettings.Builder< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationSettings() { + return getStubSettingsBuilder().exportDataObjectsOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/gapic_metadata.json b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/gapic_metadata.json index 686c1467f860..56d9aa25ca7a 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/gapic_metadata.json +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/gapic_metadata.json @@ -85,6 +85,9 @@ "DeleteIndex": { "methods": ["deleteIndexAsync", "deleteIndexAsync", "deleteIndexAsync", "deleteIndexOperationCallable", "deleteIndexCallable"] }, + "ExportDataObjects": { + "methods": ["exportDataObjectsAsync", "exportDataObjectsOperationCallable", "exportDataObjectsCallable"] + }, "GetCollection": { "methods": ["getCollection", "getCollection", "getCollection", "getCollectionCallable"] }, diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectServiceStubSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectServiceStubSettings.java index 5e44b1301a4c..64eab8c3c4d7 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectServiceStubSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectServiceStubSettings.java @@ -391,9 +391,11 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "retry_policy_2_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( - "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "retry_policy_3_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( "retry_policy_0_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); @@ -408,20 +410,26 @@ public static class Builder extends StubSettings.Builder + exportDataObjectsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vectorsearch.v1beta.VectorSearchService/ExportDataObjects") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportDataObjectsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -228,6 +243,10 @@ public class GrpcVectorSearchServiceStub extends VectorSearchServiceStub { private final OperationCallable< ImportDataObjectsRequest, ImportDataObjectsResponse, ImportDataObjectsMetadata> importDataObjectsOperationCallable; + private final UnaryCallable exportDataObjectsCallable; + private final OperationCallable< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -378,6 +397,16 @@ protected GrpcVectorSearchServiceStub( return builder.build(); }) .build(); + GrpcCallSettings exportDataObjectsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportDataObjectsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -473,6 +502,17 @@ protected GrpcVectorSearchServiceStub( settings.importDataObjectsOperationSettings(), clientContext, operationsStub); + this.exportDataObjectsCallable = + callableFactory.createUnaryCallable( + exportDataObjectsTransportSettings, + settings.exportDataObjectsSettings(), + clientContext); + this.exportDataObjectsOperationCallable = + callableFactory.createOperationCallable( + exportDataObjectsTransportSettings, + settings.exportDataObjectsOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -589,6 +629,18 @@ public UnaryCallable importDataObjectsCalla return importDataObjectsOperationCallable; } + @Override + public UnaryCallable exportDataObjectsCallable() { + return exportDataObjectsCallable; + } + + @Override + public OperationCallable< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationCallable() { + return exportDataObjectsOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/HttpJsonVectorSearchServiceStub.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/HttpJsonVectorSearchServiceStub.java index b84e7222e4dd..b3d0c473c8e1 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/HttpJsonVectorSearchServiceStub.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/HttpJsonVectorSearchServiceStub.java @@ -46,6 +46,9 @@ import com.google.cloud.vectorsearch.v1beta.CreateIndexRequest; import com.google.cloud.vectorsearch.v1beta.DeleteCollectionRequest; import com.google.cloud.vectorsearch.v1beta.DeleteIndexRequest; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse; import com.google.cloud.vectorsearch.v1beta.GetCollectionRequest; import com.google.cloud.vectorsearch.v1beta.GetIndexRequest; import com.google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata; @@ -83,8 +86,10 @@ public class HttpJsonVectorSearchServiceStub extends VectorSearchServiceStub { TypeRegistry.newBuilder() .add(Collection.getDescriptor()) .add(Empty.getDescriptor()) + .add(ExportDataObjectsMetadata.getDescriptor()) .add(ImportDataObjectsMetadata.getDescriptor()) .add(Index.getDescriptor()) + .add(ExportDataObjectsResponse.getDescriptor()) .add(ImportDataObjectsResponse.getDescriptor()) .add(OperationMetadata.getDescriptor()) .build(); @@ -482,6 +487,47 @@ public class HttpJsonVectorSearchServiceStub extends VectorSearchServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + exportDataObjectsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vectorsearch.v1beta.VectorSearchService/ExportDataObjects") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/collections/*}:exportDataObjects", + 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( + (ExportDataObjectsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -578,6 +624,10 @@ public class HttpJsonVectorSearchServiceStub extends VectorSearchServiceStub { private final OperationCallable< ImportDataObjectsRequest, ImportDataObjectsResponse, ImportDataObjectsMetadata> importDataObjectsOperationCallable; + private final UnaryCallable exportDataObjectsCallable; + private final OperationCallable< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -766,6 +816,17 @@ protected HttpJsonVectorSearchServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings exportDataObjectsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportDataObjectsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -864,6 +925,17 @@ protected HttpJsonVectorSearchServiceStub( settings.importDataObjectsOperationSettings(), clientContext, httpJsonOperationsStub); + this.exportDataObjectsCallable = + callableFactory.createUnaryCallable( + exportDataObjectsTransportSettings, + settings.exportDataObjectsSettings(), + clientContext); + this.exportDataObjectsOperationCallable = + callableFactory.createOperationCallable( + exportDataObjectsTransportSettings, + settings.exportDataObjectsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -891,6 +963,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(createIndexMethodDescriptor); methodDescriptors.add(deleteIndexMethodDescriptor); methodDescriptors.add(importDataObjectsMethodDescriptor); + methodDescriptors.add(exportDataObjectsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -998,6 +1071,18 @@ public UnaryCallable importDataObjectsCalla return importDataObjectsOperationCallable; } + @Override + public UnaryCallable exportDataObjectsCallable() { + return exportDataObjectsCallable; + } + + @Override + public OperationCallable< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationCallable() { + return exportDataObjectsOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStub.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStub.java index 0ee2be5edc00..ec3c52b50ffc 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStub.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStub.java @@ -33,6 +33,9 @@ import com.google.cloud.vectorsearch.v1beta.CreateIndexRequest; import com.google.cloud.vectorsearch.v1beta.DeleteCollectionRequest; import com.google.cloud.vectorsearch.v1beta.DeleteIndexRequest; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse; import com.google.cloud.vectorsearch.v1beta.GetCollectionRequest; import com.google.cloud.vectorsearch.v1beta.GetIndexRequest; import com.google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata; @@ -149,6 +152,17 @@ public UnaryCallable importDataObjectsCalla throw new UnsupportedOperationException("Not implemented: importDataObjectsCallable()"); } + public OperationCallable< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportDataObjectsOperationCallable()"); + } + + public UnaryCallable exportDataObjectsCallable() { + throw new UnsupportedOperationException("Not implemented: exportDataObjectsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStubSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStubSettings.java index b90d28affec5..75f7a4f742b0 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStubSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStubSettings.java @@ -59,6 +59,9 @@ import com.google.cloud.vectorsearch.v1beta.CreateIndexRequest; import com.google.cloud.vectorsearch.v1beta.DeleteCollectionRequest; import com.google.cloud.vectorsearch.v1beta.DeleteIndexRequest; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse; import com.google.cloud.vectorsearch.v1beta.GetCollectionRequest; import com.google.cloud.vectorsearch.v1beta.GetIndexRequest; import com.google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata; @@ -192,6 +195,10 @@ public class VectorSearchServiceStubSettings extends StubSettings importDataObjectsOperationSettings; + private final UnaryCallSettings exportDataObjectsSettings; + private final OperationCallSettings< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -443,6 +450,18 @@ public UnaryCallSettings importDataObjectsS return importDataObjectsOperationSettings; } + /** Returns the object with the settings used for calls to exportDataObjects. */ + public UnaryCallSettings exportDataObjectsSettings() { + return exportDataObjectsSettings; + } + + /** Returns the object with the settings used for calls to exportDataObjects. */ + public OperationCallSettings< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationSettings() { + return exportDataObjectsOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -582,6 +601,9 @@ protected VectorSearchServiceStubSettings(Builder settingsBuilder) throws IOExce importDataObjectsSettings = settingsBuilder.importDataObjectsSettings().build(); importDataObjectsOperationSettings = settingsBuilder.importDataObjectsOperationSettings().build(); + exportDataObjectsSettings = settingsBuilder.exportDataObjectsSettings().build(); + exportDataObjectsOperationSettings = + settingsBuilder.exportDataObjectsOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -623,6 +645,11 @@ public static class Builder private final OperationCallSettings.Builder< ImportDataObjectsRequest, ImportDataObjectsResponse, ImportDataObjectsMetadata> importDataObjectsOperationSettings; + private final UnaryCallSettings.Builder + exportDataObjectsSettings; + private final OperationCallSettings.Builder< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -637,7 +664,8 @@ public static class Builder "retry_policy_0_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( - "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "retry_policy_2_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -660,12 +688,15 @@ public static class Builder definitions.put("retry_policy_0_params", settings); settings = RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) .setTotalTimeoutDuration(Duration.ofMillis(60000L)) .build(); - definitions.put("no_retry_2_params", settings); + definitions.put("retry_policy_2_params", settings); settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); @@ -694,6 +725,8 @@ protected Builder(ClientContext clientContext) { deleteIndexOperationSettings = OperationCallSettings.newBuilder(); importDataObjectsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); importDataObjectsOperationSettings = OperationCallSettings.newBuilder(); + exportDataObjectsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportDataObjectsOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -709,6 +742,7 @@ protected Builder(ClientContext clientContext) { createIndexSettings, deleteIndexSettings, importDataObjectsSettings, + exportDataObjectsSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -733,6 +767,8 @@ protected Builder(VectorSearchServiceStubSettings settings) { deleteIndexOperationSettings = settings.deleteIndexOperationSettings.toBuilder(); importDataObjectsSettings = settings.importDataObjectsSettings.toBuilder(); importDataObjectsOperationSettings = settings.importDataObjectsOperationSettings.toBuilder(); + exportDataObjectsSettings = settings.exportDataObjectsSettings.toBuilder(); + exportDataObjectsOperationSettings = settings.exportDataObjectsOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -748,6 +784,7 @@ protected Builder(VectorSearchServiceStubSettings settings) { createIndexSettings, deleteIndexSettings, importDataObjectsSettings, + exportDataObjectsSettings, listLocationsSettings, getLocationSettings); } @@ -789,18 +826,18 @@ private static Builder initDefaults(Builder builder) { builder .createCollectionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .updateCollectionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .deleteCollectionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .listIndexesSettings() @@ -814,18 +851,23 @@ private static Builder initDefaults(Builder builder) { builder .createIndexSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .deleteIndexSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .importDataObjectsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .exportDataObjectsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder .listLocationsSettings() @@ -842,8 +884,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Collection.class)) @@ -866,8 +908,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Collection.class)) @@ -890,8 +932,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -913,8 +955,8 @@ private static Builder initDefaults(Builder builder) { .createIndexOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Index.class)) @@ -936,8 +978,8 @@ private static Builder initDefaults(Builder builder) { .deleteIndexOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -960,8 +1002,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -981,6 +1023,32 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .exportDataObjectsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ExportDataObjectsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ExportDataObjectsMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1094,6 +1162,19 @@ public UnaryCallSettings.Builder deleteIndexSetti return importDataObjectsOperationSettings; } + /** Returns the builder for the settings used for calls to exportDataObjects. */ + public UnaryCallSettings.Builder + exportDataObjectsSettings() { + return exportDataObjectsSettings; + } + + /** Returns the builder for the settings used for calls to exportDataObjects. */ + public OperationCallSettings.Builder< + ExportDataObjectsRequest, ExportDataObjectsResponse, ExportDataObjectsMetadata> + exportDataObjectsOperationSettings() { + return exportDataObjectsOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1beta/reflect-config.json b/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1beta/reflect-config.json index 7645907d7352..09d320f160c6 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1beta/reflect-config.json +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1beta/reflect-config.json @@ -917,6 +917,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest$GcsExportDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest$GcsExportDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest$GcsExportDestination$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vectorsearch.v1beta.GetCollectionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/MockVectorSearchServiceImpl.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/MockVectorSearchServiceImpl.java index 251e6e70d8e4..c46210bfaf73 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/MockVectorSearchServiceImpl.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/MockVectorSearchServiceImpl.java @@ -265,4 +265,25 @@ public void importDataObjects( Exception.class.getName()))); } } + + @Override + public void exportDataObjects( + ExportDataObjectsRequest 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 ExportDataObjects, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientHttpJsonTest.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientHttpJsonTest.java index 72e91316e778..bdbe4a178dae 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientHttpJsonTest.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientHttpJsonTest.java @@ -1067,6 +1067,58 @@ public void importDataObjectsExceptionTest() throws Exception { } } + @Test + public void exportDataObjectsTest() throws Exception { + ExportDataObjectsResponse expectedResponse = ExportDataObjectsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportDataObjectsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExportDataObjectsRequest request = + ExportDataObjectsRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + + ExportDataObjectsResponse actualResponse = client.exportDataObjectsAsync(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 exportDataObjectsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExportDataObjectsRequest request = + ExportDataObjectsRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + client.exportDataObjectsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientTest.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientTest.java index 0d5f661dfce7..daf41f2ca4b8 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientTest.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientTest.java @@ -980,6 +980,56 @@ public void importDataObjectsExceptionTest() throws Exception { } } + @Test + public void exportDataObjectsTest() throws Exception { + ExportDataObjectsResponse expectedResponse = ExportDataObjectsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportDataObjectsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVectorSearchService.addResponse(resultOperation); + + ExportDataObjectsRequest request = + ExportDataObjectsRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + + ExportDataObjectsResponse actualResponse = client.exportDataObjectsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVectorSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportDataObjectsRequest actualRequest = ((ExportDataObjectsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getGcsDestination(), actualRequest.getGcsDestination()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportDataObjectsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVectorSearchService.addException(exception); + + try { + ExportDataObjectsRequest request = + ExportDataObjectsRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + client.exportDataObjectsAsync(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 listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceGrpc.java b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceGrpc.java index cd40383312a5..15805e512312 100644 --- a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceGrpc.java +++ b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceGrpc.java @@ -499,6 +499,53 @@ private VectorSearchServiceGrpc() {} return getImportDataObjectsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest, + com.google.longrunning.Operation> + getExportDataObjectsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportDataObjects", + requestType = com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest, + com.google.longrunning.Operation> + getExportDataObjectsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest, + com.google.longrunning.Operation> + getExportDataObjectsMethod; + if ((getExportDataObjectsMethod = VectorSearchServiceGrpc.getExportDataObjectsMethod) == null) { + synchronized (VectorSearchServiceGrpc.class) { + if ((getExportDataObjectsMethod = VectorSearchServiceGrpc.getExportDataObjectsMethod) + == null) { + VectorSearchServiceGrpc.getExportDataObjectsMethod = + getExportDataObjectsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportDataObjects")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VectorSearchServiceMethodDescriptorSupplier("ExportDataObjects")) + .build(); + } + } + } + return getExportDataObjectsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static VectorSearchServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -707,6 +754,20 @@ default void importDataObjects( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getImportDataObjectsMethod(), responseObserver); } + + /** + * + * + *

            +     * Initiates a Long-Running Operation to export DataObjects from a Collection.
            +     * 
            + */ + default void exportDataObjects( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportDataObjectsMethod(), responseObserver); + } } /** @@ -912,6 +973,22 @@ public void importDataObjects( request, responseObserver); } + + /** + * + * + *
            +     * Initiates a Long-Running Operation to export DataObjects from a Collection.
            +     * 
            + */ + public void exportDataObjects( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportDataObjectsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1077,6 +1154,20 @@ public com.google.longrunning.Operation importDataObjects( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataObjectsMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Initiates a Long-Running Operation to export DataObjects from a Collection.
            +     * 
            + */ + public com.google.longrunning.Operation exportDataObjects( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExportDataObjectsMethod(), getCallOptions(), request); + } } /** @@ -1232,6 +1323,19 @@ public com.google.longrunning.Operation importDataObjects( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportDataObjectsMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Initiates a Long-Running Operation to export DataObjects from a Collection.
            +     * 
            + */ + public com.google.longrunning.Operation exportDataObjects( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataObjectsMethod(), getCallOptions(), request); + } } /** @@ -1391,6 +1495,19 @@ protected VectorSearchServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportDataObjectsMethod(), getCallOptions()), request); } + + /** + * + * + *
            +     * Initiates a Long-Running Operation to export DataObjects from a Collection.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + exportDataObjects(com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportDataObjectsMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_COLLECTIONS = 0; @@ -1403,6 +1520,7 @@ protected VectorSearchServiceFutureStub build( private static final int METHODID_CREATE_INDEX = 7; private static final int METHODID_DELETE_INDEX = 8; private static final int METHODID_IMPORT_DATA_OBJECTS = 9; + private static final int METHODID_EXPORT_DATA_OBJECTS = 10; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1477,6 +1595,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXPORT_DATA_OBJECTS: + serviceImpl.exportDataObjects( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1558,6 +1681,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest, com.google.longrunning.Operation>(service, METHODID_IMPORT_DATA_OBJECTS))) + .addMethod( + getExportDataObjectsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest, + com.google.longrunning.Operation>(service, METHODID_EXPORT_DATA_OBJECTS))) .build(); } @@ -1619,6 +1748,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateIndexMethod()) .addMethod(getDeleteIndexMethod()) .addMethod(getImportDataObjectsMethod()) + .addMethod(getExportDataObjectsMethod()) .build(); } } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/Collection.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/Collection.java index e77630e0956f..638a914c85dd 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/Collection.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/Collection.java @@ -472,7 +472,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * * @deprecated google.cloud.vectorsearch.v1beta.Collection.schema is deprecated. See - * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=190 + * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=203 * @return Whether the schema field is set. */ @java.lang.Override @@ -493,7 +493,7 @@ public boolean hasSchema() { * * * @deprecated google.cloud.vectorsearch.v1beta.Collection.schema is deprecated. See - * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=190 + * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=203 * @return The schema. */ @java.lang.Override @@ -2267,7 +2267,7 @@ public Builder putAllLabels(java.util.Map va * * * @deprecated google.cloud.vectorsearch.v1beta.Collection.schema is deprecated. See - * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=190 + * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=203 * @return Whether the schema field is set. */ @java.lang.Deprecated @@ -2287,7 +2287,7 @@ public boolean hasSchema() { * * * @deprecated google.cloud.vectorsearch.v1beta.Collection.schema is deprecated. See - * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=190 + * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=203 * @return The schema. */ @java.lang.Deprecated diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CollectionOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CollectionOrBuilder.java index 52f564df3f66..7d4b58be5a82 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CollectionOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CollectionOrBuilder.java @@ -259,7 +259,7 @@ java.lang.String getLabelsOrDefault( * * * @deprecated google.cloud.vectorsearch.v1beta.Collection.schema is deprecated. See - * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=190 + * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=203 * @return Whether the schema field is set. */ @java.lang.Deprecated @@ -277,7 +277,7 @@ java.lang.String getLabelsOrDefault( * * * @deprecated google.cloud.vectorsearch.v1beta.Collection.schema is deprecated. See - * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=190 + * google/cloud/vectorsearch/v1beta/vectorsearch_service.proto;l=203 * @return The schema. */ @java.lang.Deprecated diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateCollectionRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateCollectionRequest.java index b7443bb89f29..7ad6821e43f2 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateCollectionRequest.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateCollectionRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
                * Required. ID of the Collection to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            @@ -169,7 +169,7 @@ public java.lang.String getCollectionId() { *
                * Required. ID of the Collection to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            @@ -866,7 +866,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
                  * Required. ID of the Collection to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -893,7 +893,7 @@ public java.lang.String getCollectionId() { *
                  * Required. ID of the Collection to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -920,7 +920,7 @@ public com.google.protobuf.ByteString getCollectionIdBytes() { *
                  * Required. ID of the Collection to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -946,7 +946,7 @@ public Builder setCollectionId(java.lang.String value) { *
                  * Required. ID of the Collection to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -968,7 +968,7 @@ public Builder clearCollectionId() { *
                  * Required. ID of the Collection to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateCollectionRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateCollectionRequestOrBuilder.java index 0a766c46a0c8..1f892294c78c 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateCollectionRequestOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateCollectionRequestOrBuilder.java @@ -62,7 +62,7 @@ public interface CreateCollectionRequestOrBuilder *
                * Required. ID of the Collection to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            @@ -79,7 +79,7 @@ public interface CreateCollectionRequestOrBuilder *
                * Required. ID of the Collection to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateDataObjectRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateDataObjectRequest.java index eb944830a8fb..9045395a20aa 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateDataObjectRequest.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateDataObjectRequest.java @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
                * Required. The id of the dataObject to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            @@ -171,7 +171,7 @@ public java.lang.String getDataObjectId() { *
                * Required. The id of the dataObject to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            @@ -769,7 +769,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
                  * Required. The id of the dataObject to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -796,7 +796,7 @@ public java.lang.String getDataObjectId() { *
                  * Required. The id of the dataObject to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -823,7 +823,7 @@ public com.google.protobuf.ByteString getDataObjectIdBytes() { *
                  * Required. The id of the dataObject to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -849,7 +849,7 @@ public Builder setDataObjectId(java.lang.String value) { *
                  * Required. The id of the dataObject to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -871,7 +871,7 @@ public Builder clearDataObjectId() { *
                  * Required. The id of the dataObject to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateDataObjectRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateDataObjectRequestOrBuilder.java index c4aa366edca7..ab9241914614 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateDataObjectRequestOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateDataObjectRequestOrBuilder.java @@ -64,7 +64,7 @@ public interface CreateDataObjectRequestOrBuilder *
                * Required. The id of the dataObject to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            @@ -81,7 +81,7 @@ public interface CreateDataObjectRequestOrBuilder *
                * Required. The id of the dataObject to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateIndexRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateIndexRequest.java index b1abcc784ae7..a6f7df6cbe38 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateIndexRequest.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateIndexRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
                * Required. ID of the Index to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            @@ -173,7 +173,7 @@ public java.lang.String getIndexId() { *
                * Required. ID of the Index to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            @@ -876,7 +876,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
                  * Required. ID of the Index to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -903,7 +903,7 @@ public java.lang.String getIndexId() { *
                  * Required. ID of the Index to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -930,7 +930,7 @@ public com.google.protobuf.ByteString getIndexIdBytes() { *
                  * Required. ID of the Index to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -956,7 +956,7 @@ public Builder setIndexId(java.lang.String value) { *
                  * Required. ID of the Index to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            @@ -978,7 +978,7 @@ public Builder clearIndexId() { *
                  * Required. ID of the Index to create.
                  * The id must be 1-63 characters long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * Specifically, it must be 1-63 characters long and match the regular
                  * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                  * 
            diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateIndexRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateIndexRequestOrBuilder.java index 10c0532e444f..f0defb48a3b7 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateIndexRequestOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CreateIndexRequestOrBuilder.java @@ -66,7 +66,7 @@ public interface CreateIndexRequestOrBuilder *
                * Required. ID of the Index to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            @@ -83,7 +83,7 @@ public interface CreateIndexRequestOrBuilder *
                * Required. ID of the Index to create.
                * The id must be 1-63 characters long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * Specifically, it must be 1-63 characters long and match the regular
                * expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.
                * 
            diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObject.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObject.java index d72449d6fd61..01fdb09a7a01 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObject.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObject.java @@ -93,16 +93,15 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
            -   * Immutable. The fully qualified resource name of the dataObject.
            +   * Identifier. The fully qualified resource name of the dataObject.
                *
                * Format:
                * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}`
                * The data_object_id must be 1-63 characters
            -   * long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -123,16 +122,15 @@ public java.lang.String getName() { * * *
            -   * Immutable. The fully qualified resource name of the dataObject.
            +   * Identifier. The fully qualified resource name of the dataObject.
                *
                * Format:
                * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}`
                * The data_object_id must be 1-63 characters
            -   * long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -166,7 +164,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.vectorsearch.v1beta.DataObject.data_object_id is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=45 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=46 * @return The dataObjectId. */ @java.lang.Override @@ -195,7 +193,7 @@ public java.lang.String getDataObjectId() { * * * @deprecated google.cloud.vectorsearch.v1beta.DataObject.data_object_id is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=45 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=46 * @return The bytes for dataObjectId. */ @java.lang.Override @@ -1001,16 +999,15 @@ public Builder mergeFrom( * * *
            -     * Immutable. The fully qualified resource name of the dataObject.
            +     * Identifier. The fully qualified resource name of the dataObject.
                  *
                  * Format:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}`
                  * The data_object_id must be 1-63 characters
            -     * long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1030,16 +1027,15 @@ public java.lang.String getName() { * * *
            -     * Immutable. The fully qualified resource name of the dataObject.
            +     * Identifier. The fully qualified resource name of the dataObject.
                  *
                  * Format:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}`
                  * The data_object_id must be 1-63 characters
            -     * long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1059,16 +1055,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Immutable. The fully qualified resource name of the dataObject.
            +     * Identifier. The fully qualified resource name of the dataObject.
                  *
                  * Format:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}`
                  * The data_object_id must be 1-63 characters
            -     * long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1087,16 +1082,15 @@ public Builder setName(java.lang.String value) { * * *
            -     * Immutable. The fully qualified resource name of the dataObject.
            +     * Identifier. The fully qualified resource name of the dataObject.
                  *
                  * Format:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}`
                  * The data_object_id must be 1-63 characters
            -     * long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1111,16 +1105,15 @@ public Builder clearName() { * * *
            -     * Immutable. The fully qualified resource name of the dataObject.
            +     * Identifier. The fully qualified resource name of the dataObject.
                  *
                  * Format:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}`
                  * The data_object_id must be 1-63 characters
            -     * long, and comply with
            -     * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +     * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1150,7 +1143,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.vectorsearch.v1beta.DataObject.data_object_id is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=45 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=46 * @return The dataObjectId. */ @java.lang.Deprecated @@ -1178,7 +1171,7 @@ public java.lang.String getDataObjectId() { * * * @deprecated google.cloud.vectorsearch.v1beta.DataObject.data_object_id is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=45 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=46 * @return The bytes for dataObjectId. */ @java.lang.Deprecated @@ -1206,7 +1199,7 @@ public com.google.protobuf.ByteString getDataObjectIdBytes() { * * * @deprecated google.cloud.vectorsearch.v1beta.DataObject.data_object_id is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=45 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=46 * @param value The dataObjectId to set. * @return This builder for chaining. */ @@ -1233,7 +1226,7 @@ public Builder setDataObjectId(java.lang.String value) { * * * @deprecated google.cloud.vectorsearch.v1beta.DataObject.data_object_id is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=45 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=46 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1256,7 +1249,7 @@ public Builder clearDataObjectId() { * * * @deprecated google.cloud.vectorsearch.v1beta.DataObject.data_object_id is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=45 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=46 * @param value The bytes for dataObjectId to set. * @return This builder for chaining. */ diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectOrBuilder.java index 106a63db85d9..9fe42a47d85a 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectOrBuilder.java @@ -30,16 +30,15 @@ public interface DataObjectOrBuilder * * *
            -   * Immutable. The fully qualified resource name of the dataObject.
            +   * Identifier. The fully qualified resource name of the dataObject.
                *
                * Format:
                * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}`
                * The data_object_id must be 1-63 characters
            -   * long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -49,16 +48,15 @@ public interface DataObjectOrBuilder * * *
            -   * Immutable. The fully qualified resource name of the dataObject.
            +   * Identifier. The fully qualified resource name of the dataObject.
                *
                * Format:
                * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}`
                * The data_object_id must be 1-63 characters
            -   * long, and comply with
            -   * <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
            +   * long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -76,7 +74,7 @@ public interface DataObjectOrBuilder * * * @deprecated google.cloud.vectorsearch.v1beta.DataObject.data_object_id is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=45 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=46 * @return The dataObjectId. */ @java.lang.Deprecated @@ -94,7 +92,7 @@ public interface DataObjectOrBuilder * * * @deprecated google.cloud.vectorsearch.v1beta.DataObject.data_object_id is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=45 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=46 * @return The bytes for dataObjectId. */ @java.lang.Deprecated diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectProto.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectProto.java index 5657caab40ef..cead7335fc4d 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectProto.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectProto.java @@ -73,9 +73,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2google/cloud/vectorsearch/v1beta/data_object.proto\022 google.cloud.vectorsearch." + "v1beta\032\037google/api/field_behavior.proto\032" + "\031google/api/resource.proto\032\034google/proto" - + "buf/struct.proto\032\037google/protobuf/timestamp.proto\"\213\004\n\n" + + "buf/struct.proto\032\037google/protobuf/timestamp.proto\"\244\004\n\n" + "DataObject\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\005\022\035\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\035\n" + "\016data_object_id\030\002 \001(\tB\005\030\001\340A\003\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022*\n" @@ -85,9 +85,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014VectorsEntry\022\013\n" + "\003key\030\001 \001(\t\0227\n" + "\005value\030\002 \001(\0132(.google" - + ".cloud.vectorsearch.v1beta.Vector:\0028\001:\207\001\352A\203\001\n" + + ".cloud.vectorsearch.v1beta.Vector:\0028\001:\240\001\352A\234\001\n" + "&vectorsearch.googleapis.com/DataObject\022Yprojects/{project}/locations/{loca" - + "tion}/collections/{collection}/dataObjects/{dataObject}\"\255\001\n" + + "tion}/collections/{collection}/dataObjects/{dataObject}*\013dataObjects2\n" + + "dataObject\"\255\001\n" + "\006Vector\022>\n" + "\005dense\030\002 \001(\0132-.google.cloud.vectorsearch.v1beta.DenseVectorH\000\022@\n" + "\006sparse\030\003" @@ -99,8 +100,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014SparseVector\022\023\n" + "\006values\030\001 \003(\002B\003\340A\002\022\024\n" + "\007indices\030\002 \003(\005B\003\340A\002B\203\001\n" - + "$com.google.cloud.vectorsearch.v1betaB\017DataObjectProtoP\001ZHcloud.google" - + ".com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpbb\006proto3" + + "$com.google.cloud.vectorsearch.v1betaB\017DataOb" + + "jectProtoP\001ZHcloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsea" + + "rchpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceProto.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceProto.java index 4db4db3c64be..1be58a9f92ac 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceProto.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceProto.java @@ -148,11 +148,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014OutputFields\022\030\n" + "\013data_fields\030\001 \003(\tB\003\340A\001\022\032\n\r" + "vector_fields\030\002 \003(\tB\003\340A\001\022\034\n" - + "\017metadata_fields\030\003 \003(\tB\003\340A\001\"\232\001\n\n" - + "SearchHint\022K\n" - + "\tuse_index\030\001" - + " \001(\01326.google.cloud.vectorsearch.v1beta.SearchHint.IndexHintH\000\022\021\n" - + "\007use_knn\030\002 \001(\010H\000\032\036\n" + + "\017metadata_fields\030\003 \003(\tB\003\340A\001\"\244\001\n\n" + + "SearchHint\022P\n" + + "\tuse_index\030\001 \001(\01326.google.cloud.vectorse" + + "arch.v1beta.SearchHint.IndexHintB\003\340A\001H\000\022\026\n" + + "\007use_knn\030\002 \001(\010B\003\340A\001H\000\032\036\n" + "\tIndexHint\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002B\014\n\n" + "index_type\"\362\001\n" @@ -161,8 +161,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.vectorsearch.v1beta.VectorSearchH\000\022K\n" + "\017semantic_search\030\002" + " \001(\01320.google.cloud.vectorsearch.v1beta.SemanticSearchH\000\022C\n" - + "\013text_search\030\003 \001(" - + "\0132,.google.cloud.vectorsearch.v1beta.TextSearchH\000B\r\n" + + "\013text_search\030\003" + + " \001(\0132,.google.cloud.vectorsearch.v1beta.TextSearchH\000B\r\n" + "\013search_type\"\367\003\n" + "\014VectorSearch\022?\n" + "\006vector\030\001" @@ -171,54 +171,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.vectorsearch.v1beta.SparseVectorH\000\022\031\n" + "\014search_field\030\010 \001(\tB\003\340A\002\022,\n" + "\006filter\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\001\022\027\n" - + "\005top_k\030\005 \001(\005B\003\340A\001H\001\210\001\001\022J\n" - + "\r" - + "output_fields\030\007" - + " \001(\0132..google.cloud.vectorsearch.v1beta.OutputFieldsB\003\340A\001\022F\n" + + "\005top_k\030\005 \001(\005B\003\340A\001H\001\210\001\001\022J\n\r" + + "output_fields\030\007 \001(\0132..google." + + "cloud.vectorsearch.v1beta.OutputFieldsB\003\340A\001\022F\n" + "\013search_hint\030\t" + " \001(\0132,.google.cloud.vectorsearch.v1beta.SearchHintB\003\340A\001\022N\n" + "\017distance_metric\030\013" + " \001(\01620.google.cloud.vectorsearch.v1beta.DistanceMetricB\003\340A\001B\r\n" + "\013vector_typeB\010\n" - + "\006_top_k\"\257\002\n" + + "\006_top_k\"\367\002\n" + "\016SemanticSearch\022\030\n" + "\013search_text\030\001 \001(\tB\003\340A\002\022\031\n" + "\014search_field\030\002 \001(\tB\003\340A\002\022K\n" - + "\ttask_type\030\005 \001(\01623.google.cloud.vec" - + "torsearch.v1beta.EmbeddingTaskTypeB\003\340A\001\022J\n\r" - + "output_fields\030\003" - + " \001(\0132..google.cloud.vectorsearch.v1beta.OutputFieldsB\003\340A\001\022,\n" + + "\ttask_type\030\005 \001(\01623.google" + + ".cloud.vectorsearch.v1beta.EmbeddingTaskTypeB\003\340A\001\022J\n\r" + + "output_fields\030\003 \001(\0132..googl" + + "e.cloud.vectorsearch.v1beta.OutputFieldsB\003\340A\001\022,\n" + "\006filter\030\006 \001(\0132\027.google.protobuf.StructB\003\340A\001\022\027\n" - + "\005top_k\030\004 \001(\005B\003\340A\001H\000\210\001\001B\010\n" - + "\006_top_k\"\264\001\n" - + "\n" + + "\005top_k\030\004 \001(\005B\003\340A\001H\000\210\001\001\022F\n" + + "\013search_hint\030\007" + + " \001(\0132,.google.cloud.vectorsearch.v1beta.SearchHintB\003\340A\001B\010\n" + + "\006_top_k\"\342\001\n\n" + "TextSearch\022\030\n" + "\013search_text\030\001 \001(\tB\003\340A\002\022\035\n" + "\020data_field_names\030\002 \003(\tB\003\340A\002\022J\n\r" + "output_fields\030\003" + " \001(\0132..google.cloud.vectorsearch.v1beta.OutputFieldsB\003\340A\001\022\027\n" - + "\005top_k\030\004 \001(\005B\003\340A\001H\000\210\001\001B\010\n" + + "\005top_k\030\004 \001(\005B\003\340A\001H\000\210\001\001\022,\n" + + "\006filter\030\005 \001(\0132\027.google.protobuf.StructB\003\340A\001B\010\n" + "\006_top_k\"\372\002\n" + "\030SearchDataObjectsRequest\022G\n\r" - + "vector_search\030\002 \001(\0132..google" - + ".cloud.vectorsearch.v1beta.VectorSearchH\000\022K\n" - + "\017semantic_search\030\004 \001(\01320.google.clou" - + "d.vectorsearch.v1beta.SemanticSearchH\000\022H\n" - + "\013text_search\030\007" - + " \001(\0132,.google.cloud.vectorsearch.v1beta.TextSearchB\003\340A\001H\000\022>\n" + + "vector_search\030\002 \001(\0132" + + "..google.cloud.vectorsearch.v1beta.VectorSearchH\000\022K\n" + + "\017semantic_search\030\004 \001(\01320.goo" + + "gle.cloud.vectorsearch.v1beta.SemanticSearchH\000\022H\n" + + "\013text_search\030\007 \001(\0132,.google.clo" + + "ud.vectorsearch.v1beta.TextSearchB\003\340A\001H\000\022>\n" + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\022\026\n" + "\tpage_size\030\005 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\006 \001(\tB\003\340A\001B\r\n" + "\013search_type\"\177\n" + "\014SearchResult\022F\n" - + "\013data_object\030\001 \001(\0132,." - + "google.cloud.vectorsearch.v1beta.DataObjectB\003\340A\003\022\032\n" + + "\013data_object\030\001" + + " \001(\0132,.google.cloud.vectorsearch.v1beta.DataObjectB\003\340A\003\022\032\n" + "\010distance\030\002 \001(\001B\003\340A\003H\000\210\001\001B\013\n" + "\t_distance\"\271\001\n" + "\026SearchResponseMetadata\022X\n\n" - + "used_index\030\001 \001(\0132B.google.cloud.vectorse" - + "arch.v1beta.SearchResponseMetadata.IndexInfoH\000\022\027\n" + + "used_index\030\001 \001(\0132B.google.cloud." + + "vectorsearch.v1beta.SearchResponseMetadata.IndexInfoH\000\022\027\n" + "\010used_knn\030\002 \001(\010B\003\340A\003H\000\032\036\n" + "\tIndexInfo\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003B\014\n\n" @@ -227,14 +228,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007results\030\001" + " \003(\0132..google.cloud.vectorsearch.v1beta.SearchResultB\003\340A\003\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\003\022_\n" - + "\030search_response_metadata\030\003 \001(" - + "\01328.google.cloud.vectorsearch.v1beta.SearchResponseMetadataB\003\340A\003\"\330\001\n" + + "\030search_response_metadata\030\003" + + " \001(\01328.google.cloud.vectorsearch.v1beta.SearchResponseMetadataB\003\340A\003\"\330\001\n" + "\033AggregateDataObjectsRequest\022>\n" + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\022,\n" + "\006filter\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022K\n" - + "\taggregate\030\003 \001(\01623.google.cloud" - + ".vectorsearch.v1beta.AggregationMethodB\003\340A\002\"R\n" + + "\taggregate\030\003 \001(\01623.goog" + + "le.cloud.vectorsearch.v1beta.AggregationMethodB\003\340A\002\"R\n" + "\034AggregateDataObjectsResponse\0222\n" + "\021aggregate_results\030\001 \003(\0132\027.google.protobuf.Struct\"\204\002\n" + "\027QueryDataObjectsRequest\022>\n" @@ -246,27 +247,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\005 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\006 \001(\tB\003\340A\001\"w\n" + "\030QueryDataObjectsResponse\022B\n" - + "\014data_objects\030\004 \003(\013" - + "2,.google.cloud.vectorsearch.v1beta.DataObject\022\027\n" + + "\014data_objects\030\004" + + " \003(\0132,.google.cloud.vectorsearch.v1beta.DataObject\022\027\n" + "\017next_page_token\030\003 \001(\t\"\306\003\n" + "\035BatchSearchDataObjectsRequest\022>\n" + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\022?\n" - + "\010searches\030\002" - + " \003(\0132(.google.cloud.vectorsearch.v1beta.SearchB\003\340A\002\022k\n" - + "\007combine\030\003 \001(\0132U.google.cloud.vectorsearch." - + "v1beta.BatchSearchDataObjectsRequest.CombineResultsOptionsB\003\340A\001\032\266\001\n" + + "\010searches\030\002 \003(\0132(.go" + + "ogle.cloud.vectorsearch.v1beta.SearchB\003\340A\002\022k\n" + + "\007combine\030\003 \001(\0132U.google.cloud.vecto" + + "rsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptionsB\003\340A\001\032\266\001\n" + "\025CombineResultsOptions\022=\n" - + "\006ranker\030\001" - + " \001(\0132(.google.cloud.vectorsearch.v1beta.RankerB\003\340A\002\022J\n\r" + + "\006ranker\030\001 \001(\0132(.goog" + + "le.cloud.vectorsearch.v1beta.RankerB\003\340A\002\022J\n\r" + "output_fields\030\002" + " \001(\0132..google.cloud.vectorsearch.v1beta.OutputFieldsB\003\340A\001\022\022\n" + "\005top_k\030\003 \001(\005B\003\340A\001\"\233\001\n" + "\006Ranker\022E\n" - + "\003rrf\030\001 \001(\01326.googl" - + "e.cloud.vectorsearch.v1beta.ReciprocalRankFusionH\000\022@\n" - + "\006vertex\030\002" - + " \001(\0132..google.cloud.vectorsearch.v1beta.VertexRankerH\000B\010\n" + + "\003rrf\030\001 \001(\013" + + "26.google.cloud.vectorsearch.v1beta.ReciprocalRankFusionH\000\022@\n" + + "\006vertex\030\002 \001(\0132..goo" + + "gle.cloud.vectorsearch.v1beta.VertexRankerH\000B\010\n" + "\006ranker\",\n" + "\024ReciprocalRankFusion\022\024\n" + "\007weights\030\001 \003(\001B\003\340A\002\"r\n" @@ -276,32 +277,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020content_template\030\003 \001(\tB\003\340A\001\022\022\n" + "\005model\030\004 \001(\tB\003\340A\002\"s\n" + "\036BatchSearchDataObjectsResponse\022Q\n" - + "\007results\030\001 \003(\0132;.google.cloud.vecto" - + "rsearch.v1beta.SearchDataObjectsResponseB\003\340A\003*B\n" + + "\007results\030\001 \003(\0132;.google.clo" + + "ud.vectorsearch.v1beta.SearchDataObjectsResponseB\003\340A\003*B\n" + "\021AggregationMethod\022\"\n" + "\036AGGREGATION_METHOD_UNSPECIFIED\020\000\022\t\n" + "\005COUNT\020\0012\226\010\n" + "\027DataObjectSearchService\022\341\001\n" - + "\021SearchDataObjects\022:.google.cloud.vectorsearch.v1beta.S" - + "earchDataObjectsRequest\032;.google.cloud.vectorsearch.v1beta.SearchDataObjectsResp" - + "onse\"S\202\323\344\223\002M\"H/v1beta/{parent=projects/*" - + "/locations/*/collections/*}/dataObjects:search:\001*\022\335\001\n" - + "\020QueryDataObjects\0229.google.cloud.vectorsearch.v1beta.QueryDataObjec" - + "tsRequest\032:.google.cloud.vectorsearch.v1" - + "beta.QueryDataObjectsResponse\"R\202\323\344\223\002L\"G/" - + "v1beta/{parent=projects/*/locations/*/collections/*}/dataObjects:query:\001*\022\355\001\n" - + "\024AggregateDataObjects\022=.google.cloud.vector" - + "search.v1beta.AggregateDataObjectsRequest\032>.google.cloud.vectorsearch.v1beta.Agg" - + "regateDataObjectsResponse\"V\202\323\344\223\002P\"K/v1be" - + "ta/{parent=projects/*/locations/*/collections/*}/dataObjects:aggregate:\001*\022\365\001\n" - + "\026BatchSearchDataObjects\022?.google.cloud.vect" - + "orsearch.v1beta.BatchSearchDataObjectsRequest\032@.google.cloud.vectorsearch.v1beta" - + ".BatchSearchDataObjectsResponse\"X\202\323\344\223\002R\"" - + "M/v1beta/{parent=projects/*/locations/*/collections/*}/dataObjects:batchSearch:\001" - + "*\032O\312A\033vectorsearch.googleapis.com\322A.http" - + "s://www.googleapis.com/auth/cloud-platformB\220\001\n" - + "$com.google.cloud.vectorsearch.v1betaB\034DataObjectSearchServiceProtoP\001ZHclo" - + "ud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpbb\006proto3" + + "\021SearchDataObjects\022:.google.cloud.vectorsearch." + + "v1beta.SearchDataObjectsRequest\032;.google.cloud.vectorsearch.v1beta.SearchDataObj" + + "ectsResponse\"S\202\323\344\223\002M\"H/v1beta/{parent=pr" + + "ojects/*/locations/*/collections/*}/dataObjects:search:\001*\022\335\001\n" + + "\020QueryDataObjects\0229.google.cloud.vectorsearch.v1beta.QueryD" + + "ataObjectsRequest\032:.google.cloud.vectors" + + "earch.v1beta.QueryDataObjectsResponse\"R\202" + + "\323\344\223\002L\"G/v1beta/{parent=projects/*/locati" + + "ons/*/collections/*}/dataObjects:query:\001*\022\355\001\n" + + "\024AggregateDataObjects\022=.google.cloud.vectorsearch.v1beta.AggregateDataObjec" + + "tsRequest\032>.google.cloud.vectorsearch.v1" + + "beta.AggregateDataObjectsResponse\"V\202\323\344\223\002" + + "P\"K/v1beta/{parent=projects/*/locations/" + + "*/collections/*}/dataObjects:aggregate:\001*\022\365\001\n" + + "\026BatchSearchDataObjects\022?.google.cloud.vectorsearch.v1beta.BatchSearchDataO" + + "bjectsRequest\032@.google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsResponse\"" + + "X\202\323\344\223\002R\"M/v1beta/{parent=projects/*/loca" + + "tions/*/collections/*}/dataObjects:batch" + + "Search:\001*\032O\312A\033vectorsearch.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/cloud-platformB\220\001\n" + + "$com.google.cloud.vectorsearch.v1betaB\034DataObjectSearchServiceProt" + + "oP\001ZHcloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpbb\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -370,7 +374,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1beta_SemanticSearch_descriptor, new java.lang.String[] { - "SearchText", "SearchField", "TaskType", "OutputFields", "Filter", "TopK", + "SearchText", + "SearchField", + "TaskType", + "OutputFields", + "Filter", + "TopK", + "SearchHint", }); internal_static_google_cloud_vectorsearch_v1beta_TextSearch_descriptor = getDescriptor().getMessageType(5); @@ -378,7 +388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1beta_TextSearch_descriptor, new java.lang.String[] { - "SearchText", "DataFieldNames", "OutputFields", "TopK", + "SearchText", "DataFieldNames", "OutputFields", "TopK", "Filter", }); internal_static_google_cloud_vectorsearch_v1beta_SearchDataObjectsRequest_descriptor = getDescriptor().getMessageType(6); diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsMetadata.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsMetadata.java new file mode 100644 index 000000000000..1a3abfb00109 --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsMetadata.java @@ -0,0 +1,978 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1beta; + +/** + * + * + *
            + * Metadata for the ExportDataObjects LRO.
            + * 
            + * + * Protobuf type {@code google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} + */ +@com.google.protobuf.Generated +public final class ExportDataObjectsMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) + ExportDataObjectsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportDataObjectsMetadata"); + } + + // Use ExportDataObjectsMetadata.newBuilder() to construct. + private ExportDataObjectsMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportDataObjectsMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * The time the operation was created.
            +   * 
            + * + * .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_; + } + + /** + * + * + *
            +   * The time the operation was created.
            +   * 
            + * + * .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 FINISH_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp finishTime_; + + /** + * + * + *
            +   * The time the operation finished.
            +   * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + * + * @return Whether the finishTime field is set. + */ + @java.lang.Override + public boolean hasFinishTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * The time the operation finished.
            +   * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + * + * @return The finishTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFinishTime() { + return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_; + } + + /** + * + * + *
            +   * The time the operation finished.
            +   * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { + return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_; + } + + 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, getFinishTime()); + } + 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, getFinishTime()); + } + 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.vectorsearch.v1beta.ExportDataObjectsMetadata)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata other = + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasFinishTime() != other.hasFinishTime()) return false; + if (hasFinishTime()) { + if (!getFinishTime().equals(other.getFinishTime())) 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 (hasFinishTime()) { + hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFinishTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata 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.vectorsearch.v1beta.ExportDataObjectsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata 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.vectorsearch.v1beta.ExportDataObjectsMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.vectorsearch.v1beta.ExportDataObjectsMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata for the ExportDataObjects LRO.
            +   * 
            + * + * Protobuf type {@code google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.Builder.class); + } + + // Construct using com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetFinishTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + finishTime_ = null; + if (finishTimeBuilder_ != null) { + finishTimeBuilder_.dispose(); + finishTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata build() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata buildPartial() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata result = + new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata 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.finishTime_ = finishTimeBuilder_ == null ? finishTime_ : finishTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) { + return mergeFrom((com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata other) { + if (other + == com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasFinishTime()) { + mergeFinishTime(other.getFinishTime()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetFinishTimeFieldBuilder().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.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * The time the operation was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * The time the operation was created.
            +     * 
            + * + * .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(); + } + } + + /** + * + * + *
            +     * The time the operation was created.
            +     * 
            + * + * .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; + } + + /** + * + * + *
            +     * The time the operation was created.
            +     * 
            + * + * .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; + } + + /** + * + * + *
            +     * The time the operation was created.
            +     * 
            + * + * .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; + } + + /** + * + * + *
            +     * The time the operation was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The time the operation was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The time the operation was created.
            +     * 
            + * + * .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_; + } + } + + /** + * + * + *
            +     * The time the operation was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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 finishTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + finishTimeBuilder_; + + /** + * + * + *
            +     * The time the operation finished.
            +     * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + * + * @return Whether the finishTime field is set. + */ + public boolean hasFinishTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * The time the operation finished.
            +     * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + * + * @return The finishTime. + */ + public com.google.protobuf.Timestamp getFinishTime() { + if (finishTimeBuilder_ == null) { + return finishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : finishTime_; + } else { + return finishTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * The time the operation finished.
            +     * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + */ + public Builder setFinishTime(com.google.protobuf.Timestamp value) { + if (finishTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + finishTime_ = value; + } else { + finishTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The time the operation finished.
            +     * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + */ + public Builder setFinishTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (finishTimeBuilder_ == null) { + finishTime_ = builderForValue.build(); + } else { + finishTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The time the operation finished.
            +     * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + */ + public Builder mergeFinishTime(com.google.protobuf.Timestamp value) { + if (finishTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && finishTime_ != null + && finishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFinishTimeBuilder().mergeFrom(value); + } else { + finishTime_ = value; + } + } else { + finishTimeBuilder_.mergeFrom(value); + } + if (finishTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The time the operation finished.
            +     * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + */ + public Builder clearFinishTime() { + bitField0_ = (bitField0_ & ~0x00000002); + finishTime_ = null; + if (finishTimeBuilder_ != null) { + finishTimeBuilder_.dispose(); + finishTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The time the operation finished.
            +     * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getFinishTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFinishTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The time the operation finished.
            +     * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { + if (finishTimeBuilder_ != null) { + return finishTimeBuilder_.getMessageOrBuilder(); + } else { + return finishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : finishTime_; + } + } + + /** + * + * + *
            +     * The time the operation finished.
            +     * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetFinishTimeFieldBuilder() { + if (finishTimeBuilder_ == null) { + finishTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getFinishTime(), getParentForChildren(), isClean()); + finishTime_ = null; + } + return finishTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) + private static final com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata(); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataObjectsMetadata 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.vectorsearch.v1beta.ExportDataObjectsMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsMetadataOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsMetadataOrBuilder.java new file mode 100644 index 000000000000..fe809527a84c --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsMetadataOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1beta; + +@com.google.protobuf.Generated +public interface ExportDataObjectsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * The time the operation finished.
            +   * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + * + * @return Whether the finishTime field is set. + */ + boolean hasFinishTime(); + + /** + * + * + *
            +   * The time the operation finished.
            +   * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + * + * @return The finishTime. + */ + com.google.protobuf.Timestamp getFinishTime(); + + /** + * + * + *
            +   * The time the operation finished.
            +   * 
            + * + * .google.protobuf.Timestamp finish_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder(); +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequest.java new file mode 100644 index 000000000000..29d78866eb63 --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequest.java @@ -0,0 +1,2111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1beta; + +/** + * + * + *
            + * Request message for
            + * [VectorSearchService.ExportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ExportDataObjects].
            + * 
            + * + * Protobuf type {@code google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} + */ +@com.google.protobuf.Generated +public final class ExportDataObjectsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) + ExportDataObjectsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportDataObjectsRequest"); + } + + // Use ExportDataObjectsRequest.newBuilder() to construct. + private ExportDataObjectsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportDataObjectsRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.Builder.class); + } + + public interface GcsExportDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. URI prefix of the Cloud Storage where to export Data Objects.
            +     * The bucket is required to be in the same region as the collection.
            +     * 
            + * + * string export_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The exportUri. + */ + java.lang.String getExportUri(); + + /** + * + * + *
            +     * Required. URI prefix of the Cloud Storage where to export Data Objects.
            +     * The bucket is required to be in the same region as the collection.
            +     * 
            + * + * string export_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for exportUri. + */ + com.google.protobuf.ByteString getExportUriBytes(); + + /** + * + * + *
            +     * Required. The format of the exported Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for format. + */ + int getFormatValue(); + + /** + * + * + *
            +     * Required. The format of the exported Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The format. + */ + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format + getFormat(); + } + + /** + * + * + *
            +   * Google Cloud Storage configuration for the export.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} + */ + public static final class GcsExportDestination extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + GcsExportDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GcsExportDestination"); + } + + // Use GcsExportDestination.newBuilder() to construct. + private GcsExportDestination(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GcsExportDestination() { + exportUri_ = ""; + format_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Builder.class); + } + + /** + * + * + *
            +     * Options for the format of the exported Data Objects.
            +     * New formats may be added in the future.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format} + */ + public enum Format implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified format.
            +       * 
            + * + * FORMAT_UNSPECIFIED = 0; + */ + FORMAT_UNSPECIFIED(0), + /** + * + * + *
            +       * The exported Data Objects will be in JSON format.
            +       * 
            + * + * JSON = 1; + */ + JSON(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Format"); + } + + /** + * + * + *
            +       * Unspecified format.
            +       * 
            + * + * FORMAT_UNSPECIFIED = 0; + */ + public static final int FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * The exported Data Objects will be in JSON format.
            +       * 
            + * + * JSON = 1; + */ + public static final int JSON_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 Format 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 Format forNumber(int value) { + switch (value) { + case 0: + return FORMAT_UNSPECIFIED; + case 1: + return JSON; + 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 Format findValueByNumber(int number) { + return Format.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Format[] VALUES = values(); + + public static Format 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 Format(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format) + } + + public static final int EXPORT_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object exportUri_ = ""; + + /** + * + * + *
            +     * Required. URI prefix of the Cloud Storage where to export Data Objects.
            +     * The bucket is required to be in the same region as the collection.
            +     * 
            + * + * string export_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The exportUri. + */ + @java.lang.Override + public java.lang.String getExportUri() { + java.lang.Object ref = exportUri_; + 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(); + exportUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * Required. URI prefix of the Cloud Storage where to export Data Objects.
            +     * The bucket is required to be in the same region as the collection.
            +     * 
            + * + * string export_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for exportUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExportUriBytes() { + java.lang.Object ref = exportUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exportUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORMAT_FIELD_NUMBER = 2; + private int format_ = 0; + + /** + * + * + *
            +     * Required. The format of the exported Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for format. + */ + @java.lang.Override + public int getFormatValue() { + return format_; + } + + /** + * + * + *
            +     * Required. The format of the exported Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The format. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format + getFormat() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format + result = + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Format.forNumber(format_); + return result == null + ? com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Format.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.GeneratedMessage.isStringEmpty(exportUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, exportUri_); + } + if (format_ + != com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Format.FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, format_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(exportUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, exportUri_); + } + if (format_ + != com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Format.FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, format_); + } + 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.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination other = + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) obj; + + if (!getExportUri().equals(other.getExportUri())) return false; + if (format_ != other.format_) 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) + EXPORT_URI_FIELD_NUMBER; + hash = (53 * hash) + getExportUri().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + format_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + 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.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + 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.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Google Cloud Storage configuration for the export.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Builder.class); + } + + // Construct using + // com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + exportUri_ = ""; + format_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + build() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + buildPartial() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination result = + new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.exportUri_ = exportUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.format_ = format_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) { + return mergeFrom( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + other) { + if (other + == com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .getDefaultInstance()) return this; + if (!other.getExportUri().isEmpty()) { + exportUri_ = other.exportUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.format_ != 0) { + setFormatValue(other.getFormatValue()); + } + 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: + { + exportUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + format_ = 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 exportUri_ = ""; + + /** + * + * + *
            +       * Required. URI prefix of the Cloud Storage where to export Data Objects.
            +       * The bucket is required to be in the same region as the collection.
            +       * 
            + * + * string export_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The exportUri. + */ + public java.lang.String getExportUri() { + java.lang.Object ref = exportUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exportUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Required. URI prefix of the Cloud Storage where to export Data Objects.
            +       * The bucket is required to be in the same region as the collection.
            +       * 
            + * + * string export_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for exportUri. + */ + public com.google.protobuf.ByteString getExportUriBytes() { + java.lang.Object ref = exportUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exportUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Required. URI prefix of the Cloud Storage where to export Data Objects.
            +       * The bucket is required to be in the same region as the collection.
            +       * 
            + * + * string export_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The exportUri to set. + * @return This builder for chaining. + */ + public Builder setExportUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exportUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. URI prefix of the Cloud Storage where to export Data Objects.
            +       * The bucket is required to be in the same region as the collection.
            +       * 
            + * + * string export_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearExportUri() { + exportUri_ = getDefaultInstance().getExportUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. URI prefix of the Cloud Storage where to export Data Objects.
            +       * The bucket is required to be in the same region as the collection.
            +       * 
            + * + * string export_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for exportUri to set. + * @return This builder for chaining. + */ + public Builder setExportUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exportUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int format_ = 0; + + /** + * + * + *
            +       * Required. The format of the exported Data Objects.
            +       * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for format. + */ + @java.lang.Override + public int getFormatValue() { + return format_; + } + + /** + * + * + *
            +       * Required. The format of the exported Data Objects.
            +       * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for format to set. + * @return This builder for chaining. + */ + public Builder setFormatValue(int value) { + format_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The format of the exported Data Objects.
            +       * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The format. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Format + getFormat() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format + result = + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Format.forNumber(format_); + return result == null + ? com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Format.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Required. The format of the exported Data Objects.
            +       * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The format to set. + * @return This builder for chaining. + */ + public Builder setFormat( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + format_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The format of the exported Data Objects.
            +       * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + format_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + private static final com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination(); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsExportDestination 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.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_DESTINATION(2), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(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 DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 2: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int GCS_DESTINATION_FIELD_NUMBER = 2; + + /** + * + * + *
            +   * The Cloud Storage location where user wants to export Data Objects.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
            +   * The Cloud Storage location where user wants to export Data Objects.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + getGcsDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + destination_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .getDefaultInstance(); + } + + /** + * + * + *
            +   * The Cloud Storage location where user wants to export Data Objects.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestinationOrBuilder + getGcsDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + destination_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The resource name of the Collection from which we want to export
            +   * Data Objects. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}`.
            +   * 
            + * + * + * 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 resource name of the Collection from which we want to export
            +   * Data Objects. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}`.
            +   * 
            + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (destinationCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + destination_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (destinationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + destination_); + } + 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.vectorsearch.v1beta.ExportDataObjectsRequest)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest other = + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 2: + if (!getGcsDestination().equals(other.getGcsDestination())) 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 (destinationCase_) { + case 2: + hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest 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.vectorsearch.v1beta.ExportDataObjectsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest 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.vectorsearch.v1beta.ExportDataObjectsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.vectorsearch.v1beta.ExportDataObjectsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [VectorSearchService.ExportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ExportDataObjects].
            +   * 
            + * + * Protobuf type {@code google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.Builder.class); + } + + // Construct using com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } + name_ = ""; + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest build() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest buildPartial() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest result = + new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) { + return mergeFrom((com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest other) { + if (other + == com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getDestinationCase()) { + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 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 destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestinationOrBuilder> + gcsDestinationBuilder_; + + /** + * + * + *
            +     * The Cloud Storage location where user wants to export Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
            +     * The Cloud Storage location where user wants to export Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + getGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestination) + destination_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return gcsDestinationBuilder_.getMessage(); + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The Cloud Storage location where user wants to export Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + */ + public Builder setGcsDestination( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination value) { + if (gcsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The Cloud Storage location where user wants to export Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + */ + public Builder setGcsDestination( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Builder + builderForValue) { + if (gcsDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The Cloud Storage location where user wants to export Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + */ + public Builder mergeGcsDestination( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination value) { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .newBuilder( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestination) + destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The Cloud Storage location where user wants to export Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + */ + public Builder clearGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + gcsDestinationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The Cloud Storage location where user wants to export Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + */ + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Builder + getGcsDestinationBuilder() { + return internalGetGcsDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The Cloud Storage location where user wants to export Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestinationOrBuilder + getGcsDestinationOrBuilder() { + if ((destinationCase_ == 2) && (gcsDestinationBuilder_ != null)) { + return gcsDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestination) + destination_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The Cloud Storage location where user wants to export Data Objects.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestinationOrBuilder> + internalGetGcsDestinationFieldBuilder() { + if (gcsDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .getDefaultInstance(); + } + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + .Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + .GcsExportDestinationOrBuilder>( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + return gcsDestinationBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The resource name of the Collection from which we want to export
            +     * Data Objects. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}`.
            +     * 
            + * + * + * 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 resource name of the Collection from which we want to export
            +     * Data Objects. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}`.
            +     * 
            + * + * + * 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 resource name of the Collection from which we want to export
            +     * Data Objects. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}`.
            +     * 
            + * + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The resource name of the Collection from which we want to export
            +     * Data Objects. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}`.
            +     * 
            + * + * + * 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_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The resource name of the Collection from which we want to export
            +     * Data Objects. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}`.
            +     * 
            + * + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) + private static final com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest(); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataObjectsRequest 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.vectorsearch.v1beta.ExportDataObjectsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequestOrBuilder.java new file mode 100644 index 000000000000..32ef0f98a062 --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1beta; + +@com.google.protobuf.Generated +public interface ExportDataObjectsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The Cloud Storage location where user wants to export Data Objects.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + * + * @return Whether the gcsDestination field is set. + */ + boolean hasGcsDestination(); + + /** + * + * + *
            +   * The Cloud Storage location where user wants to export Data Objects.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + * + * @return The gcsDestination. + */ + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + getGcsDestination(); + + /** + * + * + *
            +   * The Cloud Storage location where user wants to export Data Objects.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination gcs_destination = 2; + * + */ + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestinationOrBuilder + getGcsDestinationOrBuilder(); + + /** + * + * + *
            +   * Required. The resource name of the Collection from which we want to export
            +   * Data Objects. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The resource name of the Collection from which we want to export
            +   * Data Objects. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.DestinationCase + getDestinationCase(); +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsResponse.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsResponse.java new file mode 100644 index 000000000000..50ce4c46c4e8 --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsResponse.java @@ -0,0 +1,402 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1beta; + +/** + * + * + *
            + * Response for the ExportDataObjects LRO.
            + * 
            + * + * Protobuf type {@code google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} + */ +@com.google.protobuf.Generated +public final class ExportDataObjectsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) + ExportDataObjectsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportDataObjectsResponse"); + } + + // Use ExportDataObjectsResponse.newBuilder() to construct. + private ExportDataObjectsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportDataObjectsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.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.vectorsearch.v1beta.ExportDataObjectsResponse)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse other = + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) 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.vectorsearch.v1beta.ExportDataObjectsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse 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.vectorsearch.v1beta.ExportDataObjectsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse 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.vectorsearch.v1beta.ExportDataObjectsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.vectorsearch.v1beta.ExportDataObjectsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response for the ExportDataObjects LRO.
            +   * 
            + * + * Protobuf type {@code google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.Builder.class); + } + + // Construct using com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse build() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse buildPartial() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse result = + new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) { + return mergeFrom((com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse other) { + if (other + == com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) + private static final com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse(); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataObjectsResponse 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.vectorsearch.v1beta.ExportDataObjectsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsResponseOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsResponseOrBuilder.java new file mode 100644 index 000000000000..6d449e53082d --- /dev/null +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.vectorsearch.v1beta; + +@com.google.protobuf.Generated +public interface ExportDataObjectsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsMetadata.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsMetadata.java index d1df3b779d39..2d26aee2cb3b 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsMetadata.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsMetadata.java @@ -24,7 +24,8 @@ * * *
            - * Metadata for [DataObjectService.ImportDataObjects][].
            + * Metadata for
            + * [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects].
              * 
            * * Protobuf type {@code google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} @@ -407,7 +408,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -   * Metadata for [DataObjectService.ImportDataObjects][].
            +   * Metadata for
            +   * [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects].
                * 
            * * Protobuf type {@code google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsRequest.java index 37e4420f1db5..5db4dee643d2 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsRequest.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsRequest.java @@ -24,7 +24,8 @@ * * *
            - * Request message for [DataObjectService.ImportDataObjects][].
            + * Request message for
            + * [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects].
              * 
            * * Protobuf type {@code google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} @@ -128,6 +129,38 @@ public interface GcsImportConfigOrBuilder * @return The bytes for errorUri. */ com.google.protobuf.ByteString getErrorUriBytes(); + + /** + * + * + *
            +     * Optional. URI prefix of the Cloud Storage location to write DataObject
            +     * `IDs` and `etags` of DataObjects that were successfully imported. The
            +     * service will write the successfully imported DataObjects to sharded files
            +     * under this prefix. If this field is empty, no output will be written.
            +     * 
            + * + * string output_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputUri. + */ + java.lang.String getOutputUri(); + + /** + * + * + *
            +     * Optional. URI prefix of the Cloud Storage location to write DataObject
            +     * `IDs` and `etags` of DataObjects that were successfully imported. The
            +     * service will write the successfully imported DataObjects to sharded files
            +     * under this prefix. If this field is empty, no output will be written.
            +     * 
            + * + * string output_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputUri. + */ + com.google.protobuf.ByteString getOutputUriBytes(); } /** @@ -163,6 +196,7 @@ private GcsImportConfig(com.google.protobuf.GeneratedMessage.Builder builder) private GcsImportConfig() { contentsUri_ = ""; errorUri_ = ""; + outputUri_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -289,6 +323,65 @@ public com.google.protobuf.ByteString getErrorUriBytes() { } } + public static final int OUTPUT_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputUri_ = ""; + + /** + * + * + *
            +     * Optional. URI prefix of the Cloud Storage location to write DataObject
            +     * `IDs` and `etags` of DataObjects that were successfully imported. The
            +     * service will write the successfully imported DataObjects to sharded files
            +     * under this prefix. If this field is empty, no output will be written.
            +     * 
            + * + * string output_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputUri. + */ + @java.lang.Override + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + 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(); + outputUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. URI prefix of the Cloud Storage location to write DataObject
            +     * `IDs` and `etags` of DataObjects that were successfully imported. The
            +     * service will write the successfully imported DataObjects to sharded files
            +     * under this prefix. If this field is empty, no output will be written.
            +     * 
            + * + * string output_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -309,6 +402,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorUri_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, errorUri_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, outputUri_); + } getUnknownFields().writeTo(output); } @@ -324,6 +420,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorUri_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, errorUri_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, outputUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -344,6 +443,7 @@ public boolean equals(final java.lang.Object obj) { if (!getContentsUri().equals(other.getContentsUri())) return false; if (!getErrorUri().equals(other.getErrorUri())) return false; + if (!getOutputUri().equals(other.getOutputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -359,6 +459,8 @@ public int hashCode() { hash = (53 * hash) + getContentsUri().hashCode(); hash = (37 * hash) + ERROR_URI_FIELD_NUMBER; hash = (53 * hash) + getErrorUri().hashCode(); + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -511,6 +613,7 @@ public Builder clear() { bitField0_ = 0; contentsUri_ = ""; errorUri_ = ""; + outputUri_ = ""; return this; } @@ -558,6 +661,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.errorUri_ = errorUri_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputUri_ = outputUri_; + } } @java.lang.Override @@ -589,6 +695,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getOutputUri().isEmpty()) { + outputUri_ = other.outputUri_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -627,6 +738,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + outputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -873,6 +990,132 @@ public Builder setErrorUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object outputUri_ = ""; + + /** + * + * + *
            +       * Optional. URI prefix of the Cloud Storage location to write DataObject
            +       * `IDs` and `etags` of DataObjects that were successfully imported. The
            +       * service will write the successfully imported DataObjects to sharded files
            +       * under this prefix. If this field is empty, no output will be written.
            +       * 
            + * + * string output_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputUri. + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. URI prefix of the Cloud Storage location to write DataObject
            +       * `IDs` and `etags` of DataObjects that were successfully imported. The
            +       * service will write the successfully imported DataObjects to sharded files
            +       * under this prefix. If this field is empty, no output will be written.
            +       * 
            + * + * string output_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputUri. + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. URI prefix of the Cloud Storage location to write DataObject
            +       * `IDs` and `etags` of DataObjects that were successfully imported. The
            +       * service will write the successfully imported DataObjects to sharded files
            +       * under this prefix. If this field is empty, no output will be written.
            +       * 
            + * + * string output_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputUri to set. + * @return This builder for chaining. + */ + public Builder setOutputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. URI prefix of the Cloud Storage location to write DataObject
            +       * `IDs` and `etags` of DataObjects that were successfully imported. The
            +       * service will write the successfully imported DataObjects to sharded files
            +       * under this prefix. If this field is empty, no output will be written.
            +       * 
            + * + * string output_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputUri() { + outputUri_ = getDefaultInstance().getOutputUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. URI prefix of the Cloud Storage location to write DataObject
            +       * `IDs` and `etags` of DataObjects that were successfully imported. The
            +       * service will write the successfully imported DataObjects to sharded files
            +       * under this prefix. If this field is empty, no output will be written.
            +       * 
            + * + * string output_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for outputUri to set. + * @return This builder for chaining. + */ + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig) } @@ -1295,7 +1538,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -   * Request message for [DataObjectService.ImportDataObjects][].
            +   * Request message for
            +   * [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects].
                * 
            * * Protobuf type {@code google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsResponse.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsResponse.java index 3ea743c2c5d2..63b16629e2f5 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsResponse.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ImportDataObjectsResponse.java @@ -24,7 +24,8 @@ * * *
            - * Response for [DataObjectService.ImportDataObjects][].
            + * Response for
            + * [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects].
              * 
            * * Protobuf type {@code google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} @@ -288,7 +289,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -   * Response for [DataObjectService.ImportDataObjects][].
            +   * Response for
            +   * [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects].
                * 
            * * Protobuf type {@code google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SearchHint.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SearchHint.java index 2b9a21efc8fe..dc33a6e7ab65 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SearchHint.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SearchHint.java @@ -759,10 +759,12 @@ public IndexTypeCase getIndexTypeCase() { * * *
            -   * Specifies that the search should use a particular index.
            +   * Optional. Specifies that the search should use a particular index.
                * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the useIndex field is set. */ @@ -775,10 +777,12 @@ public boolean hasUseIndex() { * * *
            -   * Specifies that the search should use a particular index.
            +   * Optional. Specifies that the search should use a particular index.
                * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The useIndex. */ @@ -794,10 +798,12 @@ public com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint getUseIndex() { * * *
            -   * Specifies that the search should use a particular index.
            +   * Optional. Specifies that the search should use a particular index.
                * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHintOrBuilder getUseIndexOrBuilder() { @@ -813,11 +819,11 @@ public com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHintOrBuilder getUse * * *
            -   * If set to true, the search will use the system's default
            +   * Optional. If set to true, the search will use the system's default
                * K-Nearest Neighbor (KNN) index engine.
                * 
            * - * bool use_knn = 2; + * bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the useKnn field is set. */ @@ -830,11 +836,11 @@ public boolean hasUseKnn() { * * *
            -   * If set to true, the search will use the system's default
            +   * Optional. If set to true, the search will use the system's default
                * K-Nearest Neighbor (KNN) index engine.
                * 
            * - * bool use_knn = 2; + * bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useKnn. */ @@ -1239,10 +1245,12 @@ public Builder clearIndexType() { * * *
            -     * Specifies that the search should use a particular index.
            +     * Optional. Specifies that the search should use a particular index.
                  * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the useIndex field is set. */ @@ -1255,10 +1263,12 @@ public boolean hasUseIndex() { * * *
            -     * Specifies that the search should use a particular index.
            +     * Optional. Specifies that the search should use a particular index.
                  * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The useIndex. */ @@ -1281,10 +1291,12 @@ public com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint getUseIndex() { * * *
            -     * Specifies that the search should use a particular index.
            +     * Optional. Specifies that the search should use a particular index.
                  * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUseIndex(com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint value) { if (useIndexBuilder_ == null) { @@ -1304,10 +1316,12 @@ public Builder setUseIndex(com.google.cloud.vectorsearch.v1beta.SearchHint.Index * * *
            -     * Specifies that the search should use a particular index.
            +     * Optional. Specifies that the search should use a particular index.
                  * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUseIndex( com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.Builder builderForValue) { @@ -1325,10 +1339,12 @@ public Builder setUseIndex( * * *
            -     * Specifies that the search should use a particular index.
            +     * Optional. Specifies that the search should use a particular index.
                  * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUseIndex(com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint value) { if (useIndexBuilder_ == null) { @@ -1359,10 +1375,12 @@ public Builder mergeUseIndex(com.google.cloud.vectorsearch.v1beta.SearchHint.Ind * * *
            -     * Specifies that the search should use a particular index.
            +     * Optional. Specifies that the search should use a particular index.
                  * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUseIndex() { if (useIndexBuilder_ == null) { @@ -1385,10 +1403,12 @@ public Builder clearUseIndex() { * * *
            -     * Specifies that the search should use a particular index.
            +     * Optional. Specifies that the search should use a particular index.
                  * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.Builder getUseIndexBuilder() { return internalGetUseIndexFieldBuilder().getBuilder(); @@ -1398,10 +1418,12 @@ public com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.Builder getUseI * * *
            -     * Specifies that the search should use a particular index.
            +     * Optional. Specifies that the search should use a particular index.
                  * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHintOrBuilder @@ -1420,10 +1442,12 @@ public com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.Builder getUseI * * *
            -     * Specifies that the search should use a particular index.
            +     * Optional. Specifies that the search should use a particular index.
                  * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint, @@ -1454,11 +1478,11 @@ public com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.Builder getUseI * * *
            -     * If set to true, the search will use the system's default
            +     * Optional. If set to true, the search will use the system's default
                  * K-Nearest Neighbor (KNN) index engine.
                  * 
            * - * bool use_knn = 2; + * bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the useKnn field is set. */ @@ -1470,11 +1494,11 @@ public boolean hasUseKnn() { * * *
            -     * If set to true, the search will use the system's default
            +     * Optional. If set to true, the search will use the system's default
                  * K-Nearest Neighbor (KNN) index engine.
                  * 
            * - * bool use_knn = 2; + * bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useKnn. */ @@ -1489,11 +1513,11 @@ public boolean getUseKnn() { * * *
            -     * If set to true, the search will use the system's default
            +     * Optional. If set to true, the search will use the system's default
                  * K-Nearest Neighbor (KNN) index engine.
                  * 
            * - * bool use_knn = 2; + * bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useKnn to set. * @return This builder for chaining. @@ -1510,11 +1534,11 @@ public Builder setUseKnn(boolean value) { * * *
            -     * If set to true, the search will use the system's default
            +     * Optional. If set to true, the search will use the system's default
                  * K-Nearest Neighbor (KNN) index engine.
                  * 
            * - * bool use_knn = 2; + * bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SearchHintOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SearchHintOrBuilder.java index cda7de3f716a..96be9d05160c 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SearchHintOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SearchHintOrBuilder.java @@ -30,10 +30,12 @@ public interface SearchHintOrBuilder * * *
            -   * Specifies that the search should use a particular index.
            +   * Optional. Specifies that the search should use a particular index.
                * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the useIndex field is set. */ @@ -43,10 +45,12 @@ public interface SearchHintOrBuilder * * *
            -   * Specifies that the search should use a particular index.
            +   * Optional. Specifies that the search should use a particular index.
                * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The useIndex. */ @@ -56,10 +60,12 @@ public interface SearchHintOrBuilder * * *
            -   * Specifies that the search should use a particular index.
            +   * Optional. Specifies that the search should use a particular index.
                * 
            * - * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1; + * + * .google.cloud.vectorsearch.v1beta.SearchHint.IndexHint use_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.vectorsearch.v1beta.SearchHint.IndexHintOrBuilder getUseIndexOrBuilder(); @@ -67,11 +73,11 @@ public interface SearchHintOrBuilder * * *
            -   * If set to true, the search will use the system's default
            +   * Optional. If set to true, the search will use the system's default
                * K-Nearest Neighbor (KNN) index engine.
                * 
            * - * bool use_knn = 2; + * bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the useKnn field is set. */ @@ -81,11 +87,11 @@ public interface SearchHintOrBuilder * * *
            -   * If set to true, the search will use the system's default
            +   * Optional. If set to true, the search will use the system's default
                * K-Nearest Neighbor (KNN) index engine.
                * 
            * - * bool use_knn = 2; + * bool use_knn = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useKnn. */ diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SemanticSearch.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SemanticSearch.java index fb3cfd6a360b..8d75462f2c89 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SemanticSearch.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SemanticSearch.java @@ -370,6 +370,71 @@ public int getTopK() { return topK_; } + public static final int SEARCH_HINT_FIELD_NUMBER = 7; + private com.google.cloud.vectorsearch.v1beta.SearchHint searchHint_; + + /** + * + * + *
            +   * Optional. Sets the search hint. If no strategy is specified, the service
            +   * will use an index if one is available, and fall back to KNN search
            +   * otherwise.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchHint field is set. + */ + @java.lang.Override + public boolean hasSearchHint() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. Sets the search hint. If no strategy is specified, the service
            +   * will use an index if one is available, and fall back to KNN search
            +   * otherwise.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchHint. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.SearchHint getSearchHint() { + return searchHint_ == null + ? com.google.cloud.vectorsearch.v1beta.SearchHint.getDefaultInstance() + : searchHint_; + } + + /** + * + * + *
            +   * Optional. Sets the search hint. If no strategy is specified, the service
            +   * will use an index if one is available, and fall back to KNN search
            +   * otherwise.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.SearchHintOrBuilder getSearchHintOrBuilder() { + return searchHint_ == null + ? com.google.cloud.vectorsearch.v1beta.SearchHint.getDefaultInstance() + : searchHint_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -404,6 +469,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getFilter()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getSearchHint()); + } getUnknownFields().writeTo(output); } @@ -433,6 +501,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getFilter()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSearchHint()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -464,6 +535,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTopK()) { if (getTopK() != other.getTopK()) return false; } + if (hasSearchHint() != other.hasSearchHint()) return false; + if (hasSearchHint()) { + if (!getSearchHint().equals(other.getSearchHint())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -493,6 +568,10 @@ public int hashCode() { hash = (37 * hash) + TOP_K_FIELD_NUMBER; hash = (53 * hash) + getTopK(); } + if (hasSearchHint()) { + hash = (37 * hash) + SEARCH_HINT_FIELD_NUMBER; + hash = (53 * hash) + getSearchHint().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -636,6 +715,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetOutputFieldsFieldBuilder(); internalGetFilterFieldBuilder(); + internalGetSearchHintFieldBuilder(); } } @@ -657,6 +737,11 @@ public Builder clear() { filterBuilder_ = null; } topK_ = 0; + searchHint_ = null; + if (searchHintBuilder_ != null) { + searchHintBuilder_.dispose(); + searchHintBuilder_ = null; + } return this; } @@ -716,6 +801,10 @@ private void buildPartial0(com.google.cloud.vectorsearch.v1beta.SemanticSearch r result.topK_ = topK_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.searchHint_ = searchHintBuilder_ == null ? searchHint_ : searchHintBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -754,6 +843,9 @@ public Builder mergeFrom(com.google.cloud.vectorsearch.v1beta.SemanticSearch oth if (other.hasTopK()) { setTopK(other.getTopK()); } + if (other.hasSearchHint()) { + mergeSearchHint(other.getSearchHint()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -817,6 +909,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 50 + case 58: + { + input.readMessage( + internalGetSearchHintFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1655,6 +1754,238 @@ public Builder clearTopK() { return this; } + private com.google.cloud.vectorsearch.v1beta.SearchHint searchHint_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.SearchHint, + com.google.cloud.vectorsearch.v1beta.SearchHint.Builder, + com.google.cloud.vectorsearch.v1beta.SearchHintOrBuilder> + searchHintBuilder_; + + /** + * + * + *
            +     * Optional. Sets the search hint. If no strategy is specified, the service
            +     * will use an index if one is available, and fall back to KNN search
            +     * otherwise.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchHint field is set. + */ + public boolean hasSearchHint() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Optional. Sets the search hint. If no strategy is specified, the service
            +     * will use an index if one is available, and fall back to KNN search
            +     * otherwise.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchHint. + */ + public com.google.cloud.vectorsearch.v1beta.SearchHint getSearchHint() { + if (searchHintBuilder_ == null) { + return searchHint_ == null + ? com.google.cloud.vectorsearch.v1beta.SearchHint.getDefaultInstance() + : searchHint_; + } else { + return searchHintBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Sets the search hint. If no strategy is specified, the service
            +     * will use an index if one is available, and fall back to KNN search
            +     * otherwise.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchHint(com.google.cloud.vectorsearch.v1beta.SearchHint value) { + if (searchHintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchHint_ = value; + } else { + searchHintBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Sets the search hint. If no strategy is specified, the service
            +     * will use an index if one is available, and fall back to KNN search
            +     * otherwise.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchHint( + com.google.cloud.vectorsearch.v1beta.SearchHint.Builder builderForValue) { + if (searchHintBuilder_ == null) { + searchHint_ = builderForValue.build(); + } else { + searchHintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Sets the search hint. If no strategy is specified, the service
            +     * will use an index if one is available, and fall back to KNN search
            +     * otherwise.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSearchHint(com.google.cloud.vectorsearch.v1beta.SearchHint value) { + if (searchHintBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && searchHint_ != null + && searchHint_ + != com.google.cloud.vectorsearch.v1beta.SearchHint.getDefaultInstance()) { + getSearchHintBuilder().mergeFrom(value); + } else { + searchHint_ = value; + } + } else { + searchHintBuilder_.mergeFrom(value); + } + if (searchHint_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Sets the search hint. If no strategy is specified, the service
            +     * will use an index if one is available, and fall back to KNN search
            +     * otherwise.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchHint() { + bitField0_ = (bitField0_ & ~0x00000040); + searchHint_ = null; + if (searchHintBuilder_ != null) { + searchHintBuilder_.dispose(); + searchHintBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Sets the search hint. If no strategy is specified, the service
            +     * will use an index if one is available, and fall back to KNN search
            +     * otherwise.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1beta.SearchHint.Builder getSearchHintBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetSearchHintFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Sets the search hint. If no strategy is specified, the service
            +     * will use an index if one is available, and fall back to KNN search
            +     * otherwise.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1beta.SearchHintOrBuilder getSearchHintOrBuilder() { + if (searchHintBuilder_ != null) { + return searchHintBuilder_.getMessageOrBuilder(); + } else { + return searchHint_ == null + ? com.google.cloud.vectorsearch.v1beta.SearchHint.getDefaultInstance() + : searchHint_; + } + } + + /** + * + * + *
            +     * Optional. Sets the search hint. If no strategy is specified, the service
            +     * will use an index if one is available, and fall back to KNN search
            +     * otherwise.
            +     * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.SearchHint, + com.google.cloud.vectorsearch.v1beta.SearchHint.Builder, + com.google.cloud.vectorsearch.v1beta.SearchHintOrBuilder> + internalGetSearchHintFieldBuilder() { + if (searchHintBuilder_ == null) { + searchHintBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.SearchHint, + com.google.cloud.vectorsearch.v1beta.SearchHint.Builder, + com.google.cloud.vectorsearch.v1beta.SearchHintOrBuilder>( + getSearchHint(), getParentForChildren(), isClean()); + searchHint_ = null; + } + return searchHintBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.SemanticSearch) } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SemanticSearchOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SemanticSearchOrBuilder.java index 36fa486a4284..648de2e522e5 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SemanticSearchOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/SemanticSearchOrBuilder.java @@ -218,4 +218,53 @@ public interface SemanticSearchOrBuilder * @return The topK. */ int getTopK(); + + /** + * + * + *
            +   * Optional. Sets the search hint. If no strategy is specified, the service
            +   * will use an index if one is available, and fall back to KNN search
            +   * otherwise.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchHint field is set. + */ + boolean hasSearchHint(); + + /** + * + * + *
            +   * Optional. Sets the search hint. If no strategy is specified, the service
            +   * will use an index if one is available, and fall back to KNN search
            +   * otherwise.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchHint. + */ + com.google.cloud.vectorsearch.v1beta.SearchHint getSearchHint(); + + /** + * + * + *
            +   * Optional. Sets the search hint. If no strategy is specified, the service
            +   * will use an index if one is available, and fall back to KNN search
            +   * otherwise.
            +   * 
            + * + * + * .google.cloud.vectorsearch.v1beta.SearchHint search_hint = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vectorsearch.v1beta.SearchHintOrBuilder getSearchHintOrBuilder(); } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearch.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearch.java index 2d2f99cdc69a..ab5d84828e4a 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearch.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearch.java @@ -287,6 +287,58 @@ public int getTopK() { return topK_; } + public static final int FILTER_FIELD_NUMBER = 5; + private com.google.protobuf.Struct filter_; + + /** + * + * + *
            +   * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +   * represented as a `google.protobuf.Struct`.
            +   * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +   * represented as a `google.protobuf.Struct`.
            +   * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public com.google.protobuf.Struct getFilter() { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } + + /** + * + * + *
            +   * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +   * represented as a `google.protobuf.Struct`.
            +   * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getFilterOrBuilder() { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -313,6 +365,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(4, topK_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getFilter()); + } getUnknownFields().writeTo(output); } @@ -339,6 +394,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, topK_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFilter()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -365,6 +423,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTopK()) { if (getTopK() != other.getTopK()) return false; } + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -390,6 +452,10 @@ public int hashCode() { hash = (37 * hash) + TOP_K_FIELD_NUMBER; hash = (53 * hash) + getTopK(); } + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -532,6 +598,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetOutputFieldsFieldBuilder(); + internalGetFilterFieldBuilder(); } } @@ -547,6 +614,11 @@ public Builder clear() { outputFieldsBuilder_ = null; } topK_ = 0; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } return this; } @@ -600,6 +672,10 @@ private void buildPartial0(com.google.cloud.vectorsearch.v1beta.TextSearch resul result.topK_ = topK_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -637,6 +713,9 @@ public Builder mergeFrom(com.google.cloud.vectorsearch.v1beta.TextSearch other) if (other.hasTopK()) { setTopK(other.getTopK()); } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -689,6 +768,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 42: + { + input.readMessage(internalGetFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1288,6 +1373,205 @@ public Builder clearTopK() { return this; } + private com.google.protobuf.Struct filter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + filterBuilder_; + + /** + * + * + *
            +     * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +     * represented as a `google.protobuf.Struct`.
            +     * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +     * represented as a `google.protobuf.Struct`.
            +     * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public com.google.protobuf.Struct getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +     * represented as a `google.protobuf.Struct`.
            +     * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setFilter(com.google.protobuf.Struct value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +     * represented as a `google.protobuf.Struct`.
            +     * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setFilter(com.google.protobuf.Struct.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +     * represented as a `google.protobuf.Struct`.
            +     * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeFilter(com.google.protobuf.Struct value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && filter_ != null + && filter_ != com.google.protobuf.Struct.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +     * represented as a `google.protobuf.Struct`.
            +     * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000010); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +     * represented as a `google.protobuf.Struct`.
            +     * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getFilterBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +     * represented as a `google.protobuf.Struct`.
            +     * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } + } + + /** + * + * + *
            +     * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +     * represented as a `google.protobuf.Struct`.
            +     * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.TextSearch) } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearchOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearchOrBuilder.java index dcadaa5308a3..058f318eab01 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearchOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearchOrBuilder.java @@ -174,4 +174,44 @@ public interface TextSearchOrBuilder * @return The topK. */ int getTopK(); + + /** + * + * + *
            +   * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +   * represented as a `google.protobuf.Struct`.
            +   * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
            +   * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +   * represented as a `google.protobuf.Struct`.
            +   * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + com.google.protobuf.Struct getFilter(); + + /** + * + * + *
            +   * Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`,
            +   * represented as a `google.protobuf.Struct`.
            +   * 
            + * + * .google.protobuf.Struct filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getFilterOrBuilder(); } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/UpdateCollectionRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/UpdateCollectionRequest.java index 26ef88e9ac27..e816824a6622 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/UpdateCollectionRequest.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/UpdateCollectionRequest.java @@ -88,7 +88,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -120,7 +121,8 @@ public boolean hasUpdateMask() { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -152,7 +154,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -721,7 +724,8 @@ public Builder mergeFrom( * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -752,7 +756,8 @@ public boolean hasUpdateMask() { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -789,7 +794,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -828,7 +834,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -864,7 +871,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -908,7 +916,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -944,7 +953,8 @@ public Builder clearUpdateMask() { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -975,7 +985,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -1010,7 +1021,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/UpdateCollectionRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/UpdateCollectionRequestOrBuilder.java index f1b1755322d6..9711a7283cf6 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/UpdateCollectionRequestOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/UpdateCollectionRequestOrBuilder.java @@ -40,7 +40,8 @@ public interface UpdateCollectionRequestOrBuilder * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -69,7 +70,8 @@ public interface UpdateCollectionRequestOrBuilder * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -98,7 +100,8 @@ public interface UpdateCollectionRequestOrBuilder * The following fields support update: `display_name`, `description`, * `labels`, `data_schema`, `vector_schema`. * For `data_schema` and `vector_schema`, fields can only be added, not - * modified or deleted. + * deleted, but `vertex_embedding_config` in `vector_schema` can be added or + * removed. * Partial updates for `data_schema` and `vector_schema` are also supported * by using sub-field paths in `update_mask`, e.g. * `data_schema.properties.foo` or `vector_schema.my_vector_field`. diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/Vector.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/Vector.java index b3e0fc36a2d5..097733c18f49 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/Vector.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/Vector.java @@ -243,7 +243,7 @@ public com.google.cloud.vectorsearch.v1beta.SparseVectorOrBuilder getSparseOrBui * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @return A list containing the values. */ @java.lang.Override @@ -262,7 +262,7 @@ public java.util.List getValuesList() { * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @return The count of values. */ @java.lang.Deprecated @@ -280,7 +280,7 @@ public int getValuesCount() { * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @param index The index of the element to return. * @return The values at the given index. */ @@ -1199,7 +1199,7 @@ private void ensureValuesIsMutable(int capacity) { * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @return A list containing the values. */ @java.lang.Deprecated @@ -1218,7 +1218,7 @@ public java.util.List getValuesList() { * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @return The count of values. */ @java.lang.Deprecated @@ -1236,7 +1236,7 @@ public int getValuesCount() { * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @param index The index of the element to return. * @return The values at the given index. */ @@ -1255,7 +1255,7 @@ public float getValues(int index) { * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. @@ -1280,7 +1280,7 @@ public Builder setValues(int index, float value) { * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @param value The values to add. * @return This builder for chaining. */ @@ -1304,7 +1304,7 @@ public Builder addValues(float value) { * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @param values The values to add. * @return This builder for chaining. */ @@ -1327,7 +1327,7 @@ public Builder addAllValues(java.lang.Iterable values * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorOrBuilder.java index 8af9e08cf9c1..d58f184968f6 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorOrBuilder.java @@ -110,7 +110,7 @@ public interface VectorOrBuilder * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @return A list containing the values. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface VectorOrBuilder * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @return The count of values. */ @java.lang.Deprecated @@ -142,7 +142,7 @@ public interface VectorOrBuilder * repeated float values = 1 [deprecated = true]; * * @deprecated google.cloud.vectorsearch.v1beta.Vector.values is deprecated. See - * google/cloud/vectorsearch/v1beta/data_object.proto;l=75 + * google/cloud/vectorsearch/v1beta/data_object.proto;l=76 * @param index The index of the element to return. * @return The values at the given index. */ diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceProto.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceProto.java index 588a09d6ee74..3a542e2a03af 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceProto.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceProto.java @@ -136,6 +136,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vectorsearch_v1beta_ImportDataObjectsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_vectorsearch_v1beta_ImportDataObjectsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -273,15 +289,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\"\212\002\n" + + "\013api_version\030\007 \001(\tB\003\340A\003\"\243\002\n" + "\030ImportDataObjectsRequest\022`\n\n" + "gcs_import\030\002 \001(\0132J.google.cloud.vectorsearch." + "v1beta.ImportDataObjectsRequest.GcsImportConfigH\000\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&vectorsearch.googleapis.com/Collection\032D\n" + + "&vectorsearch.googleapis.com/Collection\032]\n" + "\017GcsImportConfig\022\031\n" + "\014contents_uri\030\001 \001(\tB\003\340A\002\022\026\n" - + "\terror_uri\030\002 \001(\tB\003\340A\002B\010\n" + + "\terror_uri\030\002 \001(\tB\003\340A\002\022\027\n\n" + + "output_uri\030\003 \001(\tB\003\340A\001B\010\n" + "\006config\"\253\001\n" + "\031ImportDataObjectsMetadata\022/\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" @@ -289,57 +306,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "success_count\030\003 \001(\003\022\025\n\r" + "failure_count\030\004 \001(\003\"?\n" + "\031ImportDataObjectsResponse\022\"\n" - + "\006status\030\001 \001(\0132\022.google.rpc.Status2\227\022\n" + + "\006status\030\001 \001(\0132\022.google.rpc.Status\"\236\003\n" + + "\030ExportDataObjectsRequest\022j\n" + + "\017gcs_destination\030\002 \001(\0132O.google.c" + + "loud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestinationH\000\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&vectorsearch.googleapis.com/Collection\032\310\001\n" + + "\024GcsExportDestination\022\027\n\n" + + "export_uri\030\001 \001(\tB\003\340A\002\022k\n" + + "\006format\030\002 \001(\0162V.google.cloud.vectorsearch.v1beta.Expo" + + "rtDataObjectsRequest.GcsExportDestination.FormatB\003\340A\002\"*\n" + + "\006Format\022\026\n" + + "\022FORMAT_UNSPECIFIED\020\000\022\010\n" + + "\004JSON\020\001B\r\n" + + "\013destination\"}\n" + + "\031ExportDataObjectsMetadata\022/\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013finish_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\033\n" + + "\031ExportDataObjectsResponse2\224\024\n" + "\023VectorSearchService\022\314\001\n" - + "\017ListCollections\0228.google.cloud.vectorsearch.v1beta.ListCollec" - + "tionsRequest\0329.google.cloud.vectorsearch" - + ".v1beta.ListCollectionsResponse\"D\332A\006pare" - + "nt\202\323\344\223\0025\0223/v1beta/{parent=projects/*/locations/*}/collections\022\271\001\n\r" - + "GetCollection\0226.google.cloud.vectorsearch.v1beta.GetCo" - + "llectionRequest\032,.google.cloud.vectorsea" - + "rch.v1beta.Collection\"B\332A\004name\202\323\344\223\0025\0223/v" - + "1beta/{name=projects/*/locations/*/collections/*}\022\372\001\n" - + "\020CreateCollection\0229.google.cloud.vectorsearch.v1beta.CreateCollecti" - + "onRequest\032\035.google.longrunning.Operation\"\213\001\312A\037\n\n" - + "Collection\022\021OperationMetadata\332A\037" - + "parent,collection,collection_id\202\323\344\223\002A\"3/" - + "v1beta/{parent=projects/*/locations/*}/collections:\n" + + "\017ListCollections\0228.google.cloud.vectorsearch.v1beta.ListCollecti" + + "onsRequest\0329.google.cloud.vectorsearch.v" + + "1beta.ListCollectionsResponse\"D\332A\006parent" + + "\202\323\344\223\0025\0223/v1beta/{parent=projects/*/locations/*}/collections\022\271\001\n\r" + + "GetCollection\0226.google.cloud.vectorsearch.v1beta.GetColl" + + "ectionRequest\032,.google.cloud.vectorsearc" + + "h.v1beta.Collection\"B\332A\004name\202\323\344\223\0025\0223/v1b" + + "eta/{name=projects/*/locations/*/collections/*}\022\372\001\n" + + "\020CreateCollection\0229.google.cloud.vectorsearch.v1beta.CreateCollection" + + "Request\032\035.google.longrunning.Operation\"\213\001\312A\037\n\n" + + "Collection\022\021OperationMetadata\332A\037pa" + + "rent,collection,collection_id\202\323\344\223\002A\"3/v1" + + "beta/{parent=projects/*/locations/*}/collections:\n" + "collection\022\374\001\n" - + "\020UpdateCollection\0229.google.cloud.vectorsearch.v1beta.U" - + "pdateCollectionRequest\032\035.google.longrunning.Operation\"\215\001\312A\037\n\n" - + "Collection\022\021OperationMetadata\332A\026collection,update_mask\202\323\344\223\002" - + "L2>/v1beta/{collection.name=projects/*/locations/*/collections/*}:\n" + + "\020UpdateCollection\0229.google.cloud.vectorsearch.v1beta.Upd" + + "ateCollectionRequest\032\035.google.longrunning.Operation\"\215\001\312A\037\n\n" + + "Collection\022\021Operation" + + "Metadata\332A\026collection,update_mask\202\323\344\223\002L2" + + ">/v1beta/{collection.name=projects/*/locations/*/collections/*}:\n" + "collection\022\335\001\n" - + "\020DeleteCollection\0229.google.cloud.vector" - + "search.v1beta.DeleteCollectionRequest\032\035.google.longrunning.Operation\"o\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004na" - + "me\202\323\344\223\0025*3/v1beta/{name=projects/*/locations/*/collections/*}\022\312\001\n" - + "\013ListIndexes\0224.google.cloud.vectorsearch.v1beta.ListInd" - + "exesRequest\0325.google.cloud.vectorsearch." - + "v1beta.ListIndexesResponse\"N\332A\006parent\202\323\344" - + "\223\002?\022=/v1beta/{parent=projects/*/locations/*/collections/*}/indexes\022\264\001\n" - + "\010GetIndex\0221.google.cloud.vectorsearch.v1beta.GetIn" - + "dexRequest\032\'.google.cloud.vectorsearch.v" - + "1beta.Index\"L\332A\004name\202\323\344\223\002?\022=/v1beta/{nam" - + "e=projects/*/locations/*/collections/*/indexes/*}\022\346\001\n" - + "\013CreateIndex\0224.google.cloud" - + ".vectorsearch.v1beta.CreateIndexRequest\032\035.google.longrunning.Operation\"\201\001\312A\032\n" - + "\005Index\022\021OperationMetadata\332A\025parent,index,in" - + "dex_id\202\323\344\223\002F\"=/v1beta/{parent=projects/*" - + "/locations/*/collections/*}/indexes:\005index\022\335\001\n" - + "\013DeleteIndex\0224.google.cloud.vector" - + "search.v1beta.DeleteIndexRequest\032\035.google.longrunning.Operation\"y\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344" - + "\223\002?*=/v1beta/{name=projects/*/locations/*/collections/*/indexes/*}\022\372\001\n" - + "\021ImportDataObjects\022:.google.cloud.vectorsearch.v1b" - + "eta.ImportDataObjectsRequest\032\035.google.longrunning.Operation\"\211\001\312A6\n" - + "\031ImportDataObjectsResponse\022\031ImportDataObjectsMetadata\202" - + "\323\344\223\002J\"E/v1beta/{name=projects/*/location" - + "s/*/collections/*}:importDataObjects:\001*\032" - + "O\312A\033vectorsearch.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platformB\214\001\n" - + "$com.google.cloud.vectorsearch.v1betaB\030VectorSearchServiceProtoP\001ZHcloud.goo" - + "gle.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpbb\006proto3" + + "\020DeleteCollection\0229.google.cloud.vectorse" + + "arch.v1beta.DeleteCollectionRequest\032\035.google.longrunning.Operation\"o\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\0025*3/v1beta/{name=projects/*/locations/*/collections/*}\022\312\001\n" + + "\013ListIndexes\0224.google.cloud.vectorsearch.v1beta.ListIndex" + + "esRequest\0325.google.cloud.vectorsearch.v1" + + "beta.ListIndexesResponse\"N\332A\006parent\202\323\344\223\002" + + "?\022=/v1beta/{parent=projects/*/locations/*/collections/*}/indexes\022\264\001\n" + + "\010GetIndex\0221.google.cloud.vectorsearch.v1beta.GetInde" + + "xRequest\032\'.google.cloud.vectorsearch.v1b" + + "eta.Index\"L\332A\004name\202\323\344\223\002?\022=/v1beta/{name=" + + "projects/*/locations/*/collections/*/indexes/*}\022\346\001\n" + + "\013CreateIndex\0224.google.cloud.v" + + "ectorsearch.v1beta.CreateIndexRequest\032\035.google.longrunning.Operation\"\201\001\312A\032\n" + + "\005Index\022\021OperationMetadata\332A\025parent,index,inde" + + "x_id\202\323\344\223\002F\"=/v1beta/{parent=projects/*/l" + + "ocations/*/collections/*}/indexes:\005index\022\335\001\n" + + "\013DeleteIndex\0224.google.cloud.vectorse" + + "arch.v1beta.DeleteIndexRequest\032\035.google.longrunning.Operation\"y\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "?*=/v1beta/{name=projects/*/locations/*/collections/*/indexes/*}\022\372\001\n" + + "\021ImportDataObjects\022:.google.cloud.vectorsearch.v1bet" + + "a.ImportDataObjectsRequest\032\035.google.longrunning.Operation\"\211\001\312A6\n" + + "\031ImportDataObjectsResponse\022\031ImportDataObjectsMetadata\202\323\344" + + "\223\002J\"E/v1beta/{name=projects/*/locations/" + + "*/collections/*}:importDataObjects:\001*\022\372\001\n" + + "\021ExportDataObjects\022:.google.cloud.vecto" + + "rsearch.v1beta.ExportDataObjectsRequest\032\035.google.longrunning.Operation\"\211\001\312A6\n" + + "\031ExportDataObjectsResponse\022\031ExportDataObjec" + + "tsMetadata\202\323\344\223\002J\"E/v1beta/{name=projects" + + "/*/locations/*/collections/*}:exportData" + + "Objects:\001*\032O\312A\033vectorsearch.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/cloud-platformB\214\001\n" + + "$com.google.cloud.vectorsearch.v1betaB\030VectorSearchServiceProtoP\001" + + "ZHcloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -555,7 +595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1beta_ImportDataObjectsRequest_GcsImportConfig_descriptor, new java.lang.String[] { - "ContentsUri", "ErrorUri", + "ContentsUri", "ErrorUri", "OutputUri", }); internal_static_google_cloud_vectorsearch_v1beta_ImportDataObjectsMetadata_descriptor = getDescriptor().getMessageType(18); @@ -573,6 +613,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Status", }); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor, + new java.lang.String[] { + "GcsDestination", "Name", "Destination", + }); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_descriptor = + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_descriptor, + new java.lang.String[] { + "ExportUri", "Format", + }); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "FinishTime", + }); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsResponse_descriptor, + new java.lang.String[] {}); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VertexEmbeddingConfig.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VertexEmbeddingConfig.java index 2cd80405807e..1c84d209047e 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VertexEmbeddingConfig.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VertexEmbeddingConfig.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getModelIdBytes() { *
                * Required. Required: Text template for the input to the model. The template
                * must contain one or more references to fields in the DataObject, e.g.:
            -   * "Movie Title: {title} ---- Movie Plot: {plot}"".
            +   * "Movie Title: {title} ---- Movie Plot: {plot}".
                * 
            * * string text_template = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -167,7 +167,7 @@ public java.lang.String getTextTemplate() { *
                * Required. Required: Text template for the input to the model. The template
                * must contain one or more references to fields in the DataObject, e.g.:
            -   * "Movie Title: {title} ---- Movie Plot: {plot}"".
            +   * "Movie Title: {title} ---- Movie Plot: {plot}".
                * 
            * * string text_template = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -721,7 +721,7 @@ public Builder setModelIdBytes(com.google.protobuf.ByteString value) { *
                  * Required. Required: Text template for the input to the model. The template
                  * must contain one or more references to fields in the DataObject, e.g.:
            -     * "Movie Title: {title} ---- Movie Plot: {plot}"".
            +     * "Movie Title: {title} ---- Movie Plot: {plot}".
                  * 
            * * string text_template = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -746,7 +746,7 @@ public java.lang.String getTextTemplate() { *
                  * Required. Required: Text template for the input to the model. The template
                  * must contain one or more references to fields in the DataObject, e.g.:
            -     * "Movie Title: {title} ---- Movie Plot: {plot}"".
            +     * "Movie Title: {title} ---- Movie Plot: {plot}".
                  * 
            * * string text_template = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -771,7 +771,7 @@ public com.google.protobuf.ByteString getTextTemplateBytes() { *
                  * Required. Required: Text template for the input to the model. The template
                  * must contain one or more references to fields in the DataObject, e.g.:
            -     * "Movie Title: {title} ---- Movie Plot: {plot}"".
            +     * "Movie Title: {title} ---- Movie Plot: {plot}".
                  * 
            * * string text_template = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -795,7 +795,7 @@ public Builder setTextTemplate(java.lang.String value) { *
                  * Required. Required: Text template for the input to the model. The template
                  * must contain one or more references to fields in the DataObject, e.g.:
            -     * "Movie Title: {title} ---- Movie Plot: {plot}"".
            +     * "Movie Title: {title} ---- Movie Plot: {plot}".
                  * 
            * * string text_template = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -815,7 +815,7 @@ public Builder clearTextTemplate() { *
                  * Required. Required: Text template for the input to the model. The template
                  * must contain one or more references to fields in the DataObject, e.g.:
            -     * "Movie Title: {title} ---- Movie Plot: {plot}"".
            +     * "Movie Title: {title} ---- Movie Plot: {plot}".
                  * 
            * * string text_template = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VertexEmbeddingConfigOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VertexEmbeddingConfigOrBuilder.java index 600fa0daf419..d3d2a9b02aa6 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VertexEmbeddingConfigOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VertexEmbeddingConfigOrBuilder.java @@ -62,7 +62,7 @@ public interface VertexEmbeddingConfigOrBuilder *
                * Required. Required: Text template for the input to the model. The template
                * must contain one or more references to fields in the DataObject, e.g.:
            -   * "Movie Title: {title} ---- Movie Plot: {plot}"".
            +   * "Movie Title: {title} ---- Movie Plot: {plot}".
                * 
            * * string text_template = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -77,7 +77,7 @@ public interface VertexEmbeddingConfigOrBuilder *
                * Required. Required: Text template for the input to the model. The template
                * must contain one or more references to fields in the DataObject, e.g.:
            -   * "Movie Title: {title} ---- Movie Plot: {plot}"".
            +   * "Movie Title: {title} ---- Movie Plot: {plot}".
                * 
            * * string text_template = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object.proto index a312b7bc2eab..7b557a4a48f7 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,16 +31,17 @@ message DataObject { option (google.api.resource) = { type: "vectorsearch.googleapis.com/DataObject" pattern: "projects/{project}/locations/{location}/collections/{collection}/dataObjects/{dataObject}" + plural: "dataObjects" + singular: "dataObject" }; - // Immutable. The fully qualified resource name of the dataObject. + // Identifier. The fully qualified resource name of the dataObject. // // Format: // `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}` // The data_object_id must be 1-63 characters - // long, and comply with - // RFC1035. - string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + // long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The id of the dataObject. string data_object_id = 2 diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_search_service.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_search_service.proto index 5b8324f79155..45892cd7577d 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_search_service.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_search_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -107,12 +107,12 @@ message SearchHint { // The type of index to use. oneof index_type { - // Specifies that the search should use a particular index. - IndexHint use_index = 1; + // Optional. Specifies that the search should use a particular index. + IndexHint use_index = 1 [(google.api.field_behavior) = OPTIONAL]; - // If set to true, the search will use the system's default + // Optional. If set to true, the search will use the system's default // K-Nearest Neighbor (KNN) index engine. - bool use_knn = 2; + bool use_knn = 2 [(google.api.field_behavior) = OPTIONAL]; } } @@ -161,7 +161,8 @@ message VectorSearch { // Optional. The distance metric to use for the KNN search. If not specified, // DOT_PRODUCT will be used as the default. - DistanceMetric distance_metric = 11 [(google.api.field_behavior) = OPTIONAL]; + google.cloud.vectorsearch.v1beta.DistanceMetric distance_metric = 11 + [(google.api.field_behavior) = OPTIONAL]; } // Defines a semantic search operation. @@ -185,6 +186,11 @@ message SemanticSearch { // Optional. The number of data objects to return. optional int32 top_k = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sets the search hint. If no strategy is specified, the service + // will use an index if one is available, and fall back to KNN search + // otherwise. + SearchHint search_hint = 7 [(google.api.field_behavior) = OPTIONAL]; } // Defines a text search operation. @@ -200,6 +206,10 @@ message TextSearch { // Optional. The number of results to return. optional int32 top_k = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`, + // represented as a `google.protobuf.Struct`. + google.protobuf.Struct filter = 5 [(google.api.field_behavior) = OPTIONAL]; } // Request for performing a single search. diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_service.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_service.proto index 152bf99cd75d..6feca2973ff6 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_service.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -114,7 +114,7 @@ message CreateDataObjectRequest { // Required. The id of the dataObject to create. // The id must be 1-63 characters long, and comply with - // RFC1035. + // [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). // Specifically, it must be 1-63 characters long and match the regular // expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. string data_object_id = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/embedding_config.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/embedding_config.proto index 39ab723412e2..b14b6bb2c2b2 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/embedding_config.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/embedding_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -63,7 +63,7 @@ message VertexEmbeddingConfig { // Required. Required: Text template for the input to the model. The template // must contain one or more references to fields in the DataObject, e.g.: - // "Movie Title: {title} ---- Movie Plot: {plot}"". + // "Movie Title: {title} ---- Movie Plot: {plot}". string text_template = 2 [(google.api.field_behavior) = REQUIRED]; // Required. Required: Task type for the embeddings. diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto index bafab9c04e43..94a9baa232cc 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -156,6 +156,19 @@ service VectorSearchService { metadata_type: "ImportDataObjectsMetadata" }; } + + // Initiates a Long-Running Operation to export DataObjects from a Collection. + rpc ExportDataObjects(ExportDataObjectsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{name=projects/*/locations/*/collections/*}:exportDataObjects" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ExportDataObjectsResponse" + metadata_type: "ExportDataObjectsMetadata" + }; + } } // Message describing Collection object @@ -290,7 +303,7 @@ message CreateCollectionRequest { // Required. ID of the Collection to create. // The id must be 1-63 characters long, and comply with - // RFC1035. + // [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). // Specifically, it must be 1-63 characters long and match the regular // expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. string collection_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -329,7 +342,8 @@ message UpdateCollectionRequest { // The following fields support update: `display_name`, `description`, // `labels`, `data_schema`, `vector_schema`. // For `data_schema` and `vector_schema`, fields can only be added, not - // modified or deleted. + // deleted, but `vertex_embedding_config` in `vector_schema` can be added or + // removed. // Partial updates for `data_schema` and `vector_schema` are also supported // by using sub-field paths in `update_mask`, e.g. // `data_schema.properties.foo` or `vector_schema.my_vector_field`. @@ -420,7 +434,8 @@ message Index { // Optional. Distance metric used for indexing. If not specified, will default // to DOT_PRODUCT. - DistanceMetric distance_metric = 4 [(google.api.field_behavior) = OPTIONAL]; + google.cloud.vectorsearch.v1beta.DistanceMetric distance_metric = 4 + [(google.api.field_behavior) = OPTIONAL]; // Required. The collection schema field to index. string index_field = 5 [(google.api.field_behavior) = REQUIRED]; @@ -448,7 +463,7 @@ message CreateIndexRequest { // Required. ID of the Index to create. // The id must be 1-63 characters long, and comply with - // RFC1035. + // [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). // Specifically, it must be 1-63 characters long and match the regular // expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. string index_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -581,7 +596,8 @@ message OperationMetadata { string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Request message for [DataObjectService.ImportDataObjects][]. +// Request message for +// [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects]. message ImportDataObjectsRequest { // Google Cloud Storage configuration for the import. message GcsImportConfig { @@ -591,6 +607,12 @@ message ImportDataObjectsRequest { // Required. URI prefix of the Cloud Storage location to write any errors // encountered during the import. string error_uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. URI prefix of the Cloud Storage location to write DataObject + // `IDs` and `etags` of DataObjects that were successfully imported. The + // service will write the successfully imported DataObjects to sharded files + // under this prefix. If this field is empty, no output will be written. + string output_uri = 3 [(google.api.field_behavior) = OPTIONAL]; } // The configuration for the import data and error results. @@ -609,7 +631,8 @@ message ImportDataObjectsRequest { ]; } -// Metadata for [DataObjectService.ImportDataObjects][]. +// Metadata for +// [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects]. message ImportDataObjectsMetadata { // The time the operation was created. google.protobuf.Timestamp create_time = 1; @@ -624,8 +647,61 @@ message ImportDataObjectsMetadata { int64 failure_count = 4; } -// Response for [DataObjectService.ImportDataObjects][]. +// Response for +// [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects]. message ImportDataObjectsResponse { // Status of the LRO google.rpc.Status status = 1; } + +// Request message for +// [VectorSearchService.ExportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ExportDataObjects]. +message ExportDataObjectsRequest { + // Google Cloud Storage configuration for the export. + message GcsExportDestination { + // Options for the format of the exported Data Objects. + // New formats may be added in the future. + enum Format { + // Unspecified format. + FORMAT_UNSPECIFIED = 0; + + // The exported Data Objects will be in JSON format. + JSON = 1; + } + + // Required. URI prefix of the Cloud Storage where to export Data Objects. + // The bucket is required to be in the same region as the collection. + string export_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The format of the exported Data Objects. + Format format = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // The configuration for the export data. + oneof destination { + // The Cloud Storage location where user wants to export Data Objects. + GcsExportDestination gcs_destination = 2; + } + + // Required. The resource name of the Collection from which we want to export + // Data Objects. Format: + // `projects/{project}/locations/{location}/collections/{collection}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vectorsearch.googleapis.com/Collection" + } + ]; +} + +// Metadata for the ExportDataObjects LRO. +message ExportDataObjectsMetadata { + // The time the operation was created. + google.protobuf.Timestamp create_time = 1; + + // The time the operation finished. + google.protobuf.Timestamp finish_time = 2; +} + +// Response for the ExportDataObjects LRO. +message ExportDataObjectsResponse {} diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java new file mode 100644 index 000000000000..91014cc248df --- /dev/null +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vectorsearch.v1beta.samples; + +// [START vectorsearch_v1beta_generated_VectorSearchService_ExportDataObjects_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vectorsearch.v1beta.CollectionName; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest; +import com.google.cloud.vectorsearch.v1beta.VectorSearchServiceClient; +import com.google.longrunning.Operation; + +public class AsyncExportDataObjects { + + public static void main(String[] args) throws Exception { + asyncExportDataObjects(); + } + + public static void asyncExportDataObjects() 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 (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) { + ExportDataObjectsRequest request = + ExportDataObjectsRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + ApiFuture future = + vectorSearchServiceClient.exportDataObjectsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vectorsearch_v1beta_generated_VectorSearchService_ExportDataObjects_async] diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java new file mode 100644 index 000000000000..f1dd403909ef --- /dev/null +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vectorsearch.v1beta.samples; + +// [START vectorsearch_v1beta_generated_VectorSearchService_ExportDataObjects_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vectorsearch.v1beta.CollectionName; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse; +import com.google.cloud.vectorsearch.v1beta.VectorSearchServiceClient; + +public class AsyncExportDataObjectsLRO { + + public static void main(String[] args) throws Exception { + asyncExportDataObjectsLRO(); + } + + public static void asyncExportDataObjectsLRO() 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 (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) { + ExportDataObjectsRequest request = + ExportDataObjectsRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + OperationFuture future = + vectorSearchServiceClient.exportDataObjectsOperationCallable().futureCall(request); + // Do something. + ExportDataObjectsResponse response = future.get(); + } + } +} +// [END vectorsearch_v1beta_generated_VectorSearchService_ExportDataObjects_LRO_async] diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java new file mode 100644 index 000000000000..2cf762b51fad --- /dev/null +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vectorsearch.v1beta.samples; + +// [START vectorsearch_v1beta_generated_VectorSearchService_ExportDataObjects_sync] +import com.google.cloud.vectorsearch.v1beta.CollectionName; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest; +import com.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse; +import com.google.cloud.vectorsearch.v1beta.VectorSearchServiceClient; + +public class SyncExportDataObjects { + + public static void main(String[] args) throws Exception { + syncExportDataObjects(); + } + + public static void syncExportDataObjects() 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 (VectorSearchServiceClient vectorSearchServiceClient = VectorSearchServiceClient.create()) { + ExportDataObjectsRequest request = + ExportDataObjectsRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + ExportDataObjectsResponse response = + vectorSearchServiceClient.exportDataObjectsAsync(request).get(); + } + } +} +// [END vectorsearch_v1beta_generated_VectorSearchService_ExportDataObjects_sync] diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 04d07aad294f..03957963db13 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.74.0 + 26.75.0 pom import @@ -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.81.0 + 2.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.81.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-intelligence/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.82.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 fefba63c3a8f..42a69cbbef22 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.74.0 + 26.75.0 pom import @@ -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.84.0 + 0.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.84.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.85.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.85.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 47ca22e8256a..d233617b6eb7 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.82.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-stitcher/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.83.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 4780c0961879..d148afa0a725 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.74.0 + 26.75.0 pom import @@ -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.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.81.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-transcoder/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.82.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 695615a3e12b..26acc68ae832 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.80.0 + 3.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.80.0' +implementation 'com.google.cloud:google-cloud-vision:3.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vision/latest/overview [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.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.81.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 0f5d069344b5..b467cef4b776 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 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-visionai:0.39.0' +implementation 'com.google.cloud:google-cloud-visionai:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.40.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-visionai/latest/overview [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.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.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-vmmigration/README.md b/java-vmmigration/README.md index 83e5981e4e90..0717182cc028 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.82.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmmigration/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.83.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 8c158084bb3b..37ca547498ca 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 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-vmwareengine:0.76.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.77.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmwareengine/latest/overview [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.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.77.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 86be9c5459de..db0e38a85bbd 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.83.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vpcaccess/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.84.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 375e2f60f71c..5e1e1adb737f 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.81.0 + 2.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.81.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-webrisk/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.82.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 16b6867e701a..35f343690d03 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.82.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-websecurityscanner/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.83.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 8ecce94690b3..54c18275cd3f 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.74.0 + 26.75.0 pom import @@ -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.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.82.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflow-executions/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.83.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 6cdccdb20ba7..94cd7fdea937 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.82.0' +implementation 'com.google.cloud:google-cloud-workflows:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflows/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.83.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 78688d011e06..b672e951c515 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.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 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-workspaceevents:0.46.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.47.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workspaceevents/latest/overview [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.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/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-workstations/README.md b/java-workstations/README.md index 9269f5bd15fb..1e1f7649b0d1 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.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.70.0' +implementation 'com.google.cloud:google-cloud-workstations:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.71.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workstations/latest/overview [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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.71.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 0c28890981e6e5a0a5232ccacda2a38d22c523f1 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sun, 1 Feb 2026 03:00:33 +0000 Subject: [PATCH 05/12] chore: Update generation configuration at Sun Feb 1 03:00:25 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 9f3007984d09..f34b88ab3a05 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.66.0 -googleapis_commitish: f0e6fd9528d522d7165ecabafc1f202f2fafdead +googleapis_commitish: c0fcb35628690e9eb15dcefae41c651c67cd050b libraries_bom_version: 26.75.0 # the libraries are ordered with respect to library name, which is From bb890c07fb8b9633a6535662abc53a4d4c0d2cb9 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sun, 1 Feb 2026 04:27:56 +0000 Subject: [PATCH 06/12] chore: generate libraries at Sun Feb 1 03:03:05 UTC 2026 --- .../v1beta/DataAgentServiceClient.java | 27 +- .../v1beta/DataChatServiceClient.java | 27 +- .../reflect-config.json | 54 + .../v1beta/ClarificationMessage.java | 1005 ++++++++++ .../v1beta/ClarificationMessageOrBuilder.java | 97 + .../v1beta/ClarificationQuestion.java | 1637 +++++++++++++++++ .../ClarificationQuestionOrBuilder.java | 174 ++ .../v1beta/DataChatServiceProto.java | 201 +- .../v1beta/DataMessage.java | 8 +- .../v1beta/DataMessageOrBuilder.java | 4 +- .../v1beta/DataResult.java | 694 +++++++ .../v1beta/DataResultOrBuilder.java | 95 + .../v1beta/SystemMessage.java | 354 +++- .../v1beta/SystemMessageOrBuilder.java | 44 + .../v1beta/TextMessage.java | 108 +- .../v1beta/TextMessageOrBuilder.java | 14 + .../v1beta/data_chat_service.proto | 72 +- 17 files changed, 4516 insertions(+), 99 deletions(-) create mode 100644 java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java create mode 100644 java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessageOrBuilder.java create mode 100644 java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java create mode 100644 java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestionOrBuilder.java diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java index 810b66a5a27f..fb82be065dc0 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java @@ -291,7 +291,8 @@ * * *

            ListLocations - *

            Lists information about the supported locations for this service. + *

            Lists information about the supported locations for this service.This method can be called in two ways: + *

            * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

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

            *
              @@ -1937,7 +1938,13 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

              * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

              Sample code: * @@ -1970,7 +1977,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

              * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

              Sample code: * @@ -2004,7 +2017,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

              * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

              Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java index 94cfd93882fe..78f44d77f4ef 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java @@ -197,7 +197,8 @@ * * *

              ListLocations - *

              Lists information about the supported locations for this service. + *

              Lists information about the supported locations for this service.This method can be called in two ways: + *

              * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

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

              *
                @@ -1139,7 +1140,13 @@ public final UnaryCallable queryDataCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

                * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

                Sample code: * @@ -1172,7 +1179,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

                * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

                Sample code: * @@ -1206,7 +1219,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

                * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

                Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json index 584f27b28f5b..e33156928b23 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json @@ -818,6 +818,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$ClarificationQuestionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$SelectionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext", "queryAllDeclaredConstructors": true, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java new file mode 100644 index 000000000000..854442dd2fb7 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *

                + * A message of questions to help clarify the user's query. This is returned
                + * when the system cannot confidently answer the user's question.
                + * 
                + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationMessage} + */ +@com.google.protobuf.Generated +public final class ClarificationMessage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + ClarificationMessageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClarificationMessage"); + } + + // Use ClarificationMessage.newBuilder() to construct. + private ClarificationMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClarificationMessage() { + questions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder.class); + } + + public static final int QUESTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + questions_; + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getQuestionsList() { + return questions_; + } + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + getQuestionsOrBuilderList() { + return questions_; + } + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getQuestionsCount() { + return questions_.size(); + } + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(int index) { + return questions_.get(index); + } + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder + getQuestionsOrBuilder(int index) { + return questions_.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 < questions_.size(); i++) { + output.writeMessage(1, questions_.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 < questions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, questions_.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.geminidataanalytics.v1beta.ClarificationMessage)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage other = + (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) obj; + + if (!getQuestionsList().equals(other.getQuestionsList())) 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 (getQuestionsCount() > 0) { + hash = (37 * hash) + QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getQuestionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage 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.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage 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.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.geminidataanalytics.v1beta.ClarificationMessage 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * A message of questions to help clarify the user's query. This is returned
                +   * when the system cannot confidently answer the user's question.
                +   * 
                + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + } else { + questions_ = null; + questionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage build() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage result = + new com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage result) { + if (questionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + questions_ = java.util.Collections.unmodifiableList(questions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.questions_ = questions_; + } else { + result.questions_ = questionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance()) + return this; + if (questionsBuilder_ == null) { + if (!other.questions_.isEmpty()) { + if (questions_.isEmpty()) { + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQuestionsIsMutable(); + questions_.addAll(other.questions_); + } + onChanged(); + } + } else { + if (!other.questions_.isEmpty()) { + if (questionsBuilder_.isEmpty()) { + questionsBuilder_.dispose(); + questionsBuilder_ = null; + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000001); + questionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetQuestionsFieldBuilder() + : null; + } else { + questionsBuilder_.addAllMessages(other.questions_); + } + } + } + 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.geminidataanalytics.v1beta.ClarificationQuestion m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.parser(), + extensionRegistry); + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(m); + } else { + questionsBuilder_.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 + questions_ = java.util.Collections.emptyList(); + + private void ensureQuestionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + questions_ = + new java.util.ArrayList< + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion>(questions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + questionsBuilder_; + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getQuestionsList() { + if (questionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(questions_); + } else { + return questionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getQuestionsCount() { + if (questionsBuilder_ == null) { + return questions_.size(); + } else { + return questionsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions( + int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); + } else { + return questionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuestions( + int index, com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.set(index, value); + onChanged(); + } else { + questionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuestions( + int index, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.set(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addQuestions( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(value); + onChanged(); + } else { + questionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addQuestions( + int index, com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(index, value); + onChanged(); + } else { + questionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addQuestions( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addQuestions( + int index, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllQuestions( + java.lang.Iterable< + ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion> + values) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, questions_); + onChanged(); + } else { + questionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQuestions() { + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + questionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeQuestions(int index) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.remove(index); + onChanged(); + } else { + questionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder + getQuestionsBuilder(int index) { + return internalGetQuestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder + getQuestionsOrBuilder(int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); + } else { + return questionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + getQuestionsOrBuilderList() { + if (questionsBuilder_ != null) { + return questionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(questions_); + } + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder + addQuestionsBuilder() { + return internalGetQuestionsFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .getDefaultInstance()); + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder + addQuestionsBuilder(int index) { + return internalGetQuestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .getDefaultInstance()); + } + + /** + * + * + *
                +     * Required. A batch of clarification questions to ask the user.
                +     * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getQuestionsBuilderList() { + return internalGetQuestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + internalGetQuestionsFieldBuilder() { + if (questionsBuilder_ == null) { + questionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder>( + questions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + questions_ = null; + } + return questionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + private static final com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClarificationMessage 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.geminidataanalytics.v1beta.ClarificationMessage + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessageOrBuilder.java new file mode 100644 index 000000000000..758ca5568c9a --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessageOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +@com.google.protobuf.Generated +public interface ClarificationMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getQuestionsList(); + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(int index); + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getQuestionsCount(); + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + getQuestionsOrBuilderList(); + + /** + * + * + *
                +   * Required. A batch of clarification questions to ask the user.
                +   * 
                + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder getQuestionsOrBuilder( + int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java new file mode 100644 index 000000000000..b30171fb97e5 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java @@ -0,0 +1,1637 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
                + * Represents a single question to the user to help clarify their query.
                + * 
                + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationQuestion} + */ +@com.google.protobuf.Generated +public final class ClarificationQuestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + ClarificationQuestionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClarificationQuestion"); + } + + // Use ClarificationQuestion.newBuilder() to construct. + private ClarificationQuestion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClarificationQuestion() { + question_ = ""; + selectionMode_ = 0; + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + clarificationQuestionType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder.class); + } + + /** + * + * + *
                +   * The selection mode for the clarification question.
                +   * 
                + * + * Protobuf enum {@code + * google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode} + */ + public enum SelectionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Unspecified selection mode.
                +     * 
                + * + * SELECTION_MODE_UNSPECIFIED = 0; + */ + SELECTION_MODE_UNSPECIFIED(0), + /** + * + * + *
                +     * The user can select only one option.
                +     * 
                + * + * SINGLE_SELECT = 1; + */ + SINGLE_SELECT(1), + /** + * + * + *
                +     * The user can select multiple options.
                +     * 
                + * + * MULTI_SELECT = 2; + */ + MULTI_SELECT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SelectionMode"); + } + + /** + * + * + *
                +     * Unspecified selection mode.
                +     * 
                + * + * SELECTION_MODE_UNSPECIFIED = 0; + */ + public static final int SELECTION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * The user can select only one option.
                +     * 
                + * + * SINGLE_SELECT = 1; + */ + public static final int SINGLE_SELECT_VALUE = 1; + + /** + * + * + *
                +     * The user can select multiple options.
                +     * 
                + * + * MULTI_SELECT = 2; + */ + public static final int MULTI_SELECT_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 SelectionMode 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 SelectionMode forNumber(int value) { + switch (value) { + case 0: + return SELECTION_MODE_UNSPECIFIED; + case 1: + return SINGLE_SELECT; + case 2: + return MULTI_SELECT; + 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 SelectionMode findValueByNumber(int number) { + return SelectionMode.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SelectionMode[] VALUES = values(); + + public static SelectionMode 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 SelectionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode) + } + + /** + * + * + *
                +   * The type of clarification question.
                +   * This enum may be extended with new values in the future.
                +   * 
                + * + * Protobuf enum {@code + * google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType} + */ + public enum ClarificationQuestionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Unspecified clarification question type.
                +     * 
                + * + * CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; + */ + CLARIFICATION_QUESTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
                +     * The clarification question is for filter values.
                +     * 
                + * + * FILTER_VALUES = 1; + */ + FILTER_VALUES(1), + /** + * + * + *
                +     * The clarification question is for data fields. This is a generic term
                +     * encompassing SQL columns, Looker fields (dimensions/measures), or
                +     * nested data structure properties.
                +     * 
                + * + * FIELDS = 2; + */ + FIELDS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClarificationQuestionType"); + } + + /** + * + * + *
                +     * Unspecified clarification question type.
                +     * 
                + * + * CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; + */ + public static final int CLARIFICATION_QUESTION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * The clarification question is for filter values.
                +     * 
                + * + * FILTER_VALUES = 1; + */ + public static final int FILTER_VALUES_VALUE = 1; + + /** + * + * + *
                +     * The clarification question is for data fields. This is a generic term
                +     * encompassing SQL columns, Looker fields (dimensions/measures), or
                +     * nested data structure properties.
                +     * 
                + * + * FIELDS = 2; + */ + public static final int FIELDS_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 ClarificationQuestionType 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 ClarificationQuestionType forNumber(int value) { + switch (value) { + case 0: + return CLARIFICATION_QUESTION_TYPE_UNSPECIFIED; + case 1: + return FILTER_VALUES; + case 2: + return FIELDS; + 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 ClarificationQuestionType findValueByNumber(int number) { + return ClarificationQuestionType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ClarificationQuestionType[] VALUES = values(); + + public static ClarificationQuestionType 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 ClarificationQuestionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType) + } + + public static final int QUESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object question_ = ""; + + /** + * + * + *
                +   * Required. The natural language question to ask the user.
                +   * 
                + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The question. + */ + @java.lang.Override + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + 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(); + question_ = s; + return s; + } + } + + /** + * + * + *
                +   * Required. The natural language question to ask the user.
                +   * 
                + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for question. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELECTION_MODE_FIELD_NUMBER = 2; + private int selectionMode_ = 0; + + /** + * + * + *
                +   * Required. The selection mode for this question.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for selectionMode. + */ + @java.lang.Override + public int getSelectionModeValue() { + return selectionMode_; + } + + /** + * + * + *
                +   * Required. The selection mode for this question.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The selectionMode. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + getSelectionMode() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode result = + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode.forNumber( + selectionMode_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + .UNRECOGNIZED + : result; + } + + public static final int OPTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList options_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * Required. A list of distinct options for the user to choose from.
                +   * The number of options is limited to a maximum of 5.
                +   * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the options. + */ + public com.google.protobuf.ProtocolStringList getOptionsList() { + return options_; + } + + /** + * + * + *
                +   * Required. A list of distinct options for the user to choose from.
                +   * The number of options is limited to a maximum of 5.
                +   * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of options. + */ + public int getOptionsCount() { + return options_.size(); + } + + /** + * + * + *
                +   * Required. A list of distinct options for the user to choose from.
                +   * The number of options is limited to a maximum of 5.
                +   * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The options at the given index. + */ + public java.lang.String getOptions(int index) { + return options_.get(index); + } + + /** + * + * + *
                +   * Required. A list of distinct options for the user to choose from.
                +   * The number of options is limited to a maximum of 5.
                +   * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the options at the given index. + */ + public com.google.protobuf.ByteString getOptionsBytes(int index) { + return options_.getByteString(index); + } + + public static final int CLARIFICATION_QUESTION_TYPE_FIELD_NUMBER = 4; + private int clarificationQuestionType_ = 0; + + /** + * + * + *
                +   * Optional. The type of clarification question.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clarificationQuestionType. + */ + @java.lang.Override + public int getClarificationQuestionTypeValue() { + return clarificationQuestionType_; + } + + /** + * + * + *
                +   * Optional. The type of clarification question.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarificationQuestionType. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + getClarificationQuestionType() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + result = + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.forNumber(clarificationQuestionType_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.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.GeneratedMessage.isStringEmpty(question_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, question_); + } + if (selectionMode_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + .SELECTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, selectionMode_); + } + for (int i = 0; i < options_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, options_.getRaw(i)); + } + if (clarificationQuestionType_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.CLARIFICATION_QUESTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, clarificationQuestionType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, question_); + } + if (selectionMode_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + .SELECTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, selectionMode_); + } + { + int dataSize = 0; + for (int i = 0; i < options_.size(); i++) { + dataSize += computeStringSizeNoTag(options_.getRaw(i)); + } + size += dataSize; + size += 1 * getOptionsList().size(); + } + if (clarificationQuestionType_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.CLARIFICATION_QUESTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, clarificationQuestionType_); + } + 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.geminidataanalytics.v1beta.ClarificationQuestion)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion other = + (com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) obj; + + if (!getQuestion().equals(other.getQuestion())) return false; + if (selectionMode_ != other.selectionMode_) return false; + if (!getOptionsList().equals(other.getOptionsList())) return false; + if (clarificationQuestionType_ != other.clarificationQuestionType_) 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) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + hash = (37 * hash) + SELECTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + selectionMode_; + if (getOptionsCount() > 0) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptionsList().hashCode(); + } + hash = (37 * hash) + CLARIFICATION_QUESTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + clarificationQuestionType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion 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.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion 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.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.geminidataanalytics.v1beta.ClarificationQuestion 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Represents a single question to the user to help clarify their query.
                +   * 
                + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationQuestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder.class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + question_ = ""; + selectionMode_ = 0; + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + clarificationQuestionType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion build() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion result = + new com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.question_ = question_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.selectionMode_ = selectionMode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + options_.makeImmutable(); + result.options_ = options_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clarificationQuestionType_ = clarificationQuestionType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.getDefaultInstance()) + return this; + if (!other.getQuestion().isEmpty()) { + question_ = other.question_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.selectionMode_ != 0) { + setSelectionModeValue(other.getSelectionModeValue()); + } + if (!other.options_.isEmpty()) { + if (options_.isEmpty()) { + options_ = other.options_; + bitField0_ |= 0x00000004; + } else { + ensureOptionsIsMutable(); + options_.addAll(other.options_); + } + onChanged(); + } + if (other.clarificationQuestionType_ != 0) { + setClarificationQuestionTypeValue(other.getClarificationQuestionTypeValue()); + } + 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: + { + question_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + selectionMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOptionsIsMutable(); + options_.add(s); + break; + } // case 26 + case 32: + { + clarificationQuestionType_ = 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 java.lang.Object question_ = ""; + + /** + * + * + *
                +     * Required. The natural language question to ask the user.
                +     * 
                + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The question. + */ + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Required. The natural language question to ask the user.
                +     * 
                + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for question. + */ + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Required. The natural language question to ask the user.
                +     * 
                + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The question to set. + * @return This builder for chaining. + */ + public Builder setQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The natural language question to ask the user.
                +     * 
                + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuestion() { + question_ = getDefaultInstance().getQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The natural language question to ask the user.
                +     * 
                + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for question to set. + * @return This builder for chaining. + */ + public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int selectionMode_ = 0; + + /** + * + * + *
                +     * Required. The selection mode for this question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for selectionMode. + */ + @java.lang.Override + public int getSelectionModeValue() { + return selectionMode_; + } + + /** + * + * + *
                +     * Required. The selection mode for this question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for selectionMode to set. + * @return This builder for chaining. + */ + public Builder setSelectionModeValue(int value) { + selectionMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The selection mode for this question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The selectionMode. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + getSelectionMode() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode result = + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode.forNumber( + selectionMode_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Required. The selection mode for this question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The selectionMode to set. + * @return This builder for chaining. + */ + public Builder setSelectionMode( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + selectionMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. The selection mode for this question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSelectionMode() { + bitField0_ = (bitField0_ & ~0x00000002); + selectionMode_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList options_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOptionsIsMutable() { + if (!options_.isModifiable()) { + options_ = new com.google.protobuf.LazyStringArrayList(options_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
                +     * Required. A list of distinct options for the user to choose from.
                +     * The number of options is limited to a maximum of 5.
                +     * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the options. + */ + public com.google.protobuf.ProtocolStringList getOptionsList() { + options_.makeImmutable(); + return options_; + } + + /** + * + * + *
                +     * Required. A list of distinct options for the user to choose from.
                +     * The number of options is limited to a maximum of 5.
                +     * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of options. + */ + public int getOptionsCount() { + return options_.size(); + } + + /** + * + * + *
                +     * Required. A list of distinct options for the user to choose from.
                +     * The number of options is limited to a maximum of 5.
                +     * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The options at the given index. + */ + public java.lang.String getOptions(int index) { + return options_.get(index); + } + + /** + * + * + *
                +     * Required. A list of distinct options for the user to choose from.
                +     * The number of options is limited to a maximum of 5.
                +     * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the options at the given index. + */ + public com.google.protobuf.ByteString getOptionsBytes(int index) { + return options_.getByteString(index); + } + + /** + * + * + *
                +     * Required. A list of distinct options for the user to choose from.
                +     * The number of options is limited to a maximum of 5.
                +     * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The options to set. + * @return This builder for chaining. + */ + public Builder setOptions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionsIsMutable(); + options_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A list of distinct options for the user to choose from.
                +     * The number of options is limited to a maximum of 5.
                +     * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The options to add. + * @return This builder for chaining. + */ + public Builder addOptions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionsIsMutable(); + options_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A list of distinct options for the user to choose from.
                +     * The number of options is limited to a maximum of 5.
                +     * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The options to add. + * @return This builder for chaining. + */ + public Builder addAllOptions(java.lang.Iterable values) { + ensureOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, options_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A list of distinct options for the user to choose from.
                +     * The number of options is limited to a maximum of 5.
                +     * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOptions() { + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Required. A list of distinct options for the user to choose from.
                +     * The number of options is limited to a maximum of 5.
                +     * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the options to add. + * @return This builder for chaining. + */ + public Builder addOptionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOptionsIsMutable(); + options_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int clarificationQuestionType_ = 0; + + /** + * + * + *
                +     * Optional. The type of clarification question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clarificationQuestionType. + */ + @java.lang.Override + public int getClarificationQuestionTypeValue() { + return clarificationQuestionType_; + } + + /** + * + * + *
                +     * Optional. The type of clarification question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for clarificationQuestionType to set. + * @return This builder for chaining. + */ + public Builder setClarificationQuestionTypeValue(int value) { + clarificationQuestionType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The type of clarification question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarificationQuestionType. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType + getClarificationQuestionType() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + result = + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.forNumber(clarificationQuestionType_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Optional. The type of clarification question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The clarificationQuestionType to set. + * @return This builder for chaining. + */ + public Builder setClarificationQuestionType( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + clarificationQuestionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The type of clarification question.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearClarificationQuestionType() { + bitField0_ = (bitField0_ & ~0x00000008); + clarificationQuestionType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + private static final com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClarificationQuestion 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.geminidataanalytics.v1beta.ClarificationQuestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestionOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestionOrBuilder.java new file mode 100644 index 000000000000..4c0b62efd131 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestionOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +@com.google.protobuf.Generated +public interface ClarificationQuestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Required. The natural language question to ask the user.
                +   * 
                + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The question. + */ + java.lang.String getQuestion(); + + /** + * + * + *
                +   * Required. The natural language question to ask the user.
                +   * 
                + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for question. + */ + com.google.protobuf.ByteString getQuestionBytes(); + + /** + * + * + *
                +   * Required. The selection mode for this question.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for selectionMode. + */ + int getSelectionModeValue(); + + /** + * + * + *
                +   * Required. The selection mode for this question.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The selectionMode. + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + getSelectionMode(); + + /** + * + * + *
                +   * Required. A list of distinct options for the user to choose from.
                +   * The number of options is limited to a maximum of 5.
                +   * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the options. + */ + java.util.List getOptionsList(); + + /** + * + * + *
                +   * Required. A list of distinct options for the user to choose from.
                +   * The number of options is limited to a maximum of 5.
                +   * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of options. + */ + int getOptionsCount(); + + /** + * + * + *
                +   * Required. A list of distinct options for the user to choose from.
                +   * The number of options is limited to a maximum of 5.
                +   * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The options at the given index. + */ + java.lang.String getOptions(int index); + + /** + * + * + *
                +   * Required. A list of distinct options for the user to choose from.
                +   * The number of options is limited to a maximum of 5.
                +   * 
                + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the options at the given index. + */ + com.google.protobuf.ByteString getOptionsBytes(int index); + + /** + * + * + *
                +   * Optional. The type of clarification question.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clarificationQuestionType. + */ + int getClarificationQuestionTypeValue(); + + /** + * + * + *
                +   * Optional. The type of clarification question.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarificationQuestionType. + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + getClarificationQuestionType(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java index d542da82c0fc..317d05bdbfc7 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java @@ -172,6 +172,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -298,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\"%\n" + "\013UserMessage\022\016\n" + "\004text\030\001 \001(\tH\000B\006\n" - + "\004kind\"\310\004\n\r" + + "\004kind\"\245\005\n\r" + "SystemMessage\022D\n" + "\004text\030\001" + " \001(\01324.google.cloud.geminidataanalytics.v1beta.TextMessageH\000\022H\n" @@ -314,14 +322,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "minidataanalytics.v1beta.ErrorMessageH\000\022W\n" + "\017example_queries\030\r" + " \001(\01327.google.cloud." - + "geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022\025\n" + + "geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022[\n\r" + + "clarification\030\016 \001(\0132=.google" + + ".cloud.geminidataanalytics.v1beta.ClarificationMessageB\003\340A\001H\000\022\025\n" + "\010group_id\030\014 \001(\005H\001\210\001\001B\006\n" + "\004kindB\013\n" - + "\t_group_id\"\316\001\n" + + "\t_group_id\"\356\001\n" + "\013TextMessage\022\022\n" + "\005parts\030\001 \003(\tB\003\340A\001\022U\n" - + "\ttext_type\030\002 \001(\0162=.google.clo" - + "ud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\"T\n" + + "\ttext_type\030\002 \001(\016" + + "2=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\022\036\n" + + "\021thought_signature\030\003 \001(\014B\003\340A\001\"T\n" + "\010TextType\022\031\n" + "\025TEXT_TYPE_UNSPECIFIED\020\000\022\022\n" + "\016FINAL_RESPONSE\020\001\022\013\n" @@ -336,46 +347,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013SchemaQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\"]\n" + "\014SchemaResult\022M\n" - + "\013datasources\030\001 \003(\01323.google.clou" - + "d.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n" + + "\013datasources\030\001 \003(\01323.google" + + ".cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n" + "\013DataMessage\022C\n" - + "\005query\030\001 \001(\01322.go" - + "ogle.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r" + + "\005query\030\001 \001(\013" + + "22.google.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r" + "generated_sql\030\002 \001(\tH\000\022E\n" + "\006result\030\003" + " \001(\01323.google.cloud.geminidataanalytics.v1beta.DataResultH\000\022Z\n" - + "\026generated_looker_query\030\004" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n" - + "\r" - + "big_query_job\030\005" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\000B\006\n" + + "\026generated_looker_query\030\004 \001(\01324.google.cloud.ge" + + "minidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n\r" + + "big_query_job\030\005 \001(\01324.google.cloud" + + ".geminidataanalytics.v1beta.BigQueryJobH\000B\006\n" + "\004kind\"\337\001\n" + "\tDataQuery\022K\n" - + "\006looker\030\004 \001(\01324.goo" - + "gle.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n" + + "\006looker\030\004 \001(\0132" + + "4.google.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022M\n" - + "\013datasources\030\002 \003(\01323" - + ".google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n" - + "query_type\"\221\001\n\n" + + "\013datasources\030\002 " + + "\003(\01323.google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n" + + "query_type\"\307\001\n\n" + "DataResult\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022D\n" - + "\006schema\030\005 \001(\013" - + "2/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" - + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n" + + "\006schema\030\005" + + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" + + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\0224\n" + + "\016formatted_data\030\006" + + " \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n" + "\013BigQueryJob\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006job_id\030\002 \001(\tB\003\340A\002\022\025\n" + "\010location\030\005 \001(\tB\003\340A\001\022_\n" - + "\021destination_table\030\003 \001(\0132?.google.cloud.geminidataanal" - + "ytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" - + "\006schema\030\007" - + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n" + + "\021destination_table\030\003 \001(\0132?.google.c" + + "loud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" + + "\006schema\030\007 \001(\0132/.go" + + "ogle.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n" + "\017AnalysisMessage\022G\n" - + "\005query\030\001 \001(\01326.google.cloud" - + ".geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" - + "\016progress_event\030\002 \001(\01326.google.clo" - + "ud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + + "\005query\030\001" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" + + "\016progress_event\030\002" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + "\004kind\"F\n\r" + "AnalysisQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\036\n" @@ -394,61 +406,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005error\030\013 \001(\tH\000B\006\n" + "\004kind\"\244\001\n" + "\014ChartMessage\022D\n" - + "\005query\030\001" - + " \001(\01323.google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n" - + "\006result\030\002" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.ChartResultH\000B\006\n" + + "\005query\030\001 \001(\01323." + + "google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n" + + "\006result\030\002 \001(\01324.google.cl" + + "oud.geminidataanalytics.v1beta.ChartResultH\000B\006\n" + "\004kind\"F\n\n" + "ChartQuery\022\031\n" + "\014instructions\030\001 \001(\tB\003\340A\001\022\035\n" + "\020data_result_name\030\002 \001(\tB\003\340A\001\"\203\001\n" + "\013ChartResult\0221\n" + "\013vega_config\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022A\n" - + "\005image\030\003 \001(\0132-.google.clo" - + "ud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n" + + "\005image\030\003" + + " \001(\0132-.google.cloud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n" + "\014ErrorMessage\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\003\"e\n" + + "\004text\030\001 \001(\tB\003\340A\003\"\363\003\n" + + "\025ClarificationQuestion\022\025\n" + + "\010question\030\001 \001(\tB\003\340A\002\022i\n" + + "\016selection_mode\030\002 \001(\0162L.google.cloud.geminidataanalytic" + + "s.v1beta.ClarificationQuestion.SelectionModeB\003\340A\002\022\024\n" + + "\007options\030\003 \003(\tB\003\340A\002\022\202\001\n" + + "\033clarification_question_type\030\004 \001(\0162X.google.c" + + "loud.geminidataanalytics.v1beta.Clarific" + + "ationQuestion.ClarificationQuestionTypeB\003\340A\001\"T\n\r" + + "SelectionMode\022\036\n" + + "\032SELECTION_MODE_UNSPECIFIED\020\000\022\021\n\r" + + "SINGLE_SELECT\020\001\022\020\n" + + "\014MULTI_SELECT\020\002\"g\n" + + "\031ClarificationQuestionType\022+\n" + + "\'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED\020\000\022\021\n\r" + + "FILTER_VALUES\020\001\022\n\n" + + "\006FIELDS\020\002\"n\n" + + "\024ClarificationMessage\022V\n" + + "\tquestions\030\001 \003(\0132>" + + ".google.cloud.geminidataanalytics.v1beta.ClarificationQuestionB\003\340A\002\"e\n" + "\016ExampleQueries\022S\n" - + "\017example_queries\030\001 \003(\01325." - + "google.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n" + + "\017example_queries\030\001 \003(\01325.google." + + "cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n" + "\004Blob\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" + "\004data\030\002 \001(\014B\003\340A\0022\256\014\n" + "\017DataChatService\022\251\001\n" - + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google" - + ".cloud.geminidataanalytics.v1beta.Messag" - + "e\"7\202\323\344\223\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" - + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v" - + "1beta.CreateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conver" - + "sation\"q\332A#parent,conversation,conversat" - + "ion_id\202\323\344\223\002E\"5/v1beta/{parent=projects/*" - + "/locations/*}/conversations:\014conversation\022\266\001\n" - + "\022DeleteConversation\022B.google.cloud.geminidataanalytics.v1beta.DeleteConvers" - + "ationRequest\032\026.google.protobuf.Empty\"D\332A" - + "\004name\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n" - + "\017GetConversation\022?.google.cloud.geminidataanalytic" - + "s.v1beta.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conver" - + "sation\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" - + "\021ListConversations\022A.google.cloud.geminidataanalytics.v1beta.ListConversationsRe" - + "quest\032B.google.cloud.geminidataanalytics" - + ".v1beta.ListConversationsResponse\"F\332A\006pa" - + "rent\202\323\344\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n" - + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1" - + "beta.ListMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesR" - + "esponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{paren" - + "t=projects/*/locations/*/conversations/*}/messages\022\300\001\n" - + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta.QueryDataRequ" - + "est\032:.google.cloud.geminidataanalytics.v" - + "1beta.QueryDataResponse\"<\202\323\344\223\0026\"1/v1beta" - + "/{parent=projects/*/locations/*}:queryDa" - + "ta:\001*\032V\312A\"geminidataanalytics.googleapis" - + ".com\322A.https://www.googleapis.com/auth/cloud-platformB\245\002\n" - + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServicePr" - + "otoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;g" - + "eminidataanalyticspb\252\002\'Google.Cloud.Gemi" - + "niDataAnalytics.V1Beta\312\002\'Google\\Cloud\\Ge" - + "miniDataAnalytics\\V1beta\352\002*Google::Cloud" - + "::GeminiDataAnalytics::V1betab\006proto3" + + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google.cloud." + + "geminidataanalytics.v1beta.Message\"7\202\323\344\223" + + "\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" + + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v1beta.C" + + "reateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversation\"" + + "q\332A#parent,conversation,conversation_id\202" + + "\323\344\223\002E\"5/v1beta/{parent=projects/*/locations/*}/conversations:\014conversation\022\266\001\n" + + "\022DeleteConversation\022B.google.cloud.geminid" + + "ataanalytics.v1beta.DeleteConversationRe" + + "quest\032\026.google.protobuf.Empty\"D\332A\004name\202\323" + + "\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n" + + "\017GetConversation\022?.google.cloud.geminidataanalytics.v1bet" + + "a.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversation\"" + + "D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" + + "\021ListConversations\022A.google.cloud.geminidataana" + + "lytics.v1beta.ListConversationsRequest\032B.google.cloud.geminidataanalytics.v1beta" + + ".ListConversationsResponse\"F\332A\006parent\202\323\344" + + "\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n" + + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1beta.Li" + + "stMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse" + + "\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{parent=proje" + + "cts/*/locations/*/conversations/*}/messages\022\300\001\n" + + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\032:.g" + + "oogle.cloud.geminidataanalytics.v1beta.Q" + + "ueryDataResponse\"<\202\323\344\223\0026\"1/v1beta/{paren" + + "t=projects/*/locations/*}:queryData:\001*\032V" + + "\312A\"geminidataanalytics.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-platformB\245\002\n" + + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServiceProtoP\001Z]" + + "cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminida" + + "taanalyticspb\252\002\'Google.Cloud.GeminiDataA" + + "nalytics.V1Beta\312\002\'Google\\Cloud\\GeminiDat" + + "aAnalytics\\V1beta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -632,6 +662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Chart", "Error", "ExampleQueries", + "Clarification", "GroupId", "Kind", }); @@ -641,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_descriptor, new java.lang.String[] { - "Parts", "TextType", + "Parts", "TextType", "ThoughtSignature", }); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_descriptor = getDescriptor().getMessageType(16); @@ -689,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_descriptor, new java.lang.String[] { - "Name", "Schema", "Data", + "Name", "Schema", "Data", "FormattedData", }); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_descriptor = getDescriptor().getMessageType(22); @@ -765,8 +796,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Text", }); - internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor = getDescriptor().getMessageType(30); + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor, + new java.lang.String[] { + "Question", "SelectionMode", "Options", "ClarificationQuestionType", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor, + new java.lang.String[] { + "Questions", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor = + getDescriptor().getMessageType(32); internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor, @@ -774,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExampleQueries", }); internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(33); internal_static_google_cloud_geminidataanalytics_v1beta_Blob_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java index 3a08a4867396..57628568f0b6 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java @@ -324,7 +324,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Override @@ -346,7 +346,7 @@ public boolean hasGeneratedLookerQuery() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return The generatedLookerQuery. */ @java.lang.Override @@ -1513,7 +1513,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Override @@ -1535,7 +1535,7 @@ public boolean hasGeneratedLookerQuery() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return The generatedLookerQuery. */ @java.lang.Override diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java index 23db9f821035..4bd27bac020a 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java @@ -152,7 +152,7 @@ public interface DataMessageOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface DataMessageOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return The generatedLookerQuery. */ @java.lang.Deprecated diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java index 610859d83b49..bcdfb61d82b8 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java @@ -54,6 +54,7 @@ private DataResult(com.google.protobuf.GeneratedMessage.Builder builder) { private DataResult() { name_ = ""; data_ = java.util.Collections.emptyList(); + formattedData_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -284,6 +285,122 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder(int index) { return data_.get(index); } + public static final int FORMATTED_DATA_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List formattedData_; + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFormattedDataList() { + return formattedData_; + } + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFormattedDataOrBuilderList() { + return formattedData_; + } + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFormattedDataCount() { + return formattedData_.size(); + } + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct getFormattedData(int index) { + return formattedData_.get(index); + } + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index) { + return formattedData_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -307,6 +424,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getSchema()); } + for (int i = 0; i < formattedData_.size(); i++) { + output.writeMessage(6, formattedData_.get(i)); + } getUnknownFields().writeTo(output); } @@ -325,6 +445,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema()); } + for (int i = 0; i < formattedData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, formattedData_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -347,6 +470,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSchema().equals(other.getSchema())) return false; } if (!getDataList().equals(other.getDataList())) return false; + if (!getFormattedDataList().equals(other.getFormattedDataList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,6 +492,10 @@ public int hashCode() { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getDataList().hashCode(); } + if (getFormattedDataCount() > 0) { + hash = (37 * hash) + FORMATTED_DATA_FIELD_NUMBER; + hash = (53 * hash) + getFormattedDataList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -512,6 +640,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSchemaFieldBuilder(); internalGetDataFieldBuilder(); + internalGetFormattedDataFieldBuilder(); } } @@ -532,6 +661,13 @@ public Builder clear() { dataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); + if (formattedDataBuilder_ == null) { + formattedData_ = java.util.Collections.emptyList(); + } else { + formattedData_ = null; + formattedDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -578,6 +714,15 @@ private void buildPartialRepeatedFields( } else { result.data_ = dataBuilder_.build(); } + if (formattedDataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + formattedData_ = java.util.Collections.unmodifiableList(formattedData_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.formattedData_ = formattedData_; + } else { + result.formattedData_ = formattedDataBuilder_.build(); + } } private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.DataResult result) { @@ -641,6 +786,33 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.DataResult } } } + if (formattedDataBuilder_ == null) { + if (!other.formattedData_.isEmpty()) { + if (formattedData_.isEmpty()) { + formattedData_ = other.formattedData_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFormattedDataIsMutable(); + formattedData_.addAll(other.formattedData_); + } + onChanged(); + } + } else { + if (!other.formattedData_.isEmpty()) { + if (formattedDataBuilder_.isEmpty()) { + formattedDataBuilder_.dispose(); + formattedDataBuilder_ = null; + formattedData_ = other.formattedData_; + bitField0_ = (bitField0_ & ~0x00000008); + formattedDataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFormattedDataFieldBuilder() + : null; + } else { + formattedDataBuilder_.addAllMessages(other.formattedData_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -691,6 +863,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 42 + case 50: + { + com.google.protobuf.Struct m = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.add(m); + } else { + formattedDataBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1473,6 +1657,516 @@ public java.util.List getDataBuilderList() { return dataBuilder_; } + private java.util.List formattedData_ = + java.util.Collections.emptyList(); + + private void ensureFormattedDataIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + formattedData_ = new java.util.ArrayList(formattedData_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + formattedDataBuilder_; + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFormattedDataList() { + if (formattedDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(formattedData_); + } else { + return formattedDataBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFormattedDataCount() { + if (formattedDataBuilder_ == null) { + return formattedData_.size(); + } else { + return formattedDataBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct getFormattedData(int index) { + if (formattedDataBuilder_ == null) { + return formattedData_.get(index); + } else { + return formattedDataBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFormattedData(int index, com.google.protobuf.Struct value) { + if (formattedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFormattedDataIsMutable(); + formattedData_.set(index, value); + onChanged(); + } else { + formattedDataBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFormattedData(int index, com.google.protobuf.Struct.Builder builderForValue) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.set(index, builderForValue.build()); + onChanged(); + } else { + formattedDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFormattedData(com.google.protobuf.Struct value) { + if (formattedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFormattedDataIsMutable(); + formattedData_.add(value); + onChanged(); + } else { + formattedDataBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFormattedData(int index, com.google.protobuf.Struct value) { + if (formattedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFormattedDataIsMutable(); + formattedData_.add(index, value); + onChanged(); + } else { + formattedDataBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFormattedData(com.google.protobuf.Struct.Builder builderForValue) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.add(builderForValue.build()); + onChanged(); + } else { + formattedDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFormattedData(int index, com.google.protobuf.Struct.Builder builderForValue) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.add(index, builderForValue.build()); + onChanged(); + } else { + formattedDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFormattedData( + java.lang.Iterable values) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, formattedData_); + onChanged(); + } else { + formattedDataBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFormattedData() { + if (formattedDataBuilder_ == null) { + formattedData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + formattedDataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFormattedData(int index) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.remove(index); + onChanged(); + } else { + formattedDataBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getFormattedDataBuilder(int index) { + return internalGetFormattedDataFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index) { + if (formattedDataBuilder_ == null) { + return formattedData_.get(index); + } else { + return formattedDataBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFormattedDataOrBuilderList() { + if (formattedDataBuilder_ != null) { + return formattedDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(formattedData_); + } + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder addFormattedDataBuilder() { + return internalGetFormattedDataFieldBuilder() + .addBuilder(com.google.protobuf.Struct.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder addFormattedDataBuilder(int index) { + return internalGetFormattedDataFieldBuilder() + .addBuilder(index, com.google.protobuf.Struct.getDefaultInstance()); + } + + /** + * + * + *
                +     * Optional. Formatted representation of the data, when applicable.
                +     * Each row is a struct that directly corresponds to the row at the same index
                +     * within the `data` field. Its values are string representations of the
                +     * original data, formatted according to data source specifications (e.g.,
                +     * "$1,234.56" for currency). Columns without formatting will default to
                +     * their raw value representation. If no columns have formatting rules, this
                +     * field will be empty.
                +     * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFormattedDataBuilderList() { + return internalGetFormattedDataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetFormattedDataFieldBuilder() { + if (formattedDataBuilder_ == null) { + formattedDataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + formattedData_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + formattedData_ = null; + } + return formattedDataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.DataResult) } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResultOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResultOrBuilder.java index a6fd0fd4b136..ad6bf7c82f93 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResultOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResultOrBuilder.java @@ -174,4 +174,99 @@ public interface DataResultOrBuilder * */ com.google.protobuf.StructOrBuilder getDataOrBuilder(int index); + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFormattedDataList(); + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.Struct getFormattedData(int index); + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFormattedDataCount(); + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFormattedDataOrBuilderList(); + + /** + * + * + *
                +   * Optional. Formatted representation of the data, when applicable.
                +   * Each row is a struct that directly corresponds to the row at the same index
                +   * within the `data` field. Its values are string representations of the
                +   * original data, formatted according to data source specifications (e.g.,
                +   * "$1,234.56" for currency). Columns without formatting will default to
                +   * their raw value representation. If no columns have formatting rules, this
                +   * field will be empty.
                +   * 
                + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java index 41fc3b1adf7b..f1c6cb865964 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java @@ -87,6 +87,7 @@ public enum KindCase CHART(5), ERROR(6), EXAMPLE_QUERIES(13), + CLARIFICATION(14), KIND_NOT_SET(0); private final int value; @@ -120,6 +121,8 @@ public static KindCase forNumber(int value) { return ERROR; case 13: return EXAMPLE_QUERIES; + case 14: + return CLARIFICATION; case 0: return KIND_NOT_SET; default: @@ -522,6 +525,67 @@ public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries getExampleQuer return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance(); } + public static final int CLARIFICATION_FIELD_NUMBER = 14; + + /** + * + * + *
                +   * Optional. A message containing clarification questions.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clarification field is set. + */ + @java.lang.Override + public boolean hasClarification() { + return kindCase_ == 14; + } + + /** + * + * + *
                +   * Optional. A message containing clarification questions.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarification. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification() { + if (kindCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance(); + } + + /** + * + * + *
                +   * Optional. A message containing clarification questions.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder + getClarificationOrBuilder() { + if (kindCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance(); + } + public static final int GROUP_ID_FIELD_NUMBER = 12; private int groupId_ = 0; @@ -599,6 +663,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (kindCase_ == 13) { output.writeMessage(13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_); } + if (kindCase_ == 14) { + output.writeMessage( + 14, (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_); + } getUnknownFields().writeTo(output); } @@ -646,6 +714,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_); } + if (kindCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -689,6 +762,9 @@ public boolean equals(final java.lang.Object obj) { case 13: if (!getExampleQueries().equals(other.getExampleQueries())) return false; break; + case 14: + if (!getClarification().equals(other.getClarification())) return false; + break; case 0: default: } @@ -736,6 +812,10 @@ public int hashCode() { hash = (37 * hash) + EXAMPLE_QUERIES_FIELD_NUMBER; hash = (53 * hash) + getExampleQueries().hashCode(); break; + case 14: + hash = (37 * hash) + CLARIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getClarification().hashCode(); + break; case 0: default: } @@ -903,6 +983,9 @@ public Builder clear() { if (exampleQueriesBuilder_ != null) { exampleQueriesBuilder_.clear(); } + if (clarificationBuilder_ != null) { + clarificationBuilder_.clear(); + } groupId_ = 0; kindCase_ = 0; kind_ = null; @@ -944,7 +1027,7 @@ public com.google.cloud.geminidataanalytics.v1beta.SystemMessage buildPartial() private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.SystemMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.groupId_ = groupId_; to_bitField0_ |= 0x00000001; } @@ -976,6 +1059,9 @@ private void buildPartialOneofs( if (kindCase_ == 13 && exampleQueriesBuilder_ != null) { result.kind_ = exampleQueriesBuilder_.build(); } + if (kindCase_ == 14 && clarificationBuilder_ != null) { + result.kind_ = clarificationBuilder_.build(); + } } @java.lang.Override @@ -1030,6 +1116,11 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.SystemMessa mergeExampleQueries(other.getExampleQueries()); break; } + case CLARIFICATION: + { + mergeClarification(other.getClarification()); + break; + } case KIND_NOT_SET: { break; @@ -1101,7 +1192,7 @@ public Builder mergeFrom( case 96: { groupId_ = input.readInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 96 case 106: @@ -1111,6 +1202,13 @@ public Builder mergeFrom( kindCase_ = 13; break; } // case 106 + case 114: + { + input.readMessage( + internalGetClarificationFieldBuilder().getBuilder(), extensionRegistry); + kindCase_ = 14; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2704,6 +2802,252 @@ public Builder clearExampleQueries() { return exampleQueriesBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder> + clarificationBuilder_; + + /** + * + * + *
                +     * Optional. A message containing clarification questions.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clarification field is set. + */ + @java.lang.Override + public boolean hasClarification() { + return kindCase_ == 14; + } + + /** + * + * + *
                +     * Optional. A message containing clarification questions.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarification. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification() { + if (clarificationBuilder_ == null) { + if (kindCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + .getDefaultInstance(); + } else { + if (kindCase_ == 14) { + return clarificationBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + .getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Optional. A message containing clarification questions.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClarification( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage value) { + if (clarificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + clarificationBuilder_.setMessage(value); + } + kindCase_ = 14; + return this; + } + + /** + * + * + *
                +     * Optional. A message containing clarification questions.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClarification( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder builderForValue) { + if (clarificationBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + clarificationBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 14; + return this; + } + + /** + * + * + *
                +     * Optional. A message containing clarification questions.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeClarification( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage value) { + if (clarificationBuilder_ == null) { + if (kindCase_ == 14 + && kind_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + .getDefaultInstance()) { + kind_ = + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_) + .mergeFrom(value) + .buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 14) { + clarificationBuilder_.mergeFrom(value); + } else { + clarificationBuilder_.setMessage(value); + } + } + kindCase_ = 14; + return this; + } + + /** + * + * + *
                +     * Optional. A message containing clarification questions.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClarification() { + if (clarificationBuilder_ == null) { + if (kindCase_ == 14) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 14) { + kindCase_ = 0; + kind_ = null; + } + clarificationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Optional. A message containing clarification questions.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder + getClarificationBuilder() { + return internalGetClarificationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Optional. A message containing clarification questions.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder + getClarificationOrBuilder() { + if ((kindCase_ == 14) && (clarificationBuilder_ != null)) { + return clarificationBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + .getDefaultInstance(); + } + } + + /** + * + * + *
                +     * Optional. A message containing clarification questions.
                +     * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder> + internalGetClarificationFieldBuilder() { + if (clarificationBuilder_ == null) { + if (!(kindCase_ == 14)) { + kind_ = + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance(); + } + clarificationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 14; + onChanged(); + return clarificationBuilder_; + } + private int groupId_; /** @@ -2721,7 +3065,7 @@ public Builder clearExampleQueries() { */ @java.lang.Override public boolean hasGroupId() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2759,7 +3103,7 @@ public int getGroupId() { public Builder setGroupId(int value) { groupId_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2778,7 +3122,7 @@ public Builder setGroupId(int value) { * @return This builder for chaining. */ public Builder clearGroupId() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); groupId_ = 0; onChanged(); return this; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java index 90de3e0a8c99..83391c3ef257 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java @@ -291,6 +291,50 @@ public interface SystemMessageOrBuilder */ com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder getExampleQueriesOrBuilder(); + /** + * + * + *
                +   * Optional. A message containing clarification questions.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clarification field is set. + */ + boolean hasClarification(); + + /** + * + * + *
                +   * Optional. A message containing clarification questions.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarification. + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification(); + + /** + * + * + *
                +   * Optional. A message containing clarification questions.
                +   * 
                + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder + getClarificationOrBuilder(); + /** * * diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java index 0b820ddd9c2b..b2732af06477 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java @@ -54,6 +54,7 @@ private TextMessage(com.google.protobuf.GeneratedMessage.Builder builder) { private TextMessage() { parts_ = com.google.protobuf.LazyStringArrayList.emptyList(); textType_ = 0; + thoughtSignature_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -105,7 +106,7 @@ public enum TextType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The text is a thinking plan generated by the thinking tool.
                +     * The text is a thought from the model.
                      * 
                * * THOUGHT = 2; @@ -164,7 +165,7 @@ public enum TextType implements com.google.protobuf.ProtocolMessageEnum { * * *
                -     * The text is a thinking plan generated by the thinking tool.
                +     * The text is a thought from the model.
                      * 
                * * THOUGHT = 2; @@ -384,6 +385,26 @@ public com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextT : result; } + public static final int THOUGHT_SIGNATURE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString thoughtSignature_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
                +   * Optional. An opaque signature for a thought so it can be reused in
                +   * subsequent requests.
                +   * 
                + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thoughtSignature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThoughtSignature() { + return thoughtSignature_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -406,6 +427,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, textType_); } + if (!thoughtSignature_.isEmpty()) { + output.writeBytes(3, thoughtSignature_); + } getUnknownFields().writeTo(output); } @@ -428,6 +452,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, textType_); } + if (!thoughtSignature_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, thoughtSignature_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -446,6 +473,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPartsList().equals(other.getPartsList())) return false; if (textType_ != other.textType_) return false; + if (!getThoughtSignature().equals(other.getThoughtSignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -463,6 +491,8 @@ public int hashCode() { } hash = (37 * hash) + TEXT_TYPE_FIELD_NUMBER; hash = (53 * hash) + textType_; + hash = (37 * hash) + THOUGHT_SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getThoughtSignature().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -606,6 +636,7 @@ public Builder clear() { bitField0_ = 0; parts_ = com.google.protobuf.LazyStringArrayList.emptyList(); textType_ = 0; + thoughtSignature_ = com.google.protobuf.ByteString.EMPTY; return this; } @@ -649,6 +680,9 @@ private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.TextMessa if (((from_bitField0_ & 0x00000002) != 0)) { result.textType_ = textType_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thoughtSignature_ = thoughtSignature_; + } } @java.lang.Override @@ -677,6 +711,9 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.TextMessage if (other.textType_ != 0) { setTextTypeValue(other.getTextTypeValue()); } + if (!other.getThoughtSignature().isEmpty()) { + setThoughtSignature(other.getThoughtSignature()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -716,6 +753,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + thoughtSignature_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1026,6 +1069,67 @@ public Builder clearTextType() { return this; } + private com.google.protobuf.ByteString thoughtSignature_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
                +     * Optional. An opaque signature for a thought so it can be reused in
                +     * subsequent requests.
                +     * 
                + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thoughtSignature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThoughtSignature() { + return thoughtSignature_; + } + + /** + * + * + *
                +     * Optional. An opaque signature for a thought so it can be reused in
                +     * subsequent requests.
                +     * 
                + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The thoughtSignature to set. + * @return This builder for chaining. + */ + public Builder setThoughtSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + thoughtSignature_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. An opaque signature for a thought so it can be reused in
                +     * subsequent requests.
                +     * 
                + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearThoughtSignature() { + bitField0_ = (bitField0_ & ~0x00000004); + thoughtSignature_ = getDefaultInstance().getThoughtSignature(); + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.TextMessage) } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java index 213b06a73a69..93b9e0996ae3 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java @@ -109,4 +109,18 @@ public interface TextMessageOrBuilder * @return The textType. */ com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextType(); + + /** + * + * + *
                +   * Optional. An opaque signature for a thought so it can be reused in
                +   * subsequent requests.
                +   * 
                + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thoughtSignature. + */ + com.google.protobuf.ByteString getThoughtSignature(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto index 0502a6ebeabb..a9cc7ca72374 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto @@ -458,6 +458,10 @@ message SystemMessage { // Optional. A message containing example queries. ExampleQueries example_queries = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A message containing clarification questions. + ClarificationMessage clarification = 14 + [(google.api.field_behavior) = OPTIONAL]; } // Identifies the group that the event belongs to. Similar events are deemed @@ -476,7 +480,7 @@ message TextMessage { // The text is a final response to the user question. FINAL_RESPONSE = 1; - // The text is a thinking plan generated by the thinking tool. + // The text is a thought from the model. THOUGHT = 2; // The text is an informational message about the agent's progress, such as @@ -492,6 +496,10 @@ message TextMessage { // Optional. The type of the text message. TextType text_type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An opaque signature for a thought so it can be reused in + // subsequent requests. + bytes thought_signature = 3 [(google.api.field_behavior) = OPTIONAL]; } // A message produced during schema resolution. @@ -583,6 +591,16 @@ message DataResult { // are represented as lists or structs. repeated google.protobuf.Struct data = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Formatted representation of the data, when applicable. + // Each row is a struct that directly corresponds to the row at the same index + // within the `data` field. Its values are string representations of the + // original data, formatted according to data source specifications (e.g., + // "$1,234.56" for currency). Columns without formatting will default to + // their raw value representation. If no columns have formatting rules, this + // field will be empty. + repeated google.protobuf.Struct formatted_data = 6 + [(google.api.field_behavior) = OPTIONAL]; } // A BigQuery job executed by the system. @@ -731,6 +749,58 @@ message ErrorMessage { string text = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Represents a single question to the user to help clarify their query. +message ClarificationQuestion { + // The selection mode for the clarification question. + enum SelectionMode { + // Unspecified selection mode. + SELECTION_MODE_UNSPECIFIED = 0; + + // The user can select only one option. + SINGLE_SELECT = 1; + + // The user can select multiple options. + MULTI_SELECT = 2; + } + + // The type of clarification question. + // This enum may be extended with new values in the future. + enum ClarificationQuestionType { + // Unspecified clarification question type. + CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; + + // The clarification question is for filter values. + FILTER_VALUES = 1; + + // The clarification question is for data fields. This is a generic term + // encompassing SQL columns, Looker fields (dimensions/measures), or + // nested data structure properties. + FIELDS = 2; + } + + // Required. The natural language question to ask the user. + string question = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The selection mode for this question. + SelectionMode selection_mode = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A list of distinct options for the user to choose from. + // The number of options is limited to a maximum of 5. + repeated string options = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The type of clarification question. + ClarificationQuestionType clarification_question_type = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A message of questions to help clarify the user's query. This is returned +// when the system cannot confidently answer the user's question. +message ClarificationMessage { + // Required. A batch of clarification questions to ask the user. + repeated ClarificationQuestion questions = 1 + [(google.api.field_behavior) = REQUIRED]; +} + // A message containing derived and authored example queries. message ExampleQueries { // Optional. A list of derived and authored example queries, providing From 58e2922623db47724728bb782085325c7c61fe79 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 3 Feb 2026 02:57:21 +0000 Subject: [PATCH 07/12] chore: Update generation configuration at Tue Feb 3 02:57:13 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index f34b88ab3a05..7b4a1f78b6e2 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.66.0 -googleapis_commitish: c0fcb35628690e9eb15dcefae41c651c67cd050b +googleapis_commitish: 85b3f459f91cd08669c27da47d07bb57f6d9aa4d libraries_bom_version: 26.75.0 # the libraries are ordered with respect to library name, which is From 1704435ac2f385460a61dbeb2552d9c34158a3f5 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 3 Feb 2026 04:25:59 +0000 Subject: [PATCH 08/12] chore: generate libraries at Tue Feb 3 02:59:59 UTC 2026 --- .../v1beta1/VertexRagDataServiceClient.java | 3 + .../v1beta1/DeleteRagCorpusRequest.java | 101 + .../DeleteRagCorpusRequestOrBuilder.java | 14 + .../v1beta1/VertexRagDataServiceProto.java | 308 +-- .../v1beta1/vertex_rag_data_service.proto | 4 + .../deleteragcorpus/AsyncDeleteRagCorpus.java | 1 + .../AsyncDeleteRagCorpusLRO.java | 1 + .../deleteragcorpus/SyncDeleteRagCorpus.java | 1 + .../com.google.chat.v1/reflect-config.json | 45 + .../google/chat/v1/CreateMessageRequest.java | 14 +- .../v1/CreateMessageRequestOrBuilder.java | 4 +- .../com/google/chat/v1/ForwardedMetadata.java | 830 +++++++ .../chat/v1/ForwardedMetadataOrBuilder.java | 94 + .../java/com/google/chat/v1/MessageProto.java | 100 +- .../google/chat/v1/QuotedMessageMetadata.java | 976 ++++++++ .../v1/QuotedMessageMetadataOrBuilder.java | 121 + .../google/chat/v1/QuotedMessageSnapshot.java | 2176 +++++++++++++++++ .../v1/QuotedMessageSnapshotOrBuilder.java | 257 ++ .../main/proto/google/chat/v1/message.proto | 76 +- 19 files changed, 4934 insertions(+), 192 deletions(-) create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadata.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadataOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshotOrBuilder.java diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java index 3fd69a65d883..da119a4d11c2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java @@ -1125,6 +1125,7 @@ public final OperationFuture deleteRagCorpusAsyn * DeleteRagCorpusRequest.newBuilder() * .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) * .setForce(true) + * .setForceDelete(true) * .build(); * vertexRagDataServiceClient.deleteRagCorpusAsync(request).get(); * } @@ -1156,6 +1157,7 @@ public final OperationFuture deleteRagCorpusAsyn * DeleteRagCorpusRequest.newBuilder() * .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) * .setForce(true) + * .setForceDelete(true) * .build(); * OperationFuture future = * vertexRagDataServiceClient.deleteRagCorpusOperationCallable().futureCall(request); @@ -1187,6 +1189,7 @@ public final OperationFuture deleteRagCorpusAsyn * DeleteRagCorpusRequest.newBuilder() * .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) * .setForce(true) + * .setForceDelete(true) * .build(); * ApiFuture future = * vertexRagDataServiceClient.deleteRagCorpusCallable().futureCall(request); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java index 7d2fb89cd9a1..f86f8f11d4c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java @@ -153,6 +153,26 @@ public boolean getForce() { return force_; } + public static final int FORCE_DELETE_FIELD_NUMBER = 3; + private boolean forceDelete_ = false; + + /** + * + * + *
                +   * Optional. If set to true, any errors generated by external vector database
                +   * during the deletion will be ignored. The default value is false.
                +   * 
                + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceDelete. + */ + @java.lang.Override + public boolean getForceDelete() { + return forceDelete_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -173,6 +193,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (force_ != false) { output.writeBool(2, force_); } + if (forceDelete_ != false) { + output.writeBool(3, forceDelete_); + } getUnknownFields().writeTo(output); } @@ -188,6 +211,9 @@ public int getSerializedSize() { if (force_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); } + if (forceDelete_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, forceDelete_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -206,6 +232,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getForce() != other.getForce()) return false; + if (getForceDelete() != other.getForceDelete()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -221,6 +248,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (37 * hash) + FORCE_DELETE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceDelete()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -365,6 +394,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; force_ = false; + forceDelete_ = false; return this; } @@ -407,6 +437,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRe if (((from_bitField0_ & 0x00000002) != 0)) { result.force_ = force_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.forceDelete_ = forceDelete_; + } } @java.lang.Override @@ -430,6 +463,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequ if (other.getForce() != false) { setForce(other.getForce()); } + if (other.getForceDelete() != false) { + setForceDelete(other.getForceDelete()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -468,6 +504,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + forceDelete_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -680,6 +722,65 @@ public Builder clearForce() { return this; } + private boolean forceDelete_; + + /** + * + * + *
                +     * Optional. If set to true, any errors generated by external vector database
                +     * during the deletion will be ignored. The default value is false.
                +     * 
                + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceDelete. + */ + @java.lang.Override + public boolean getForceDelete() { + return forceDelete_; + } + + /** + * + * + *
                +     * Optional. If set to true, any errors generated by external vector database
                +     * during the deletion will be ignored. The default value is false.
                +     * 
                + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The forceDelete to set. + * @return This builder for chaining. + */ + public Builder setForceDelete(boolean value) { + + forceDelete_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. If set to true, any errors generated by external vector database
                +     * during the deletion will be ignored. The default value is false.
                +     * 
                + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForceDelete() { + bitField0_ = (bitField0_ & ~0x00000004); + forceDelete_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequest) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java index ed1d4e4ed5d3..3ad21ad3cff2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java @@ -74,4 +74,18 @@ public interface DeleteRagCorpusRequestOrBuilder * @return The force. */ boolean getForce(); + + /** + * + * + *
                +   * Optional. If set to true, any errors generated by external vector database
                +   * during the deletion will be ignored. The default value is false.
                +   * 
                + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceDelete. + */ + boolean getForceDelete(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java index b6bb83106a3f..2429ecc1cb68 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java @@ -129,163 +129,165 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "=google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto\022\037google.cloud.ai" + "\n=google/cloud/aiplatform/v1beta1/vertex" + + "_rag_data_service.proto\022\037google.cloud.ai" + "platform.v1beta1\032\034google/api/annotations" + ".proto\032\027google/api/client.proto\032\037google/" + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032/google/cloud/aiplatform/v1beta1/operation.proto\0325google/cloud/aipla" + + "ource.proto\032/google/cloud/aiplatform/v1b" + + "eta1/operation.proto\0325google/cloud/aipla" + "tform/v1beta1/vertex_rag_data.proto\032#goo" + "gle/longrunning/operations.proto\032\033google" - + "/protobuf/empty.proto\032\027google/rpc/status.proto\"\230\001\n" - + "\026CreateRagCorpusRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022C\n\n" - + "rag_corpus\030\002 \001(\0132*.googl" - + "e.cloud.aiplatform.v1beta1.RagCorpusB\003\340A\002\"P\n" - + "\023GetRagCorpusRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\"\203\001\n" - + "\025ListRagCorporaRequest\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\n" - + "page_token\030\003 \001(\tB\003\340A\001\"r\n" - + "\026ListRagCorporaResponse\022?\n" - + "\013rag_corpora\030\001" - + " \003(\0132*.google.cloud.aiplatform.v1beta1.RagCorpus\022\027\n" - + "\017next_page_token\030\002 \001(\t\"g\n" - + "\026DeleteRagCorpusRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\001\"\357\001\n" - + "\024UploadRagFileRequest\022;\n" - + "\006parent\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\022?\n" - + "\010rag_file\030\002" - + " \001(\0132(.google.cloud.aiplatform.v1beta1.RagFileB\003\340A\002\022Y\n" - + "\026upload_rag_file_config\030\005 \001(\01324.google.cloud.aip" - + "latform.v1beta1.UploadRagFileConfigB\003\340A\002\"\204\001\n" - + "\025UploadRagFileResponse\022<\n" - + "\010rag_file\030\001 \001(\0132(.google.cloud.aiplatform.v1beta1.RagFileH\000\022#\n" - + "\005error\030\004 \001(\0132\022.google.rpc.StatusH\000B\010\n" - + "\006result\"\261\001\n" - + "\025ImportRagFilesRequest\022;\n" - + "\006parent\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\022[\n" - + "\027import_rag_files_config\030\002" - + " \001(\01325.google.cloud.aiplatform.v1beta1.ImportRagFilesConfigB\003\340A\002\"\343\001\n" - + "\026ImportRagFilesResponse\022#\n" - + "\031partial_failures_gcs_path\030\004 \001(\tH\000\022)\n" - + "\037partial_failures_bigquery_table\030\005 \001(\tH\000\022 \n" - + "\030imported_rag_files_count\030\001 \001(\003\022\036\n" - + "\026failed_rag_files_count\030\002 \001(\003\022\037\n" - + "\027skipped_rag_files_count\030\003 \001(\003B\026\n" - + "\024partial_failure_sink\"L\n" - + "\021GetRagFileRequest\0227\n" - + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!aiplatform.googleapis.com/RagFile\"\203\001\n" - + "\023ListRagFilesRequest\022;\n" - + "\006parent\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\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\"l\n" - + "\024ListRagFilesResponse\022;\n" - + "\trag_files\030\001 \003(\0132(.google.cloud.aiplatform.v1beta1.RagFile\022\027\n" - + "\017next_page_token\030\002 \001(\t\"j\n" - + "\024DeleteRagFileRequest\0227\n" - + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!aiplatform.googleapis.com/RagFile\022\031\n" - + "\014force_delete\030\002 \001(\010B\003\340A\001\"w\n" - + " CreateRagCorpusOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329." - + "google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\\\n" - + "\031GetRagEngineConfigRequest\022?\n" - + "\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")aiplatform.googleapis.com/RagEngineConfig\"]\n" - + "\026UpdateRagCorpusRequest\022C\n\n" - + "rag_corpus\030\001 \001(\0132*.g" - + "oogle.cloud.aiplatform.v1beta1.RagCorpusB\003\340A\002\"w\n" - + " UpdateRagCorpusOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.clo" - + "ud.aiplatform.v1beta1.GenericOperationMetadata\"\207\002\n" - + "\037ImportRagFilesOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.cl" - + "oud.aiplatform.v1beta1.GenericOperationMetadata\022\025\n\r" - + "rag_corpus_id\030\002 \001(\003\022[\n" - + "\027import_rag_files_config\030\003 \001(\01325.google.cloud.a" - + "iplatform.v1beta1.ImportRagFilesConfigB\003\340A\003\022\033\n" - + "\023progress_percentage\030\004 \001(\005\"p\n" - + "\034UpdateRagEngineConfigRequest\022P\n" - + "\021rag_engine_config\030\001" - + " \001(\01320.google.cloud.aiplatform.v1beta1.RagEngineConfigB\003\340A\002\"}\n" - + "&UpdateRagEngineConfigOperationMetadata\022S\n" - + "\020generic_metadata\030\001" - + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata2\307\026\n" - + "\024VertexRagDataService\022\367\001\n" - + "\017CreateRagCorpus\0227.google.cloud.aiplatform.v1beta1.CreateR" - + "agCorpusRequest\032\035.google.longrunning.Operation\"\213\001\312A-\n" - + "\tRagCorpus\022 CreateRagCorpusOperationMetadata\332A\021parent,rag_corpus\202\323\344" - + "\223\002A\"3/v1beta1/{parent=projects/*/locations/*}/ragCorpora:\n" - + "rag_corpus\022\373\001\n" - + "\017UpdateRagCorpus\0227.google.cloud.aiplatform.v1bet" - + "a1.UpdateRagCorpusRequest\032\035.google.longrunning.Operation\"\217\001\312A-\n" - + "\tRagCorpus\022 UpdateRagCorpusOperationMetadata\332A\n" - + "rag_corpus" - + "\202\323\344\223\002L2>/v1beta1/{rag_corpus.name=projects/*/locations/*/ragCorpora/*}:\n" - + "rag_corpus\022\264\001\n" - + "\014GetRagCorpus\0224.google.cloud.aiplatform.v1beta1.GetRagCorpusRequest\032*.goog" - + "le.cloud.aiplatform.v1beta1.RagCorpus\"B\332" - + "A\004name\202\323\344\223\0025\0223/v1beta1/{name=projects/*/locations/*/ragCorpora/*}\022\307\001\n" - + "\016ListRagCorpora\0226.google.cloud.aiplatform.v1beta1.L" - + "istRagCorporaRequest\0327.google.cloud.aipl" - + "atform.v1beta1.ListRagCorporaResponse\"D\332" - + "A\006parent\202\323\344\223\0025\0223/v1beta1/{parent=projects/*/locations/*}/ragCorpora\022\340\001\n" - + "\017DeleteRagCorpus\0227.google.cloud.aiplatform.v1beta" - + "1.DeleteRagCorpusRequest\032\035.google.longrunning.Operation\"u\312A0\n" - + "\025google.protobuf.Em" - + "pty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002" - + "5*3/v1beta1/{name=projects/*/locations/*/ragCorpora/*}\022\371\001\n\r" - + "UploadRagFile\0225.google.cloud.aiplatform.v1beta1.UploadRagFile" - + "Request\0326.google.cloud.aiplatform.v1beta" - + "1.UploadRagFileResponse\"y\332A&parent,rag_f" - + "ile,upload_rag_file_config\202\323\344\223\002J\"E/v1bet" - + "a1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:upload:\001*\022\227\002\n" - + "\016ImportRagFiles\0226.google.cloud.aiplatform.v1beta1." - + "ImportRagFilesRequest\032\035.google.longrunning.Operation\"\255\001\312A9\n" - + "\026ImportRagFilesResponse\022\037ImportRagFilesOperationMetadata\332A\036pa" - + "rent,import_rag_files_config\202\323\344\223\002J\"E/v1b" - + "eta1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:import:\001*\022\271\001\n\n" - + "GetRagFile\0222.google.cloud.aiplatform.v1beta1.Ge" - + "tRagFileRequest\032(.google.cloud.aiplatfor" - + "m.v1beta1.RagFile\"M\332A\004name\202\323\344\223\002@\022>/v1bet" - + "a1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}\022\314\001\n" - + "\014ListRagFiles\0224.google.cloud.aiplatform.v1beta1.ListRagFiles" - + "Request\0325.google.cloud.aiplatform.v1beta" - + "1.ListRagFilesResponse\"O\332A\006parent\202\323\344\223\002@\022" - + ">/v1beta1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles\022\350\001\n\r" - + "DeleteRagFile\0225.google.cloud.aiplatform.v1beta1.Dele" - + "teRagFileRequest\032\035.google.longrunning.Operation\"\200\001\312A0\n" - + "\025google.protobuf.Empty\022\027De" - + "leteOperationMetadata\332A\004name\202\323\344\223\002@*>/v1b" - + "eta1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}\022\253\002\n" - + "\025UpdateRagEngineConfig\022=.google.cloud.aiplatform.v1beta1.U" - + "pdateRagEngineConfigRequest\032\035.google.longrunning.Operation\"\263\001\312A9\n" - + "\017RagEngineConfig\022&UpdateRagEngineConfigOperationMetadat" - + "a\332A\021rag_engine_config\202\323\344\223\002]2H/v1beta1/{r" - + "ag_engine_config.name=projects/*/locatio" - + "ns/*/ragEngineConfig}:\021rag_engine_config\022\311\001\n" - + "\022GetRagEngineConfig\022:.google.cloud.aiplatform.v1beta1.GetRagEngineConfigRequ" - + "est\0320.google.cloud.aiplatform.v1beta1.Ra" - + "gEngineConfig\"E\332A\004name\202\323\344\223\0028\0226/v1beta1/{" - + "name=projects/*/locations/*/ragEngineCon" - + "fig}\032M\312A\031aiplatform.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platformB\360\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\031VertexRagDataServiceProtoP\001ZCcloud." - + "google.com/go/aiplatform/apiv1beta1/aipl" - + "atformpb;aiplatformpb\252\002\037Google.Cloud.AIP" - + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" - + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "/protobuf/empty.proto\032\027google/rpc/status" + + ".proto\"\230\001\n\026CreateRagCorpusRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022C\n\nrag_corpus\030\002 \001(\0132*.googl" + + "e.cloud.aiplatform.v1beta1.RagCorpusB\003\340A" + + "\002\"P\n\023GetRagCorpusRequest\0229\n\004name\030\001 \001(\tB+" + + "\340A\002\372A%\n#aiplatform.googleapis.com/RagCor" + + "pus\"\203\001\n\025ListRagCorporaRequest\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\npage" + + "_token\030\003 \001(\tB\003\340A\001\"r\n\026ListRagCorporaRespo" + + "nse\022?\n\013rag_corpora\030\001 \003(\0132*.google.cloud." + + "aiplatform.v1beta1.RagCorpus\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\202\001\n\026DeleteRagCorpusRequest" + + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googl" + + "eapis.com/RagCorpus\022\022\n\005force\030\002 \001(\010B\003\340A\001\022" + + "\031\n\014force_delete\030\003 \001(\010B\003\340A\001\"\357\001\n\024UploadRag" + + "FileRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#aip" + + "latform.googleapis.com/RagCorpus\022?\n\010rag_" + + "file\030\002 \001(\0132(.google.cloud.aiplatform.v1b" + + "eta1.RagFileB\003\340A\002\022Y\n\026upload_rag_file_con" + + "fig\030\005 \001(\01324.google.cloud.aiplatform.v1be" + + "ta1.UploadRagFileConfigB\003\340A\002\"\204\001\n\025UploadR" + + "agFileResponse\022<\n\010rag_file\030\001 \001(\0132(.googl" + + "e.cloud.aiplatform.v1beta1.RagFileH\000\022#\n\005" + + "error\030\004 \001(\0132\022.google.rpc.StatusH\000B\010\n\006res" + + "ult\"\261\001\n\025ImportRagFilesRequest\022;\n\006parent\030" + + "\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleapis.com" + + "/RagCorpus\022[\n\027import_rag_files_config\030\002 " + + "\001(\01325.google.cloud.aiplatform.v1beta1.Im" + + "portRagFilesConfigB\003\340A\002\"\343\001\n\026ImportRagFil" + + "esResponse\022#\n\031partial_failures_gcs_path\030" + + "\004 \001(\tH\000\022)\n\037partial_failures_bigquery_tab" + + "le\030\005 \001(\tH\000\022 \n\030imported_rag_files_count\030\001" + + " \001(\003\022\036\n\026failed_rag_files_count\030\002 \001(\003\022\037\n\027" + + "skipped_rag_files_count\030\003 \001(\003B\026\n\024partial" + + "_failure_sink\"L\n\021GetRagFileRequest\0227\n\004na" + + "me\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis." + + "com/RagFile\"\203\001\n\023ListRagFilesRequest\022;\n\006p" + + "arent\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleap" + + "is.com/RagCorpus\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"l\n\024ListRagFile" + + "sResponse\022;\n\trag_files\030\001 \003(\0132(.google.cl" + + "oud.aiplatform.v1beta1.RagFile\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"j\n\024DeleteRagFileRequest\022" + + "7\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.google" + + "apis.com/RagFile\022\031\n\014force_delete\030\002 \001(\010B\003" + + "\340A\001\"w\n CreateRagCorpusOperationMetadata\022" + + "S\n\020generic_metadata\030\001 \001(\01329.google.cloud" + + ".aiplatform.v1beta1.GenericOperationMeta" + + "data\"\\\n\031GetRagEngineConfigRequest\022?\n\004nam" + + "e\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis.c" + + "om/RagEngineConfig\"]\n\026UpdateRagCorpusReq" + + "uest\022C\n\nrag_corpus\030\001 \001(\0132*.google.cloud." + + "aiplatform.v1beta1.RagCorpusB\003\340A\002\"w\n Upd" + + "ateRagCorpusOperationMetadata\022S\n\020generic" + + "_metadata\030\001 \001(\01329.google.cloud.aiplatfor" + + "m.v1beta1.GenericOperationMetadata\"\207\002\n\037I" + + "mportRagFilesOperationMetadata\022S\n\020generi" + + "c_metadata\030\001 \001(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.GenericOperationMetadata\022\025\n\rr" + + "ag_corpus_id\030\002 \001(\003\022[\n\027import_rag_files_c" + + "onfig\030\003 \001(\01325.google.cloud.aiplatform.v1" + + "beta1.ImportRagFilesConfigB\003\340A\003\022\033\n\023progr" + + "ess_percentage\030\004 \001(\005\"p\n\034UpdateRagEngineC" + + "onfigRequest\022P\n\021rag_engine_config\030\001 \001(\0132" + + "0.google.cloud.aiplatform.v1beta1.RagEng" + + "ineConfigB\003\340A\002\"}\n&UpdateRagEngineConfigO" + + "perationMetadata\022S\n\020generic_metadata\030\001 \001" + + "(\01329.google.cloud.aiplatform.v1beta1.Gen" + + "ericOperationMetadata2\307\026\n\024VertexRagDataS" + + "ervice\022\367\001\n\017CreateRagCorpus\0227.google.clou" + + "d.aiplatform.v1beta1.CreateRagCorpusRequ" + + "est\032\035.google.longrunning.Operation\"\213\001\312A-" + + "\n\tRagCorpus\022 CreateRagCorpusOperationMet" + + "adata\332A\021parent,rag_corpus\202\323\344\223\002A\"3/v1beta" + + "1/{parent=projects/*/locations/*}/ragCor" + + "pora:\nrag_corpus\022\373\001\n\017UpdateRagCorpus\0227.g" + + "oogle.cloud.aiplatform.v1beta1.UpdateRag" + + "CorpusRequest\032\035.google.longrunning.Opera" + + "tion\"\217\001\312A-\n\tRagCorpus\022 UpdateRagCorpusOp" + + "erationMetadata\332A\nrag_corpus\202\323\344\223\002L2>/v1b" + + "eta1/{rag_corpus.name=projects/*/locatio" + + "ns/*/ragCorpora/*}:\nrag_corpus\022\264\001\n\014GetRa" + + "gCorpus\0224.google.cloud.aiplatform.v1beta" + + "1.GetRagCorpusRequest\032*.google.cloud.aip" + + "latform.v1beta1.RagCorpus\"B\332A\004name\202\323\344\223\0025" + + "\0223/v1beta1/{name=projects/*/locations/*/" + + "ragCorpora/*}\022\307\001\n\016ListRagCorpora\0226.googl" + + "e.cloud.aiplatform.v1beta1.ListRagCorpor" + + "aRequest\0327.google.cloud.aiplatform.v1bet" + + "a1.ListRagCorporaResponse\"D\332A\006parent\202\323\344\223" + + "\0025\0223/v1beta1/{parent=projects/*/location" + + "s/*}/ragCorpora\022\340\001\n\017DeleteRagCorpus\0227.go" + + "ogle.cloud.aiplatform.v1beta1.DeleteRagC" + + "orpusRequest\032\035.google.longrunning.Operat" + + "ion\"u\312A0\n\025google.protobuf.Empty\022\027DeleteO" + + "perationMetadata\332A\004name\202\323\344\223\0025*3/v1beta1/" + + "{name=projects/*/locations/*/ragCorpora/" + + "*}\022\371\001\n\rUploadRagFile\0225.google.cloud.aipl" + + "atform.v1beta1.UploadRagFileRequest\0326.go" + + "ogle.cloud.aiplatform.v1beta1.UploadRagF" + + "ileResponse\"y\332A&parent,rag_file,upload_r" + + "ag_file_config\202\323\344\223\002J\"E/v1beta1/{parent=p" + + "rojects/*/locations/*/ragCorpora/*}/ragF" + + "iles:upload:\001*\022\227\002\n\016ImportRagFiles\0226.goog" + + "le.cloud.aiplatform.v1beta1.ImportRagFil" + + "esRequest\032\035.google.longrunning.Operation" + + "\"\255\001\312A9\n\026ImportRagFilesResponse\022\037ImportRa" + + "gFilesOperationMetadata\332A\036parent,import_" + + "rag_files_config\202\323\344\223\002J\"E/v1beta1/{parent" + + "=projects/*/locations/*/ragCorpora/*}/ra" + + "gFiles:import:\001*\022\271\001\n\nGetRagFile\0222.google" + + ".cloud.aiplatform.v1beta1.GetRagFileRequ" + + "est\032(.google.cloud.aiplatform.v1beta1.Ra" + + "gFile\"M\332A\004name\202\323\344\223\002@\022>/v1beta1/{name=pro" + + "jects/*/locations/*/ragCorpora/*/ragFile" + + "s/*}\022\314\001\n\014ListRagFiles\0224.google.cloud.aip" + + "latform.v1beta1.ListRagFilesRequest\0325.go" + + "ogle.cloud.aiplatform.v1beta1.ListRagFil" + + "esResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1beta1/{p" + + "arent=projects/*/locations/*/ragCorpora/" + + "*}/ragFiles\022\350\001\n\rDeleteRagFile\0225.google.c" + + "loud.aiplatform.v1beta1.DeleteRagFileReq" + + "uest\032\035.google.longrunning.Operation\"\200\001\312A" + + "0\n\025google.protobuf.Empty\022\027DeleteOperatio" + + "nMetadata\332A\004name\202\323\344\223\002@*>/v1beta1/{name=p" + + "rojects/*/locations/*/ragCorpora/*/ragFi" + + "les/*}\022\253\002\n\025UpdateRagEngineConfig\022=.googl" + + "e.cloud.aiplatform.v1beta1.UpdateRagEngi" + + "neConfigRequest\032\035.google.longrunning.Ope" + + "ration\"\263\001\312A9\n\017RagEngineConfig\022&UpdateRag" + + "EngineConfigOperationMetadata\332A\021rag_engi" + + "ne_config\202\323\344\223\002]2H/v1beta1/{rag_engine_co" + + "nfig.name=projects/*/locations/*/ragEngi" + + "neConfig}:\021rag_engine_config\022\311\001\n\022GetRagE" + + "ngineConfig\022:.google.cloud.aiplatform.v1" + + "beta1.GetRagEngineConfigRequest\0320.google" + + ".cloud.aiplatform.v1beta1.RagEngineConfi" + + "g\"E\332A\004name\202\323\344\223\0028\0226/v1beta1/{name=project" + + "s/*/locations/*/ragEngineConfig}\032M\312A\031aip" + + "latform.googleapis.com\322A.https://www.goo" + + "gleapis.com/auth/cloud-platformB\360\001\n#com." + + "google.cloud.aiplatform.v1beta1B\031VertexR" + + "agDataServiceProtoP\001ZCcloud.google.com/g" + + "o/aiplatform/apiv1beta1/aiplatformpb;aip" + + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -339,7 +341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteRagCorpusRequest_descriptor, new java.lang.String[] { - "Name", "Force", + "Name", "Force", "ForceDelete", }); internal_static_google_cloud_aiplatform_v1beta1_UploadRagFileRequest_descriptor = getDescriptor().getMessageType(5); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto index 914e9b5108d4..da2f9f6bfa25 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto @@ -257,6 +257,10 @@ message DeleteRagCorpusRequest { // deleted. Otherwise, the request will only work if the RagCorpus has no // RagFiles. bool force = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, any errors generated by external vector database + // during the deletion will be ignored. The default value is false. + bool force_delete = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request message for diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java index 4ddc19d9b7e5..17eaa5dc843c 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java @@ -41,6 +41,7 @@ public static void asyncDeleteRagCorpus() throws Exception { DeleteRagCorpusRequest.newBuilder() .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) .setForce(true) + .setForceDelete(true) .build(); ApiFuture future = vertexRagDataServiceClient.deleteRagCorpusCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java index e05b816eab8a..c6dafec91d08 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java @@ -42,6 +42,7 @@ public static void asyncDeleteRagCorpusLRO() throws Exception { DeleteRagCorpusRequest.newBuilder() .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) .setForce(true) + .setForceDelete(true) .build(); OperationFuture future = vertexRagDataServiceClient.deleteRagCorpusOperationCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java index f482f6eec897..8688bd23b4ff 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java @@ -40,6 +40,7 @@ public static void syncDeleteRagCorpus() throws Exception { DeleteRagCorpusRequest.newBuilder() .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) .setForce(true) + .setForceDelete(true) .build(); vertexRagDataServiceClient.deleteRagCorpusAsync(request).get(); } diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index 56a67f263eaf..4199feff2f45 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -2213,6 +2213,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.ForwardedMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ForwardedMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.GetAttachmentRequest", "queryAllDeclaredConstructors": true, @@ -2960,6 +2978,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.QuotedMessageMetadata$QuoteType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.QuotedMessageSnapshot", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.QuotedMessageSnapshot$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.Reaction", "queryAllDeclaredConstructors": true, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java index b262a0140481..400768f29885 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java @@ -398,7 +398,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The threadKey. */ @java.lang.Override @@ -432,7 +432,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The bytes for threadKey. */ @java.lang.Override @@ -1435,7 +1435,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The threadKey. */ @java.lang.Deprecated @@ -1468,7 +1468,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The bytes for threadKey. */ @java.lang.Deprecated @@ -1501,7 +1501,7 @@ public com.google.protobuf.ByteString getThreadKeyBytes() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @param value The threadKey to set. * @return This builder for chaining. */ @@ -1533,7 +1533,7 @@ public Builder setThreadKey(java.lang.String value) { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1561,7 +1561,7 @@ public Builder clearThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @param value The bytes for threadKey to set. * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java index 7f3d72396c5d..99a22fdf9566 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The threadKey. */ @java.lang.Deprecated @@ -137,7 +137,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The bytes for threadKey. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadata.java new file mode 100644 index 000000000000..c68d3e6e814f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadata.java @@ -0,0 +1,830 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Metadata about the source space from which a message was forwarded.
                + * 
                + * + * Protobuf type {@code google.chat.v1.ForwardedMetadata} + */ +@com.google.protobuf.Generated +public final class ForwardedMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ForwardedMetadata) + ForwardedMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ForwardedMetadata"); + } + + // Use ForwardedMetadata.newBuilder() to construct. + private ForwardedMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ForwardedMetadata() { + space_ = ""; + spaceDisplayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ForwardedMetadata.class, + com.google.chat.v1.ForwardedMetadata.Builder.class); + } + + public static final int SPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object space_ = ""; + + /** + * + * + *
                +   * Output only. The resource name of the source space.
                +   * Format: spaces/{space}
                +   * 
                + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The space. + */ + @java.lang.Override + public java.lang.String getSpace() { + java.lang.Object ref = space_; + 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(); + space_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. The resource name of the source space.
                +   * Format: spaces/{space}
                +   * 
                + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for space. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpaceBytes() { + java.lang.Object ref = space_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + space_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPACE_DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object spaceDisplayName_ = ""; + + /** + * + * + *
                +   * Output only. The display name of the source space or DM at the time of
                +   * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
                +   * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
                +   * a generated name based on members' first names, limited to 5 including the
                +   * creator (e.g., "User A, User B").
                +   * 
                + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The spaceDisplayName. + */ + @java.lang.Override + public java.lang.String getSpaceDisplayName() { + java.lang.Object ref = spaceDisplayName_; + 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(); + spaceDisplayName_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. The display name of the source space or DM at the time of
                +   * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
                +   * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
                +   * a generated name based on members' first names, limited to 5 including the
                +   * creator (e.g., "User A, User B").
                +   * 
                + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for spaceDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpaceDisplayNameBytes() { + java.lang.Object ref = spaceDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceDisplayName_ = 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.GeneratedMessage.isStringEmpty(space_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, space_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, spaceDisplayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(space_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, space_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, spaceDisplayName_); + } + 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.chat.v1.ForwardedMetadata)) { + return super.equals(obj); + } + com.google.chat.v1.ForwardedMetadata other = (com.google.chat.v1.ForwardedMetadata) obj; + + if (!getSpace().equals(other.getSpace())) return false; + if (!getSpaceDisplayName().equals(other.getSpaceDisplayName())) 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) + SPACE_FIELD_NUMBER; + hash = (53 * hash) + getSpace().hashCode(); + hash = (37 * hash) + SPACE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSpaceDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ForwardedMetadata 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.chat.v1.ForwardedMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ForwardedMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ForwardedMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.chat.v1.ForwardedMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Metadata about the source space from which a message was forwarded.
                +   * 
                + * + * Protobuf type {@code google.chat.v1.ForwardedMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ForwardedMetadata) + com.google.chat.v1.ForwardedMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ForwardedMetadata.class, + com.google.chat.v1.ForwardedMetadata.Builder.class); + } + + // Construct using com.google.chat.v1.ForwardedMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + space_ = ""; + spaceDisplayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ForwardedMetadata getDefaultInstanceForType() { + return com.google.chat.v1.ForwardedMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ForwardedMetadata build() { + com.google.chat.v1.ForwardedMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ForwardedMetadata buildPartial() { + com.google.chat.v1.ForwardedMetadata result = new com.google.chat.v1.ForwardedMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.ForwardedMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.space_ = space_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.spaceDisplayName_ = spaceDisplayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ForwardedMetadata) { + return mergeFrom((com.google.chat.v1.ForwardedMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ForwardedMetadata other) { + if (other == com.google.chat.v1.ForwardedMetadata.getDefaultInstance()) return this; + if (!other.getSpace().isEmpty()) { + space_ = other.space_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSpaceDisplayName().isEmpty()) { + spaceDisplayName_ = other.spaceDisplayName_; + 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: + { + space_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + spaceDisplayName_ = 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 space_ = ""; + + /** + * + * + *
                +     * Output only. The resource name of the source space.
                +     * Format: spaces/{space}
                +     * 
                + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The space. + */ + public java.lang.String getSpace() { + java.lang.Object ref = space_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + space_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. The resource name of the source space.
                +     * Format: spaces/{space}
                +     * 
                + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for space. + */ + public com.google.protobuf.ByteString getSpaceBytes() { + java.lang.Object ref = space_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + space_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. The resource name of the source space.
                +     * Format: spaces/{space}
                +     * 
                + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The space to set. + * @return This builder for chaining. + */ + public Builder setSpace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + space_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The resource name of the source space.
                +     * Format: spaces/{space}
                +     * 
                + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSpace() { + space_ = getDefaultInstance().getSpace(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The resource name of the source space.
                +     * Format: spaces/{space}
                +     * 
                + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for space to set. + * @return This builder for chaining. + */ + public Builder setSpaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + space_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object spaceDisplayName_ = ""; + + /** + * + * + *
                +     * Output only. The display name of the source space or DM at the time of
                +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
                +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
                +     * a generated name based on members' first names, limited to 5 including the
                +     * creator (e.g., "User A, User B").
                +     * 
                + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The spaceDisplayName. + */ + public java.lang.String getSpaceDisplayName() { + java.lang.Object ref = spaceDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spaceDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. The display name of the source space or DM at the time of
                +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
                +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
                +     * a generated name based on members' first names, limited to 5 including the
                +     * creator (e.g., "User A, User B").
                +     * 
                + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for spaceDisplayName. + */ + public com.google.protobuf.ByteString getSpaceDisplayNameBytes() { + java.lang.Object ref = spaceDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. The display name of the source space or DM at the time of
                +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
                +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
                +     * a generated name based on members' first names, limited to 5 including the
                +     * creator (e.g., "User A, User B").
                +     * 
                + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The spaceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSpaceDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + spaceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The display name of the source space or DM at the time of
                +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
                +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
                +     * a generated name based on members' first names, limited to 5 including the
                +     * creator (e.g., "User A, User B").
                +     * 
                + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSpaceDisplayName() { + spaceDisplayName_ = getDefaultInstance().getSpaceDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The display name of the source space or DM at the time of
                +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
                +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
                +     * a generated name based on members' first names, limited to 5 including the
                +     * creator (e.g., "User A, User B").
                +     * 
                + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for spaceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSpaceDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + spaceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ForwardedMetadata) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ForwardedMetadata) + private static final com.google.chat.v1.ForwardedMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ForwardedMetadata(); + } + + public static com.google.chat.v1.ForwardedMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardedMetadata 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.chat.v1.ForwardedMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadataOrBuilder.java new file mode 100644 index 000000000000..ab974d95de35 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadataOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface ForwardedMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ForwardedMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Output only. The resource name of the source space.
                +   * Format: spaces/{space}
                +   * 
                + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The space. + */ + java.lang.String getSpace(); + + /** + * + * + *
                +   * Output only. The resource name of the source space.
                +   * Format: spaces/{space}
                +   * 
                + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for space. + */ + com.google.protobuf.ByteString getSpaceBytes(); + + /** + * + * + *
                +   * Output only. The display name of the source space or DM at the time of
                +   * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
                +   * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
                +   * a generated name based on members' first names, limited to 5 including the
                +   * creator (e.g., "User A, User B").
                +   * 
                + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The spaceDisplayName. + */ + java.lang.String getSpaceDisplayName(); + + /** + * + * + *
                +   * Output only. The display name of the source space or DM at the time of
                +   * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
                +   * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
                +   * a generated name based on members' first names, limited to 5 including the
                +   * creator (e.g., "User A, User B").
                +   * 
                + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for spaceDisplayName. + */ + com.google.protobuf.ByteString getSpaceDisplayNameBytes(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 1cbdece1616a..115913969de9 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_chat_v1_QuotedMessageMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_chat_v1_QuotedMessageMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ForwardedMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_chat_v1_Thread_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -173,28 +181,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001:C\352A@\n" + "\033chat.googleapis.com/Message\022!spaces/{space}/messages/{message}\"\037\n" + "\013AttachedGif\022\020\n" - + "\003uri\030\001 \001(\tB\003\340A\003\"\211\002\n" + + "\003uri\030\001 \001(\tB\003\340A\003\"\230\004\n" + "\025QuotedMessageMetadata\0221\n" + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + "\033chat.googleapis.com/Message\0229\n" + "\020last_update_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002:\201\001\352A~\n" - + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{messag" - + "e}/quotedMessageMetadata/{quoted_message_metadata}\"v\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022H\n\n" + + "quote_type\030\004" + + " \001(\0162/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\003\340A\001\022K\n" + + "\027quoted_message_snapshot\030\005" + + " \001(\0132%.google.chat.v1.QuotedMessageSnapshotB\003\340A\003\022B\n" + + "\022forwarded_metadata\030\006" + + " \001(\0132!.google.chat.v1.ForwardedMetadataB\003\340A\003\"2\n" + + "\tQuoteType\022\032\n" + + "\026QUOTE_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005REPLY\020\001:\201\001\352A~\n" + + ")chat.googleapis.com/QuotedMessageMetadata\022Q" + + "spaces/{space}/messages/{message}/quoted" + + "MessageMetadata/{quoted_message_metadata}\"\310\001\n" + + "\025QuotedMessageSnapshot\022\023\n" + + "\006sender\030\001 \001(\tB\003\340A\003\022\021\n" + + "\004text\030\002 \001(\tB\003\340A\003\022\033\n" + + "\016formatted_text\030\003 \001(\tB\003\340A\003\0224\n" + + "\013annotations\030\004 \003(\0132\032.google.chat.v1.AnnotationB\003\340A\003\0224\n" + + "\013attachments\030\005 \003(\0132\032.google.chat.v1.AttachmentB\003\340A\003\"f\n" + + "\021ForwardedMetadata\0220\n" + + "\005space\030\001 \001(\tB!\340A\003\372A\033\n" + + "\031chat.googleapis.com/Space\022\037\n" + + "\022space_display_name\030\002 \001(\tB\003\340A\003\"v\n" + "\006Thread\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + "thread_key\030\003 \001(\tB\003\340A\001:@\352A=\n" + "\032chat.googleapis.com/Thread\022\037spaces/{space}/threads/{thread}\"\322\004\n" + "\016ActionResponse\022>\n" - + "\004type\030\001 " - + "\001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + + "\004type\030\001" + + " \001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + "\003url\030\002 \001(\tB\003\340A\004\0228\n\r" + "dialog_action\030\003 \001(\0132\034.google.chat.v1.DialogActionB\003\340A\004\022I\n" - + "\016updated_widget\030\004 \001(\0132,.goog" - + "le.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + + "\016updated_widget\030\004" + + " \001(\0132,.google.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + "\016SelectionItems\022@\n" - + "\005items\030\001 \003(\01321." - + "google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + + "\005items\030\001" + + " \003(\01321.google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + "UpdatedWidget\022D\n" + "\013suggestions\030\001" + " \001(\0132-.google.chat.v1.ActionResponse.SelectionItemsH\000\022\016\n" @@ -229,8 +257,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007message\030\004 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\022\031\n\n" + "thread_key\030\006 \001(\tB\005\030\001\340A\001\022\027\n\n" + "request_id\030\007 \001(\tB\003\340A\001\022Z\n" - + "\024message_reply_option\030\010 \001(\01627.google.chat.v1.Cr" - + "eateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + + "\024message_reply_option\030\010 \001(\01627" + + ".google.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + "message_id\030\t \001(\tB\003\340A\001\"\177\n" + "\022MessageReplyOption\022$\n" + " MESSAGE_REPLY_OPTION_UNSPECIFIED\020\000\022(\n" @@ -256,10 +284,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "CardWithId\022\017\n" + "\007card_id\030\001 \001(\t\022\'\n" + "\004card\030\002 \001(\0132\031.google.apps.card.v1.CardB\245\001\n" - + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.c" - + "om/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIP" - + "roto\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps" - + "\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat/apiv1/chatp" + + "b;chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Cha" + + "t.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -326,16 +353,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_QuotedMessageMetadata_descriptor, new java.lang.String[] { - "Name", "LastUpdateTime", + "Name", "LastUpdateTime", "QuoteType", "QuotedMessageSnapshot", "ForwardedMetadata", + }); + internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor, + new java.lang.String[] { + "Sender", "Text", "FormattedText", "Annotations", "Attachments", + }); + internal_static_google_chat_v1_ForwardedMetadata_descriptor = getDescriptor().getMessageType(4); + internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_ForwardedMetadata_descriptor, + new java.lang.String[] { + "Space", "SpaceDisplayName", }); - internal_static_google_chat_v1_Thread_descriptor = getDescriptor().getMessageType(3); + internal_static_google_chat_v1_Thread_descriptor = getDescriptor().getMessageType(5); internal_static_google_chat_v1_Thread_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_Thread_descriptor, new java.lang.String[] { "Name", "ThreadKey", }); - internal_static_google_chat_v1_ActionResponse_descriptor = getDescriptor().getMessageType(4); + internal_static_google_chat_v1_ActionResponse_descriptor = getDescriptor().getMessageType(6); internal_static_google_chat_v1_ActionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_ActionResponse_descriptor, @@ -358,14 +400,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Suggestions", "Widget", "UpdatedWidget", }); - internal_static_google_chat_v1_AccessoryWidget_descriptor = getDescriptor().getMessageType(5); + internal_static_google_chat_v1_AccessoryWidget_descriptor = getDescriptor().getMessageType(7); internal_static_google_chat_v1_AccessoryWidget_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_AccessoryWidget_descriptor, new java.lang.String[] { "ButtonList", "Action", }); - internal_static_google_chat_v1_GetMessageRequest_descriptor = getDescriptor().getMessageType(6); + internal_static_google_chat_v1_GetMessageRequest_descriptor = getDescriptor().getMessageType(8); internal_static_google_chat_v1_GetMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_GetMessageRequest_descriptor, @@ -373,7 +415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_chat_v1_DeleteMessageRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_chat_v1_DeleteMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_DeleteMessageRequest_descriptor, @@ -381,7 +423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_chat_v1_UpdateMessageRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_chat_v1_UpdateMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_UpdateMessageRequest_descriptor, @@ -389,7 +431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "UpdateMask", "AllowMissing", }); internal_static_google_chat_v1_CreateMessageRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_chat_v1_CreateMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_CreateMessageRequest_descriptor, @@ -397,7 +439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Message", "ThreadKey", "RequestId", "MessageReplyOption", "MessageId", }); internal_static_google_chat_v1_ListMessagesRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_chat_v1_ListMessagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_ListMessagesRequest_descriptor, @@ -405,28 +447,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ShowDeleted", }); internal_static_google_chat_v1_ListMessagesResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_chat_v1_ListMessagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_ListMessagesResponse_descriptor, new java.lang.String[] { "Messages", "NextPageToken", }); - internal_static_google_chat_v1_DialogAction_descriptor = getDescriptor().getMessageType(12); + internal_static_google_chat_v1_DialogAction_descriptor = getDescriptor().getMessageType(14); internal_static_google_chat_v1_DialogAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_DialogAction_descriptor, new java.lang.String[] { "Dialog", "ActionStatus", "Action", }); - internal_static_google_chat_v1_Dialog_descriptor = getDescriptor().getMessageType(13); + internal_static_google_chat_v1_Dialog_descriptor = getDescriptor().getMessageType(15); internal_static_google_chat_v1_Dialog_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_Dialog_descriptor, new java.lang.String[] { "Body", }); - internal_static_google_chat_v1_CardWithId_descriptor = getDescriptor().getMessageType(14); + internal_static_google_chat_v1_CardWithId_descriptor = getDescriptor().getMessageType(16); internal_static_google_chat_v1_CardWithId_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_CardWithId_descriptor, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java index de3b0b9ea651..9377b036a1bc 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java @@ -63,6 +63,7 @@ private QuotedMessageMetadata(com.google.protobuf.GeneratedMessage.Builder bu private QuotedMessageMetadata() { name_ = ""; + quoteType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -80,6 +81,168 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.chat.v1.QuotedMessageMetadata.Builder.class); } + /** + * + * + *
                +   * The quote type of the quoted message.
                +   * 
                + * + * Protobuf enum {@code google.chat.v1.QuotedMessageMetadata.QuoteType} + */ + public enum QuoteType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Reserved. This value is unused.
                +     * 
                + * + * QUOTE_TYPE_UNSPECIFIED = 0; + */ + QUOTE_TYPE_UNSPECIFIED(0), + /** + * + * + *
                +     * If quote_type is `REPLY`, you can do the following:
                +     *
                +     * * If you're replying in a thread, you can quote another message in that
                +     * thread.
                +     *
                +     * * If you're creating a root message, you can quote another root message
                +     * in that space.
                +     *
                +     * You can't quote a message reply from a different thread.
                +     * 
                + * + * REPLY = 1; + */ + REPLY(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QuoteType"); + } + + /** + * + * + *
                +     * Reserved. This value is unused.
                +     * 
                + * + * QUOTE_TYPE_UNSPECIFIED = 0; + */ + public static final int QUOTE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * If quote_type is `REPLY`, you can do the following:
                +     *
                +     * * If you're replying in a thread, you can quote another message in that
                +     * thread.
                +     *
                +     * * If you're creating a root message, you can quote another root message
                +     * in that space.
                +     *
                +     * You can't quote a message reply from a different thread.
                +     * 
                + * + * REPLY = 1; + */ + public static final int REPLY_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 QuoteType 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 QuoteType forNumber(int value) { + switch (value) { + case 0: + return QUOTE_TYPE_UNSPECIFIED; + case 1: + return REPLY; + 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 QuoteType findValueByNumber(int number) { + return QuoteType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.chat.v1.QuotedMessageMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final QuoteType[] VALUES = values(); + + public static QuoteType 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 QuoteType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.chat.v1.QuotedMessageMetadata.QuoteType) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -222,6 +385,172 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { : lastUpdateTime_; } + public static final int QUOTE_TYPE_FIELD_NUMBER = 4; + private int quoteType_ = 0; + + /** + * + * + *
                +   * Optional. Specifies the quote type. If not set, defaults to REPLY in the
                +   * message read/write path for backward compatibility.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for quoteType. + */ + @java.lang.Override + public int getQuoteTypeValue() { + return quoteType_; + } + + /** + * + * + *
                +   * Optional. Specifies the quote type. If not set, defaults to REPLY in the
                +   * message read/write path for backward compatibility.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The quoteType. + */ + @java.lang.Override + public com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType() { + com.google.chat.v1.QuotedMessageMetadata.QuoteType result = + com.google.chat.v1.QuotedMessageMetadata.QuoteType.forNumber(quoteType_); + return result == null + ? com.google.chat.v1.QuotedMessageMetadata.QuoteType.UNRECOGNIZED + : result; + } + + public static final int QUOTED_MESSAGE_SNAPSHOT_FIELD_NUMBER = 5; + private com.google.chat.v1.QuotedMessageSnapshot quotedMessageSnapshot_; + + /** + * + * + *
                +   * Output only. A snapshot of the quoted message's content.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the quotedMessageSnapshot field is set. + */ + @java.lang.Override + public boolean hasQuotedMessageSnapshot() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Output only. A snapshot of the quoted message's content.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The quotedMessageSnapshot. + */ + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot() { + return quotedMessageSnapshot_ == null + ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance() + : quotedMessageSnapshot_; + } + + /** + * + * + *
                +   * Output only. A snapshot of the quoted message's content.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder() { + return quotedMessageSnapshot_ == null + ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance() + : quotedMessageSnapshot_; + } + + public static final int FORWARDED_METADATA_FIELD_NUMBER = 6; + private com.google.chat.v1.ForwardedMetadata forwardedMetadata_; + + /** + * + * + *
                +   * Output only. Metadata about the source space of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the forwardedMetadata field is set. + */ + @java.lang.Override + public boolean hasForwardedMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                +   * Output only. Metadata about the source space of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The forwardedMetadata. + */ + @java.lang.Override + public com.google.chat.v1.ForwardedMetadata getForwardedMetadata() { + return forwardedMetadata_ == null + ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance() + : forwardedMetadata_; + } + + /** + * + * + *
                +   * Output only. Metadata about the source space of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder() { + return forwardedMetadata_ == null + ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance() + : forwardedMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -242,6 +571,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getLastUpdateTime()); } + if (quoteType_ + != com.google.chat.v1.QuotedMessageMetadata.QuoteType.QUOTE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, quoteType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getQuotedMessageSnapshot()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getForwardedMetadata()); + } getUnknownFields().writeTo(output); } @@ -257,6 +596,17 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUpdateTime()); } + if (quoteType_ + != com.google.chat.v1.QuotedMessageMetadata.QuoteType.QUOTE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, quoteType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQuotedMessageSnapshot()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getForwardedMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -277,6 +627,15 @@ public boolean equals(final java.lang.Object obj) { if (hasLastUpdateTime()) { if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } + if (quoteType_ != other.quoteType_) return false; + if (hasQuotedMessageSnapshot() != other.hasQuotedMessageSnapshot()) return false; + if (hasQuotedMessageSnapshot()) { + if (!getQuotedMessageSnapshot().equals(other.getQuotedMessageSnapshot())) return false; + } + if (hasForwardedMetadata() != other.hasForwardedMetadata()) return false; + if (hasForwardedMetadata()) { + if (!getForwardedMetadata().equals(other.getForwardedMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -294,6 +653,16 @@ public int hashCode() { hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastUpdateTime().hashCode(); } + hash = (37 * hash) + QUOTE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + quoteType_; + if (hasQuotedMessageSnapshot()) { + hash = (37 * hash) + QUOTED_MESSAGE_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getQuotedMessageSnapshot().hashCode(); + } + if (hasForwardedMetadata()) { + hash = (37 * hash) + FORWARDED_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getForwardedMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -446,6 +815,8 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetLastUpdateTimeFieldBuilder(); + internalGetQuotedMessageSnapshotFieldBuilder(); + internalGetForwardedMetadataFieldBuilder(); } } @@ -459,6 +830,17 @@ public Builder clear() { lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } + quoteType_ = 0; + quotedMessageSnapshot_ = null; + if (quotedMessageSnapshotBuilder_ != null) { + quotedMessageSnapshotBuilder_.dispose(); + quotedMessageSnapshotBuilder_ = null; + } + forwardedMetadata_ = null; + if (forwardedMetadataBuilder_ != null) { + forwardedMetadataBuilder_.dispose(); + forwardedMetadataBuilder_ = null; + } return this; } @@ -504,6 +886,23 @@ private void buildPartial0(com.google.chat.v1.QuotedMessageMetadata result) { lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.quoteType_ = quoteType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.quotedMessageSnapshot_ = + quotedMessageSnapshotBuilder_ == null + ? quotedMessageSnapshot_ + : quotedMessageSnapshotBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.forwardedMetadata_ = + forwardedMetadataBuilder_ == null + ? forwardedMetadata_ + : forwardedMetadataBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -527,6 +926,15 @@ public Builder mergeFrom(com.google.chat.v1.QuotedMessageMetadata other) { if (other.hasLastUpdateTime()) { mergeLastUpdateTime(other.getLastUpdateTime()); } + if (other.quoteType_ != 0) { + setQuoteTypeValue(other.getQuoteTypeValue()); + } + if (other.hasQuotedMessageSnapshot()) { + mergeQuotedMessageSnapshot(other.getQuotedMessageSnapshot()); + } + if (other.hasForwardedMetadata()) { + mergeForwardedMetadata(other.getForwardedMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -566,6 +974,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 32: + { + quoteType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetQuotedMessageSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetForwardedMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -991,6 +1419,554 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { return lastUpdateTimeBuilder_; } + private int quoteType_ = 0; + + /** + * + * + *
                +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
                +     * message read/write path for backward compatibility.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for quoteType. + */ + @java.lang.Override + public int getQuoteTypeValue() { + return quoteType_; + } + + /** + * + * + *
                +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
                +     * message read/write path for backward compatibility.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for quoteType to set. + * @return This builder for chaining. + */ + public Builder setQuoteTypeValue(int value) { + quoteType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
                +     * message read/write path for backward compatibility.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The quoteType. + */ + @java.lang.Override + public com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType() { + com.google.chat.v1.QuotedMessageMetadata.QuoteType result = + com.google.chat.v1.QuotedMessageMetadata.QuoteType.forNumber(quoteType_); + return result == null + ? com.google.chat.v1.QuotedMessageMetadata.QuoteType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
                +     * message read/write path for backward compatibility.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The quoteType to set. + * @return This builder for chaining. + */ + public Builder setQuoteType(com.google.chat.v1.QuotedMessageMetadata.QuoteType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + quoteType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
                +     * message read/write path for backward compatibility.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearQuoteType() { + bitField0_ = (bitField0_ & ~0x00000004); + quoteType_ = 0; + onChanged(); + return this; + } + + private com.google.chat.v1.QuotedMessageSnapshot quotedMessageSnapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.QuotedMessageSnapshot, + com.google.chat.v1.QuotedMessageSnapshot.Builder, + com.google.chat.v1.QuotedMessageSnapshotOrBuilder> + quotedMessageSnapshotBuilder_; + + /** + * + * + *
                +     * Output only. A snapshot of the quoted message's content.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the quotedMessageSnapshot field is set. + */ + public boolean hasQuotedMessageSnapshot() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                +     * Output only. A snapshot of the quoted message's content.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The quotedMessageSnapshot. + */ + public com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot() { + if (quotedMessageSnapshotBuilder_ == null) { + return quotedMessageSnapshot_ == null + ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance() + : quotedMessageSnapshot_; + } else { + return quotedMessageSnapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Output only. A snapshot of the quoted message's content.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQuotedMessageSnapshot(com.google.chat.v1.QuotedMessageSnapshot value) { + if (quotedMessageSnapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + quotedMessageSnapshot_ = value; + } else { + quotedMessageSnapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A snapshot of the quoted message's content.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQuotedMessageSnapshot( + com.google.chat.v1.QuotedMessageSnapshot.Builder builderForValue) { + if (quotedMessageSnapshotBuilder_ == null) { + quotedMessageSnapshot_ = builderForValue.build(); + } else { + quotedMessageSnapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A snapshot of the quoted message's content.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeQuotedMessageSnapshot(com.google.chat.v1.QuotedMessageSnapshot value) { + if (quotedMessageSnapshotBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && quotedMessageSnapshot_ != null + && quotedMessageSnapshot_ + != com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()) { + getQuotedMessageSnapshotBuilder().mergeFrom(value); + } else { + quotedMessageSnapshot_ = value; + } + } else { + quotedMessageSnapshotBuilder_.mergeFrom(value); + } + if (quotedMessageSnapshot_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Output only. A snapshot of the quoted message's content.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQuotedMessageSnapshot() { + bitField0_ = (bitField0_ & ~0x00000008); + quotedMessageSnapshot_ = null; + if (quotedMessageSnapshotBuilder_ != null) { + quotedMessageSnapshotBuilder_.dispose(); + quotedMessageSnapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A snapshot of the quoted message's content.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.QuotedMessageSnapshot.Builder getQuotedMessageSnapshotBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetQuotedMessageSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. A snapshot of the quoted message's content.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder() { + if (quotedMessageSnapshotBuilder_ != null) { + return quotedMessageSnapshotBuilder_.getMessageOrBuilder(); + } else { + return quotedMessageSnapshot_ == null + ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance() + : quotedMessageSnapshot_; + } + } + + /** + * + * + *
                +     * Output only. A snapshot of the quoted message's content.
                +     * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.QuotedMessageSnapshot, + com.google.chat.v1.QuotedMessageSnapshot.Builder, + com.google.chat.v1.QuotedMessageSnapshotOrBuilder> + internalGetQuotedMessageSnapshotFieldBuilder() { + if (quotedMessageSnapshotBuilder_ == null) { + quotedMessageSnapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.QuotedMessageSnapshot, + com.google.chat.v1.QuotedMessageSnapshot.Builder, + com.google.chat.v1.QuotedMessageSnapshotOrBuilder>( + getQuotedMessageSnapshot(), getParentForChildren(), isClean()); + quotedMessageSnapshot_ = null; + } + return quotedMessageSnapshotBuilder_; + } + + private com.google.chat.v1.ForwardedMetadata forwardedMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ForwardedMetadata, + com.google.chat.v1.ForwardedMetadata.Builder, + com.google.chat.v1.ForwardedMetadataOrBuilder> + forwardedMetadataBuilder_; + + /** + * + * + *
                +     * Output only. Metadata about the source space of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the forwardedMetadata field is set. + */ + public boolean hasForwardedMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                +     * Output only. Metadata about the source space of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The forwardedMetadata. + */ + public com.google.chat.v1.ForwardedMetadata getForwardedMetadata() { + if (forwardedMetadataBuilder_ == null) { + return forwardedMetadata_ == null + ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance() + : forwardedMetadata_; + } else { + return forwardedMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Output only. Metadata about the source space of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setForwardedMetadata(com.google.chat.v1.ForwardedMetadata value) { + if (forwardedMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + forwardedMetadata_ = value; + } else { + forwardedMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Metadata about the source space of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setForwardedMetadata( + com.google.chat.v1.ForwardedMetadata.Builder builderForValue) { + if (forwardedMetadataBuilder_ == null) { + forwardedMetadata_ = builderForValue.build(); + } else { + forwardedMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Metadata about the source space of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeForwardedMetadata(com.google.chat.v1.ForwardedMetadata value) { + if (forwardedMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && forwardedMetadata_ != null + && forwardedMetadata_ != com.google.chat.v1.ForwardedMetadata.getDefaultInstance()) { + getForwardedMetadataBuilder().mergeFrom(value); + } else { + forwardedMetadata_ = value; + } + } else { + forwardedMetadataBuilder_.mergeFrom(value); + } + if (forwardedMetadata_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Output only. Metadata about the source space of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearForwardedMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + forwardedMetadata_ = null; + if (forwardedMetadataBuilder_ != null) { + forwardedMetadataBuilder_.dispose(); + forwardedMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Metadata about the source space of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.ForwardedMetadata.Builder getForwardedMetadataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetForwardedMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. Metadata about the source space of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder() { + if (forwardedMetadataBuilder_ != null) { + return forwardedMetadataBuilder_.getMessageOrBuilder(); + } else { + return forwardedMetadata_ == null + ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance() + : forwardedMetadata_; + } + } + + /** + * + * + *
                +     * Output only. Metadata about the source space of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ForwardedMetadata, + com.google.chat.v1.ForwardedMetadata.Builder, + com.google.chat.v1.ForwardedMetadataOrBuilder> + internalGetForwardedMetadataFieldBuilder() { + if (forwardedMetadataBuilder_ == null) { + forwardedMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ForwardedMetadata, + com.google.chat.v1.ForwardedMetadata.Builder, + com.google.chat.v1.ForwardedMetadataOrBuilder>( + getForwardedMetadata(), getParentForChildren(), isClean()); + forwardedMetadata_ = null; + } + return forwardedMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.chat.v1.QuotedMessageMetadata) } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java index c7aa0f7630e3..fca40dfcc1ad 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java @@ -123,4 +123,125 @@ public interface QuotedMessageMetadataOrBuilder * */ com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); + + /** + * + * + *
                +   * Optional. Specifies the quote type. If not set, defaults to REPLY in the
                +   * message read/write path for backward compatibility.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for quoteType. + */ + int getQuoteTypeValue(); + + /** + * + * + *
                +   * Optional. Specifies the quote type. If not set, defaults to REPLY in the
                +   * message read/write path for backward compatibility.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The quoteType. + */ + com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType(); + + /** + * + * + *
                +   * Output only. A snapshot of the quoted message's content.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the quotedMessageSnapshot field is set. + */ + boolean hasQuotedMessageSnapshot(); + + /** + * + * + *
                +   * Output only. A snapshot of the quoted message's content.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The quotedMessageSnapshot. + */ + com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot(); + + /** + * + * + *
                +   * Output only. A snapshot of the quoted message's content.
                +   * 
                + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder(); + + /** + * + * + *
                +   * Output only. Metadata about the source space of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the forwardedMetadata field is set. + */ + boolean hasForwardedMetadata(); + + /** + * + * + *
                +   * Output only. Metadata about the source space of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The forwardedMetadata. + */ + com.google.chat.v1.ForwardedMetadata getForwardedMetadata(); + + /** + * + * + *
                +   * Output only. Metadata about the source space of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java new file mode 100644 index 000000000000..744e518cbf5a --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java @@ -0,0 +1,2176 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
                + * Provides a snapshot of the content of the quoted message at the time of
                + * quoting or forwarding
                + * 
                + * + * Protobuf type {@code google.chat.v1.QuotedMessageSnapshot} + */ +@com.google.protobuf.Generated +public final class QuotedMessageSnapshot extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.QuotedMessageSnapshot) + QuotedMessageSnapshotOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QuotedMessageSnapshot"); + } + + // Use QuotedMessageSnapshot.newBuilder() to construct. + private QuotedMessageSnapshot(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QuotedMessageSnapshot() { + sender_ = ""; + text_ = ""; + formattedText_ = ""; + annotations_ = java.util.Collections.emptyList(); + attachments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.QuotedMessageSnapshot.class, + com.google.chat.v1.QuotedMessageSnapshot.Builder.class); + } + + public static final int SENDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sender_ = ""; + + /** + * + * + *
                +   * Output only. The quoted message's author name.
                +   * Populated for both REPLY & FORWARD quote types.
                +   * 
                + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sender. + */ + @java.lang.Override + public java.lang.String getSender() { + java.lang.Object ref = sender_; + 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(); + sender_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. The quoted message's author name.
                +   * Populated for both REPLY & FORWARD quote types.
                +   * 
                + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sender. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
                +   * Output only. Snapshot of the quoted message's text content.
                +   * 
                + * + * string text = 2 [(.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. Snapshot of the quoted message's text content.
                +   * 
                + * + * string text = 2 [(.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; + } + } + + public static final int FORMATTED_TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object formattedText_ = ""; + + /** + * + * + *
                +   * Output only. Contains the quoted message `text` with markups added to
                +   * support rich formatting like hyperlinks,custom emojis, markup, etc.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The formattedText. + */ + @java.lang.Override + public java.lang.String getFormattedText() { + java.lang.Object ref = formattedText_; + 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(); + formattedText_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. Contains the quoted message `text` with markups added to
                +   * support rich formatting like hyperlinks,custom emojis, markup, etc.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for formattedText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFormattedTextBytes() { + java.lang.Object ref = formattedText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + formattedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List annotations_; + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getAnnotationsList() { + return annotations_; + } + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAnnotationsOrBuilderList() { + return annotations_; + } + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAnnotationsCount() { + return annotations_.size(); + } + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.Annotation getAnnotations(int index) { + return annotations_.get(index); + } + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) { + return annotations_.get(index); + } + + public static final int ATTACHMENTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List attachments_; + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getAttachmentsList() { + return attachments_; + } + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAttachmentsOrBuilderList() { + return attachments_; + } + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAttachmentsCount() { + return attachments_.size(); + } + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.Attachment getAttachments(int index) { + return attachments_.get(index); + } + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index) { + return attachments_.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.GeneratedMessage.isStringEmpty(sender_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sender_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(formattedText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, formattedText_); + } + for (int i = 0; i < annotations_.size(); i++) { + output.writeMessage(4, annotations_.get(i)); + } + for (int i = 0; i < attachments_.size(); i++) { + output.writeMessage(5, attachments_.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.GeneratedMessage.isStringEmpty(sender_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sender_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(formattedText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, formattedText_); + } + for (int i = 0; i < annotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, annotations_.get(i)); + } + for (int i = 0; i < attachments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, attachments_.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.chat.v1.QuotedMessageSnapshot)) { + return super.equals(obj); + } + com.google.chat.v1.QuotedMessageSnapshot other = (com.google.chat.v1.QuotedMessageSnapshot) obj; + + if (!getSender().equals(other.getSender())) return false; + if (!getText().equals(other.getText())) return false; + if (!getFormattedText().equals(other.getFormattedText())) return false; + if (!getAnnotationsList().equals(other.getAnnotationsList())) return false; + if (!getAttachmentsList().equals(other.getAttachmentsList())) 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) + SENDER_FIELD_NUMBER; + hash = (53 * hash) + getSender().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + FORMATTED_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getFormattedText().hashCode(); + if (getAnnotationsCount() > 0) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationsList().hashCode(); + } + if (getAttachmentsCount() > 0) { + hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAttachmentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.QuotedMessageSnapshot 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.chat.v1.QuotedMessageSnapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.chat.v1.QuotedMessageSnapshot 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * Provides a snapshot of the content of the quoted message at the time of
                +   * quoting or forwarding
                +   * 
                + * + * Protobuf type {@code google.chat.v1.QuotedMessageSnapshot} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.QuotedMessageSnapshot) + com.google.chat.v1.QuotedMessageSnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.QuotedMessageSnapshot.class, + com.google.chat.v1.QuotedMessageSnapshot.Builder.class); + } + + // Construct using com.google.chat.v1.QuotedMessageSnapshot.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sender_ = ""; + text_ = ""; + formattedText_ = ""; + if (annotationsBuilder_ == null) { + annotations_ = java.util.Collections.emptyList(); + } else { + annotations_ = null; + annotationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (attachmentsBuilder_ == null) { + attachments_ = java.util.Collections.emptyList(); + } else { + attachments_ = null; + attachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshot getDefaultInstanceForType() { + return com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshot build() { + com.google.chat.v1.QuotedMessageSnapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshot buildPartial() { + com.google.chat.v1.QuotedMessageSnapshot result = + new com.google.chat.v1.QuotedMessageSnapshot(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.QuotedMessageSnapshot result) { + if (annotationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + annotations_ = java.util.Collections.unmodifiableList(annotations_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (attachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + attachments_ = java.util.Collections.unmodifiableList(attachments_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.attachments_ = attachments_; + } else { + result.attachments_ = attachmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.QuotedMessageSnapshot result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sender_ = sender_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.formattedText_ = formattedText_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.QuotedMessageSnapshot) { + return mergeFrom((com.google.chat.v1.QuotedMessageSnapshot) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.QuotedMessageSnapshot other) { + if (other == com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()) return this; + if (!other.getSender().isEmpty()) { + sender_ = other.sender_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getFormattedText().isEmpty()) { + formattedText_ = other.formattedText_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (annotationsBuilder_ == null) { + if (!other.annotations_.isEmpty()) { + if (annotations_.isEmpty()) { + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationsIsMutable(); + annotations_.addAll(other.annotations_); + } + onChanged(); + } + } else { + if (!other.annotations_.isEmpty()) { + if (annotationsBuilder_.isEmpty()) { + annotationsBuilder_.dispose(); + annotationsBuilder_ = null; + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000008); + annotationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAnnotationsFieldBuilder() + : null; + } else { + annotationsBuilder_.addAllMessages(other.annotations_); + } + } + } + if (attachmentsBuilder_ == null) { + if (!other.attachments_.isEmpty()) { + if (attachments_.isEmpty()) { + attachments_ = other.attachments_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAttachmentsIsMutable(); + attachments_.addAll(other.attachments_); + } + onChanged(); + } + } else { + if (!other.attachments_.isEmpty()) { + if (attachmentsBuilder_.isEmpty()) { + attachmentsBuilder_.dispose(); + attachmentsBuilder_ = null; + attachments_ = other.attachments_; + bitField0_ = (bitField0_ & ~0x00000010); + attachmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAttachmentsFieldBuilder() + : null; + } else { + attachmentsBuilder_.addAllMessages(other.attachments_); + } + } + } + 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: + { + sender_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + formattedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.chat.v1.Annotation m = + input.readMessage(com.google.chat.v1.Annotation.parser(), extensionRegistry); + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(m); + } else { + annotationsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.chat.v1.Attachment m = + input.readMessage(com.google.chat.v1.Attachment.parser(), extensionRegistry); + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(m); + } else { + attachmentsBuilder_.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 sender_ = ""; + + /** + * + * + *
                +     * Output only. The quoted message's author name.
                +     * Populated for both REPLY & FORWARD quote types.
                +     * 
                + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sender. + */ + public java.lang.String getSender() { + java.lang.Object ref = sender_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sender_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. The quoted message's author name.
                +     * Populated for both REPLY & FORWARD quote types.
                +     * 
                + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sender. + */ + public com.google.protobuf.ByteString getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. The quoted message's author name.
                +     * Populated for both REPLY & FORWARD quote types.
                +     * 
                + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sender to set. + * @return This builder for chaining. + */ + public Builder setSender(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sender_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The quoted message's author name.
                +     * Populated for both REPLY & FORWARD quote types.
                +     * 
                + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSender() { + sender_ = getDefaultInstance().getSender(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The quoted message's author name.
                +     * Populated for both REPLY & FORWARD quote types.
                +     * 
                + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sender to set. + * @return This builder for chaining. + */ + public Builder setSenderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sender_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + + /** + * + * + *
                +     * Output only. Snapshot of the quoted message's text content.
                +     * 
                + * + * string text = 2 [(.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. Snapshot of the quoted message's text content.
                +     * 
                + * + * string text = 2 [(.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. Snapshot of the quoted message's text content.
                +     * 
                + * + * string text = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Snapshot of the quoted message's text content.
                +     * 
                + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Snapshot of the quoted message's text content.
                +     * 
                + * + * string text = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object formattedText_ = ""; + + /** + * + * + *
                +     * Output only. Contains the quoted message `text` with markups added to
                +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The formattedText. + */ + public java.lang.String getFormattedText() { + java.lang.Object ref = formattedText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + formattedText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. Contains the quoted message `text` with markups added to
                +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for formattedText. + */ + public com.google.protobuf.ByteString getFormattedTextBytes() { + java.lang.Object ref = formattedText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + formattedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. Contains the quoted message `text` with markups added to
                +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The formattedText to set. + * @return This builder for chaining. + */ + public Builder setFormattedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + formattedText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Contains the quoted message `text` with markups added to
                +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFormattedText() { + formattedText_ = getDefaultInstance().getFormattedText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. Contains the quoted message `text` with markups added to
                +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for formattedText to set. + * @return This builder for chaining. + */ + public Builder setFormattedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + formattedText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List annotations_ = + java.util.Collections.emptyList(); + + private void ensureAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + annotations_ = new java.util.ArrayList(annotations_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Annotation, + com.google.chat.v1.Annotation.Builder, + com.google.chat.v1.AnnotationOrBuilder> + annotationsBuilder_; + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getAnnotationsList() { + if (annotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotations_); + } else { + return annotationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAnnotationsCount() { + if (annotationsBuilder_ == null) { + return annotations_.size(); + } else { + return annotationsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Annotation getAnnotations(int index) { + if (annotationsBuilder_ == null) { + return annotations_.get(index); + } else { + return annotationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnnotations(int index, com.google.chat.v1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.set(index, value); + onChanged(); + } else { + annotationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnnotations( + int index, com.google.chat.v1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.set(index, builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAnnotations(com.google.chat.v1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(value); + onChanged(); + } else { + annotationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAnnotations(int index, com.google.chat.v1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(index, value); + onChanged(); + } else { + annotationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAnnotations(com.google.chat.v1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAnnotations( + int index, com.google.chat.v1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAnnotations( + java.lang.Iterable values) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotations_); + onChanged(); + } else { + annotationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + annotationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAnnotations(int index) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.remove(index); + onChanged(); + } else { + annotationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Annotation.Builder getAnnotationsBuilder(int index) { + return internalGetAnnotationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) { + if (annotationsBuilder_ == null) { + return annotations_.get(index); + } else { + return annotationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAnnotationsOrBuilderList() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotations_); + } + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Annotation.Builder addAnnotationsBuilder() { + return internalGetAnnotationsFieldBuilder() + .addBuilder(com.google.chat.v1.Annotation.getDefaultInstance()); + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Annotation.Builder addAnnotationsBuilder(int index) { + return internalGetAnnotationsFieldBuilder() + .addBuilder(index, com.google.chat.v1.Annotation.getDefaultInstance()); + } + + /** + * + * + *
                +     * Output only. Annotations parsed from the text body of the quoted message.
                +     * Populated only for FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getAnnotationsBuilderList() { + return internalGetAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Annotation, + com.google.chat.v1.Annotation.Builder, + com.google.chat.v1.AnnotationOrBuilder> + internalGetAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Annotation, + com.google.chat.v1.Annotation.Builder, + com.google.chat.v1.AnnotationOrBuilder>( + annotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private java.util.List attachments_ = + java.util.Collections.emptyList(); + + private void ensureAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + attachments_ = new java.util.ArrayList(attachments_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Attachment, + com.google.chat.v1.Attachment.Builder, + com.google.chat.v1.AttachmentOrBuilder> + attachmentsBuilder_; + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getAttachmentsList() { + if (attachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(attachments_); + } else { + return attachmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAttachmentsCount() { + if (attachmentsBuilder_ == null) { + return attachments_.size(); + } else { + return attachmentsBuilder_.getCount(); + } + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Attachment getAttachments(int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); + } else { + return attachmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAttachments(int index, com.google.chat.v1.Attachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.set(index, value); + onChanged(); + } else { + attachmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAttachments( + int index, com.google.chat.v1.Attachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.set(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAttachments(com.google.chat.v1.Attachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.add(value); + onChanged(); + } else { + attachmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAttachments(int index, com.google.chat.v1.Attachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.add(index, value); + onChanged(); + } else { + attachmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAttachments(com.google.chat.v1.Attachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAttachments( + int index, com.google.chat.v1.Attachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAttachments( + java.lang.Iterable values) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachments_); + onChanged(); + } else { + attachmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAttachments() { + if (attachmentsBuilder_ == null) { + attachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + attachmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAttachments(int index) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.remove(index); + onChanged(); + } else { + attachmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Attachment.Builder getAttachmentsBuilder(int index) { + return internalGetAttachmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); + } else { + return attachmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAttachmentsOrBuilderList() { + if (attachmentsBuilder_ != null) { + return attachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attachments_); + } + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Attachment.Builder addAttachmentsBuilder() { + return internalGetAttachmentsFieldBuilder() + .addBuilder(com.google.chat.v1.Attachment.getDefaultInstance()); + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Attachment.Builder addAttachmentsBuilder(int index) { + return internalGetAttachmentsFieldBuilder() + .addBuilder(index, com.google.chat.v1.Attachment.getDefaultInstance()); + } + + /** + * + * + *
                +     * Output only. Attachments that were part of the quoted message. These are
                +     * copies of the quoted message's attachment metadata. Populated only for
                +     * FORWARD quote type.
                +     * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getAttachmentsBuilderList() { + return internalGetAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Attachment, + com.google.chat.v1.Attachment.Builder, + com.google.chat.v1.AttachmentOrBuilder> + internalGetAttachmentsFieldBuilder() { + if (attachmentsBuilder_ == null) { + attachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Attachment, + com.google.chat.v1.Attachment.Builder, + com.google.chat.v1.AttachmentOrBuilder>( + attachments_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + attachments_ = null; + } + return attachmentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.QuotedMessageSnapshot) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.QuotedMessageSnapshot) + private static final com.google.chat.v1.QuotedMessageSnapshot DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.QuotedMessageSnapshot(); + } + + public static com.google.chat.v1.QuotedMessageSnapshot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuotedMessageSnapshot 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.chat.v1.QuotedMessageSnapshot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshotOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshotOrBuilder.java new file mode 100644 index 000000000000..5f544bef6d30 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshotOrBuilder.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface QuotedMessageSnapshotOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.QuotedMessageSnapshot) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Output only. The quoted message's author name.
                +   * Populated for both REPLY & FORWARD quote types.
                +   * 
                + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sender. + */ + java.lang.String getSender(); + + /** + * + * + *
                +   * Output only. The quoted message's author name.
                +   * Populated for both REPLY & FORWARD quote types.
                +   * 
                + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sender. + */ + com.google.protobuf.ByteString getSenderBytes(); + + /** + * + * + *
                +   * Output only. Snapshot of the quoted message's text content.
                +   * 
                + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
                +   * Output only. Snapshot of the quoted message's text content.
                +   * 
                + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
                +   * Output only. Contains the quoted message `text` with markups added to
                +   * support rich formatting like hyperlinks,custom emojis, markup, etc.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The formattedText. + */ + java.lang.String getFormattedText(); + + /** + * + * + *
                +   * Output only. Contains the quoted message `text` with markups added to
                +   * support rich formatting like hyperlinks,custom emojis, markup, etc.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for formattedText. + */ + com.google.protobuf.ByteString getFormattedTextBytes(); + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getAnnotationsList(); + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.Annotation getAnnotations(int index); + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getAnnotationsOrBuilderList(); + + /** + * + * + *
                +   * Output only. Annotations parsed from the text body of the quoted message.
                +   * Populated only for FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index); + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getAttachmentsList(); + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.Attachment getAttachments(int index); + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAttachmentsCount(); + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getAttachmentsOrBuilderList(); + + /** + * + * + *
                +   * Output only. Attachments that were part of the quoted message. These are
                +   * copies of the quoted message's attachment metadata. Populated only for
                +   * FORWARD quote type.
                +   * 
                + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto index 47b1d66de202..60f1ad0c8ea3 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -292,6 +292,23 @@ message QuotedMessageMetadata { pattern: "spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}" }; + // The quote type of the quoted message. + enum QuoteType { + // Reserved. This value is unused. + QUOTE_TYPE_UNSPECIFIED = 0; + + // If quote_type is `REPLY`, you can do the following: + // + // * If you're replying in a thread, you can quote another message in that + // thread. + // + // * If you're creating a root message, you can quote another root message + // in that space. + // + // You can't quote a message reply from a different thread. + REPLY = 1; + } + // Required. Resource name of the message that is quoted. // // Format: `spaces/{space}/messages/{message}` @@ -310,6 +327,63 @@ message QuotedMessageMetadata { // message, the request fails. google.protobuf.Timestamp last_update_time = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies the quote type. If not set, defaults to REPLY in the + // message read/write path for backward compatibility. + QuoteType quote_type = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A snapshot of the quoted message's content. + QuotedMessageSnapshot quoted_message_snapshot = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata about the source space of the quoted message. + // Populated only for FORWARD quote type. + ForwardedMetadata forwarded_metadata = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Provides a snapshot of the content of the quoted message at the time of +// quoting or forwarding +message QuotedMessageSnapshot { + // Output only. The quoted message's author name. + // Populated for both REPLY & FORWARD quote types. + string sender = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Snapshot of the quoted message's text content. + string text = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Contains the quoted message `text` with markups added to + // support rich formatting like hyperlinks,custom emojis, markup, etc. + // Populated only for FORWARD quote type. + string formatted_text = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Annotations parsed from the text body of the quoted message. + // Populated only for FORWARD quote type. + repeated Annotation annotations = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Attachments that were part of the quoted message. These are + // copies of the quoted message's attachment metadata. Populated only for + // FORWARD quote type. + repeated Attachment attachments = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata about the source space from which a message was forwarded. +message ForwardedMetadata { + // Output only. The resource name of the source space. + // Format: spaces/{space} + string space = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "chat.googleapis.com/Space" } + ]; + + // Output only. The display name of the source space or DM at the time of + // forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + // is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + // a generated name based on members' first names, limited to 5 including the + // creator (e.g., "User A, User B"). + string space_display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A thread in a Google Chat space. For example usage, see From c299adb3b867ea43e5c6ecb6cc8b900b972640c8 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 4 Feb 2026 02:54:39 +0000 Subject: [PATCH 09/12] chore: Update generation configuration at Wed Feb 4 02:54:32 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 7b4a1f78b6e2..f1c1048ea371 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.66.0 -googleapis_commitish: 85b3f459f91cd08669c27da47d07bb57f6d9aa4d +googleapis_commitish: 7a5706618f42f482acf583febcc7b977b66c25b2 libraries_bom_version: 26.75.0 # the libraries are ordered with respect to library name, which is From 10f48fbd3c9083e9694c1207216a13ea5a460f25 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 4 Feb 2026 04:25:17 +0000 Subject: [PATCH 10/12] chore: generate libraries at Wed Feb 4 02:57:14 UTC 2026 --- .../google/cloud/gkehub/v1/GkeHubClient.java | 8614 ++++++++++++++--- .../cloud/gkehub/v1/GkeHubSettings.java | 655 ++ .../cloud/gkehub/v1/gapic_metadata.json | 99 + .../cloud/gkehub/v1/stub/GkeHubStub.java | 364 + .../gkehub/v1/stub/GkeHubStubSettings.java | 2380 ++++- .../cloud/gkehub/v1/stub/GrpcGkeHubStub.java | 1684 +++- .../gkehub/v1/stub/HttpJsonGkeHubStub.java | 2823 +++++- .../reflect-config.json | 1342 ++- .../gkehub/v1/GkeHubClientHttpJsonTest.java | 3597 +++++++ .../cloud/gkehub/v1/GkeHubClientTest.java | 3226 ++++++ .../cloud/gkehub/v1/MockGkeHubImpl.java | 713 ++ .../google/cloud/gkehub/v1/GkeHubGrpc.java | 5475 +++++++++-- .../v1/FeatureSpec.java | 733 ++ .../v1/FeatureSpecOrBuilder.java | 90 + .../v1/FeatureState.java | 405 + .../v1/FeatureStateOrBuilder.java | 27 + .../v1/RBACRoleBindingActuationProto.java | 101 + .../gkehub/v1/BinaryAuthorizationConfig.java | 1996 ++++ .../BinaryAuthorizationConfigOrBuilder.java | 127 + .../cloud/gkehub/v1/CommonFeatureState.java | 477 +- .../v1/CommonFeatureStateOrBuilder.java | 52 +- .../gkehub/v1/CompliancePostureConfig.java | 1940 ++++ .../v1/CompliancePostureConfigOrBuilder.java | 124 + .../cloud/gkehub/v1/CreateFeatureRequest.java | 14 +- .../v1/CreateFeatureRequestOrBuilder.java | 4 +- .../cloud/gkehub/v1/CreateFleetRequest.java | 908 ++ .../v1/CreateFleetRequestOrBuilder.java | 97 + .../v1/CreateMembershipBindingRequest.java | 1135 +++ ...eateMembershipBindingRequestOrBuilder.java | 131 + ...reateMembershipRBACRoleBindingRequest.java | 1193 +++ ...ershipRBACRoleBindingRequestOrBuilder.java | 145 + .../v1/CreateScopeNamespaceRequest.java | 1180 +++ .../CreateScopeNamespaceRequestOrBuilder.java | 145 + .../v1/CreateScopeRBACRoleBindingRequest.java | 1187 +++ ...eScopeRBACRoleBindingRequestOrBuilder.java | 145 + .../cloud/gkehub/v1/CreateScopeRequest.java | 1104 +++ .../v1/CreateScopeRequestOrBuilder.java | 125 + .../cloud/gkehub/v1/DefaultClusterConfig.java | 1371 +++ .../v1/DefaultClusterConfigOrBuilder.java | 158 + .../cloud/gkehub/v1/DeleteFleetRequest.java | 616 ++ .../v1/DeleteFleetRequestOrBuilder.java | 60 + .../v1/DeleteMembershipBindingRequest.java | 618 ++ ...leteMembershipBindingRequestOrBuilder.java | 60 + ...eleteMembershipRBACRoleBindingRequest.java | 629 ++ ...ershipRBACRoleBindingRequestOrBuilder.java | 60 + .../v1/DeleteScopeNamespaceRequest.java | 618 ++ .../DeleteScopeNamespaceRequestOrBuilder.java | 60 + .../v1/DeleteScopeRBACRoleBindingRequest.java | 623 ++ ...eScopeRBACRoleBindingRequestOrBuilder.java | 60 + .../cloud/gkehub/v1/DeleteScopeRequest.java | 616 ++ .../v1/DeleteScopeRequestOrBuilder.java | 60 + .../com/google/cloud/gkehub/v1/Feature.java | 5398 +++++++---- .../cloud/gkehub/v1/FeatureOrBuilder.java | 392 +- .../google/cloud/gkehub/v1/FeatureProto.java | 115 +- .../cloud/gkehub/v1/FeatureResourceState.java | 16 +- .../com/google/cloud/gkehub/v1/Fleet.java | 2920 ++++++ .../cloud/gkehub/v1/FleetLifecycleState.java | 794 ++ .../v1/FleetLifecycleStateOrBuilder.java | 58 + .../com/google/cloud/gkehub/v1/FleetName.java | 345 + .../cloud/gkehub/v1/FleetOrBuilder.java | 397 + .../google/cloud/gkehub/v1/FleetProto.java | 611 ++ ...eMembershipRBACRoleBindingYAMLRequest.java | 1204 +++ ...ipRBACRoleBindingYAMLRequestOrBuilder.java | 145 + ...MembershipRBACRoleBindingYAMLResponse.java | 618 ++ ...pRBACRoleBindingYAMLResponseOrBuilder.java | 54 + .../cloud/gkehub/v1/GetFeatureRequest.java | 109 + .../gkehub/v1/GetFeatureRequestOrBuilder.java | 16 + .../cloud/gkehub/v1/GetFleetRequest.java | 616 ++ .../gkehub/v1/GetFleetRequestOrBuilder.java | 60 + .../v1/GetMembershipBindingRequest.java | 618 ++ .../GetMembershipBindingRequestOrBuilder.java | 60 + .../GetMembershipRBACRoleBindingRequest.java | 625 ++ ...ershipRBACRoleBindingRequestOrBuilder.java | 60 + .../gkehub/v1/GetScopeNamespaceRequest.java | 617 ++ .../v1/GetScopeNamespaceRequestOrBuilder.java | 60 + .../v1/GetScopeRBACRoleBindingRequest.java | 618 ++ ...tScopeRBACRoleBindingRequestOrBuilder.java | 60 + .../cloud/gkehub/v1/GetScopeRequest.java | 616 ++ .../gkehub/v1/GetScopeRequestOrBuilder.java | 60 + .../v1/ListBoundMembershipsRequest.java | 1140 +++ .../ListBoundMembershipsRequestOrBuilder.java | 138 + .../v1/ListBoundMembershipsResponse.java | 1416 +++ ...ListBoundMembershipsResponseOrBuilder.java | 168 + .../cloud/gkehub/v1/ListFeaturesRequest.java | 109 + .../v1/ListFeaturesRequestOrBuilder.java | 16 + .../cloud/gkehub/v1/ListFleetsRequest.java | 938 ++ .../gkehub/v1/ListFleetsRequestOrBuilder.java | 109 + .../cloud/gkehub/v1/ListFleetsResponse.java | 1119 +++ .../v1/ListFleetsResponseOrBuilder.java | 113 + .../v1/ListMembershipBindingsRequest.java | 1122 +++ ...istMembershipBindingsRequestOrBuilder.java | 133 + .../v1/ListMembershipBindingsResponse.java | 1430 +++ ...stMembershipBindingsResponseOrBuilder.java | 168 + ...ListMembershipRBACRoleBindingsRequest.java | 935 ++ ...rshipRBACRoleBindingsRequestOrBuilder.java | 105 + ...istMembershipRBACRoleBindingsResponse.java | 1438 +++ ...shipRBACRoleBindingsResponseOrBuilder.java | 168 + .../gkehub/v1/ListPermittedScopesRequest.java | 926 ++ .../ListPermittedScopesRequestOrBuilder.java | 105 + .../v1/ListPermittedScopesResponse.java | 1122 +++ .../ListPermittedScopesResponseOrBuilder.java | 113 + .../gkehub/v1/ListScopeNamespacesRequest.java | 926 ++ .../ListScopeNamespacesRequestOrBuilder.java | 105 + .../v1/ListScopeNamespacesResponse.java | 1131 +++ .../ListScopeNamespacesResponseOrBuilder.java | 114 + .../v1/ListScopeRBACRoleBindingsRequest.java | 927 ++ ...ScopeRBACRoleBindingsRequestOrBuilder.java | 105 + .../v1/ListScopeRBACRoleBindingsResponse.java | 1142 +++ ...copeRBACRoleBindingsResponseOrBuilder.java | 114 + .../cloud/gkehub/v1/ListScopesRequest.java | 924 ++ .../gkehub/v1/ListScopesRequestOrBuilder.java | 105 + .../cloud/gkehub/v1/ListScopesResponse.java | 1119 +++ .../v1/ListScopesResponseOrBuilder.java | 113 + .../cloud/gkehub/v1/MembershipBinding.java | 2709 ++++++ .../v1/MembershipBindingLifecycleState.java | 802 ++ ...bershipBindingLifecycleStateOrBuilder.java | 58 + .../gkehub/v1/MembershipBindingName.java | 269 + .../gkehub/v1/MembershipBindingOrBuilder.java | 358 + .../com/google/cloud/gkehub/v1/Namespace.java | 2953 ++++++ .../gkehub/v1/NamespaceLifecycleState.java | 799 ++ .../v1/NamespaceLifecycleStateOrBuilder.java | 58 + .../google/cloud/gkehub/v1/NamespaceName.java | 257 + .../cloud/gkehub/v1/NamespaceOrBuilder.java | 430 + .../cloud/gkehub/v1/OperationMetadata.java | 28 +- .../gkehub/v1/OperationMetadataOrBuilder.java | 7 +- .../cloud/gkehub/v1/RBACRoleBinding.java | 4295 ++++++++ .../v1/RBACRoleBindingLifecycleState.java | 804 ++ ...BACRoleBindingLifecycleStateOrBuilder.java | 58 + .../cloud/gkehub/v1/RBACRoleBindingName.java | 411 + .../gkehub/v1/RBACRoleBindingOrBuilder.java | 442 + .../com/google/cloud/gkehub/v1/Scope.java | 2749 ++++++ .../cloud/gkehub/v1/ScopeFeatureSpec.java | 395 + .../gkehub/v1/ScopeFeatureSpecOrBuilder.java | 27 + .../cloud/gkehub/v1/ScopeFeatureState.java | 716 ++ .../gkehub/v1/ScopeFeatureStateOrBuilder.java | 71 + .../cloud/gkehub/v1/ScopeLifecycleState.java | 794 ++ .../v1/ScopeLifecycleStateOrBuilder.java | 58 + .../com/google/cloud/gkehub/v1/ScopeName.java | 223 + .../cloud/gkehub/v1/ScopeOrBuilder.java | 400 + .../gkehub/v1/SecurityPostureConfig.java | 1135 +++ .../v1/SecurityPostureConfigOrBuilder.java | 82 + .../google/cloud/gkehub/v1/ServiceProto.java | 1006 +- .../cloud/gkehub/v1/UpdateFeatureRequest.java | 14 +- .../v1/UpdateFeatureRequestOrBuilder.java | 4 +- .../cloud/gkehub/v1/UpdateFleetRequest.java | 1022 ++ .../v1/UpdateFleetRequestOrBuilder.java | 114 + .../v1/UpdateMembershipBindingRequest.java | 1017 ++ ...dateMembershipBindingRequestOrBuilder.java | 111 + ...pdateMembershipRBACRoleBindingRequest.java | 1038 ++ ...ershipRBACRoleBindingRequestOrBuilder.java | 114 + .../v1/UpdateScopeNamespaceRequest.java | 1037 ++ .../UpdateScopeNamespaceRequestOrBuilder.java | 117 + .../v1/UpdateScopeRBACRoleBindingRequest.java | 1032 ++ ...eScopeRBACRoleBindingRequestOrBuilder.java | 114 + .../cloud/gkehub/v1/UpdateScopeRequest.java | 998 ++ .../v1/UpdateScopeRequestOrBuilder.java | 108 + .../google/cloud/gkehub/v1/feature.proto | 111 +- .../proto/google/cloud/gkehub/v1/fleet.proto | 538 + .../rbacrolebindingactuation.proto | 40 + .../google/cloud/gkehub/v1/service.proto | 1261 ++- .../SyncCreateSetCredentialsProvider.java | 44 + .../gkehub/create/SyncCreateSetEndpoint.java | 40 + .../SyncCreateUseHttpJsonTransport.java | 39 + .../createfeature/AsyncCreateFeature.java | 53 + .../createfeature/AsyncCreateFeatureLRO.java | 54 + .../createfeature/SyncCreateFeature.java | 49 + ...reateFeatureLocationnameFeatureString.java | 44 + .../SyncCreateFeatureStringFeatureString.java | 44 + .../gkehub/createfleet/AsyncCreateFleet.java | 51 + .../createfleet/AsyncCreateFleetLRO.java | 52 + .../gkehub/createfleet/SyncCreateFleet.java | 47 + .../SyncCreateFleetLocationnameFleet.java | 43 + .../SyncCreateFleetStringFleet.java | 43 + .../AsyncCreateMembership.java | 53 + .../AsyncCreateMembershipLRO.java | 54 + .../SyncCreateMembership.java | 49 + ...embershipLocationnameMembershipString.java | 45 + ...reateMembershipStringMembershipString.java | 45 + .../AsyncCreateMembershipBinding.java | 53 + .../AsyncCreateMembershipBindingLRO.java | 53 + .../SyncCreateMembershipBinding.java | 48 + ...MembershipnameMembershipbindingString.java | 48 + ...pBindingStringMembershipbindingString.java | 47 + .../AsyncCreateMembershipRBACRoleBinding.java | 53 + ...yncCreateMembershipRBACRoleBindingLRO.java | 53 + .../SyncCreateMembershipRBACRoleBinding.java | 48 + ...ngMembershipnameRbacrolebindingString.java | 48 + ...BindingScopenameRbacrolebindingString.java | 48 + ...oleBindingStringRbacrolebindingString.java | 48 + .../gkehub/createscope/AsyncCreateScope.java | 52 + .../createscope/AsyncCreateScopeLRO.java | 53 + .../gkehub/createscope/SyncCreateScope.java | 48 + ...yncCreateScopeLocationnameScopeString.java | 44 + .../SyncCreateScopeStringScopeString.java | 44 + .../AsyncCreateScopeNamespace.java | 52 + .../AsyncCreateScopeNamespaceLRO.java | 53 + .../SyncCreateScopeNamespace.java | 48 + ...copeNamespaceScopenameNamespaceString.java | 45 + ...teScopeNamespaceStringNamespaceString.java | 45 + .../AsyncCreateScopeRBACRoleBinding.java | 53 + .../AsyncCreateScopeRBACRoleBindingLRO.java | 53 + .../SyncCreateScopeRBACRoleBinding.java | 48 + ...ngMembershipnameRbacrolebindingString.java | 48 + ...BindingScopenameRbacrolebindingString.java | 48 + ...oleBindingStringRbacrolebindingString.java | 47 + .../deletefeature/AsyncDeleteFeature.java | 51 + .../deletefeature/AsyncDeleteFeatureLRO.java | 53 + .../deletefeature/SyncDeleteFeature.java | 48 + .../SyncDeleteFeatureFeaturename.java | 42 + .../SyncDeleteFeatureString.java | 42 + .../gkehub/deletefleet/AsyncDeleteFleet.java | 51 + .../deletefleet/AsyncDeleteFleetLRO.java | 53 + .../gkehub/deletefleet/SyncDeleteFleet.java | 48 + .../deletefleet/SyncDeleteFleetFleetname.java | 42 + .../deletefleet/SyncDeleteFleetString.java | 43 + .../AsyncDeleteMembership.java | 51 + .../AsyncDeleteMembershipLRO.java | 53 + .../SyncDeleteMembership.java | 48 + .../SyncDeleteMembershipMembershipname.java | 42 + .../SyncDeleteMembershipString.java | 42 + .../AsyncDeleteMembershipBinding.java | 53 + .../AsyncDeleteMembershipBindingLRO.java | 54 + .../SyncDeleteMembershipBinding.java | 49 + ...embershipBindingMembershipbindingname.java | 44 + .../SyncDeleteMembershipBindingString.java | 44 + .../AsyncDeleteMembershipRBACRoleBinding.java | 53 + ...yncDeleteMembershipRBACRoleBindingLRO.java | 54 + .../SyncDeleteMembershipRBACRoleBinding.java | 49 + ...hipRBACRoleBindingRbacrolebindingname.java | 44 + ...DeleteMembershipRBACRoleBindingString.java | 45 + .../gkehub/deletescope/AsyncDeleteScope.java | 49 + .../deletescope/AsyncDeleteScopeLRO.java | 51 + .../gkehub/deletescope/SyncDeleteScope.java | 46 + .../deletescope/SyncDeleteScopeScopename.java | 42 + .../deletescope/SyncDeleteScopeString.java | 42 + .../AsyncDeleteScopeNamespace.java | 50 + .../AsyncDeleteScopeNamespaceLRO.java | 52 + .../SyncDeleteScopeNamespace.java | 47 + ...SyncDeleteScopeNamespaceNamespacename.java | 42 + .../SyncDeleteScopeNamespaceString.java | 43 + .../AsyncDeleteScopeRBACRoleBinding.java | 53 + .../AsyncDeleteScopeRBACRoleBindingLRO.java | 54 + .../SyncDeleteScopeRBACRoleBinding.java | 49 + ...opeRBACRoleBindingRbacrolebindingname.java | 44 + .../SyncDeleteScopeRBACRoleBindingString.java | 45 + .../AsyncGenerateConnectManifest.java | 57 + .../SyncGenerateConnectManifest.java | 53 + ...GenerateMembershipRBACRoleBindingYAML.java | 53 + ...GenerateMembershipRBACRoleBindingYAML.java | 50 + .../v1/gkehub/getfeature/AsyncGetFeature.java | 50 + .../v1/gkehub/getfeature/SyncGetFeature.java | 47 + .../getfeature/SyncGetFeatureFeaturename.java | 42 + .../getfeature/SyncGetFeatureString.java | 42 + .../v1/gkehub/getfleet/AsyncGetFleet.java | 51 + .../v1/gkehub/getfleet/SyncGetFleet.java | 48 + .../getfleet/SyncGetFleetFleetname.java | 42 + .../gkehub/getfleet/SyncGetFleetString.java | 43 + .../getmembership/AsyncGetMembership.java | 49 + .../getmembership/SyncGetMembership.java | 46 + .../SyncGetMembershipMembershipname.java | 42 + .../SyncGetMembershipString.java | 42 + .../AsyncGetMembershipBinding.java | 53 + .../SyncGetMembershipBinding.java | 49 + ...embershipBindingMembershipbindingname.java | 44 + .../SyncGetMembershipBindingString.java | 44 + .../AsyncGetMembershipRBACRoleBinding.java | 53 + .../SyncGetMembershipRBACRoleBinding.java | 49 + ...hipRBACRoleBindingRbacrolebindingname.java | 44 + ...yncGetMembershipRBACRoleBindingString.java | 45 + .../v1/gkehub/getscope/AsyncGetScope.java | 49 + .../v1/gkehub/getscope/SyncGetScope.java | 46 + .../getscope/SyncGetScopeScopename.java | 42 + .../gkehub/getscope/SyncGetScopeString.java | 42 + .../AsyncGetScopeNamespace.java | 50 + .../SyncGetScopeNamespace.java | 47 + .../SyncGetScopeNamespaceNamespacename.java | 42 + .../SyncGetScopeNamespaceString.java | 43 + .../AsyncGetScopeRBACRoleBinding.java | 53 + .../SyncGetScopeRBACRoleBinding.java | 49 + ...opeRBACRoleBindingRbacrolebindingname.java | 44 + .../SyncGetScopeRBACRoleBindingString.java | 45 + .../AsyncListBoundMemberships.java | 55 + .../AsyncListBoundMembershipsPaged.java | 63 + .../SyncListBoundMemberships.java | 51 + .../SyncListBoundMembershipsScopename.java | 44 + .../SyncListBoundMembershipsString.java | 44 + .../listfeatures/AsyncListFeatures.java | 56 + .../listfeatures/AsyncListFeaturesPaged.java | 64 + .../gkehub/listfeatures/SyncListFeatures.java | 53 + .../SyncListFeaturesLocationname.java | 44 + .../listfeatures/SyncListFeaturesString.java | 44 + .../v1/gkehub/listfleets/AsyncListFleets.java | 53 + .../listfleets/AsyncListFleetsPaged.java | 61 + .../v1/gkehub/listfleets/SyncListFleets.java | 50 + .../SyncListFleetsLocationname.java | 44 + .../listfleets/SyncListFleetsString.java | 44 + .../AsyncListMembershipBindings.java | 55 + .../AsyncListMembershipBindingsPaged.java | 63 + .../SyncListMembershipBindings.java | 51 + ...cListMembershipBindingsMembershipname.java | 44 + .../SyncListMembershipBindingsString.java | 44 + .../AsyncListMembershipRBACRoleBindings.java | 54 + ...ncListMembershipRBACRoleBindingsPaged.java | 62 + .../SyncListMembershipRBACRoleBindings.java | 51 + ...bershipRBACRoleBindingsMembershipname.java | 45 + ...stMembershipRBACRoleBindingsScopename.java | 45 + ...cListMembershipRBACRoleBindingsString.java | 45 + .../listmemberships/AsyncListMemberships.java | 56 + .../AsyncListMembershipsPaged.java | 63 + .../listmemberships/SyncListMemberships.java | 52 + .../SyncListMembershipsLocationname.java | 44 + .../SyncListMembershipsString.java | 44 + .../AsyncListPermittedScopes.java | 53 + .../AsyncListPermittedScopesPaged.java | 62 + .../SyncListPermittedScopes.java | 50 + .../SyncListPermittedScopesLocationname.java | 44 + .../SyncListPermittedScopesString.java | 44 + .../AsyncListScopeNamespaces.java | 54 + .../AsyncListScopeNamespacesPaged.java | 62 + .../SyncListScopeNamespaces.java | 50 + .../SyncListScopeNamespacesScopename.java | 44 + .../SyncListScopeNamespacesString.java | 44 + .../AsyncListScopeRBACRoleBindings.java | 54 + .../AsyncListScopeRBACRoleBindingsPaged.java | 62 + .../SyncListScopeRBACRoleBindings.java | 50 + ...stScopeRBACRoleBindingsMembershipname.java | 44 + ...yncListScopeRBACRoleBindingsScopename.java | 44 + .../SyncListScopeRBACRoleBindingsString.java | 44 + .../v1/gkehub/listscopes/AsyncListScopes.java | 53 + .../listscopes/AsyncListScopesPaged.java | 61 + .../v1/gkehub/listscopes/SyncListScopes.java | 50 + .../SyncListScopesLocationname.java | 44 + .../listscopes/SyncListScopesString.java | 44 + .../updatefeature/AsyncUpdateFeature.java | 54 + .../updatefeature/AsyncUpdateFeatureLRO.java | 55 + .../updatefeature/SyncUpdateFeature.java | 50 + ...ateFeatureFeaturenameFeatureFieldmask.java | 45 + ...ncUpdateFeatureStringFeatureFieldmask.java | 45 + .../gkehub/updatefleet/AsyncUpdateFleet.java | 51 + .../updatefleet/AsyncUpdateFleetLRO.java | 52 + .../gkehub/updatefleet/SyncUpdateFleet.java | 47 + .../SyncUpdateFleetFleetFieldmask.java | 43 + .../AsyncUpdateMembership.java | 54 + .../AsyncUpdateMembershipLRO.java | 55 + .../SyncUpdateMembership.java | 50 + ...shipMembershipnameMembershipFieldmask.java | 45 + ...teMembershipStringMembershipFieldmask.java | 45 + .../AsyncUpdateMembershipBinding.java | 52 + .../AsyncUpdateMembershipBindingLRO.java | 52 + .../SyncUpdateMembershipBinding.java | 47 + ...shipBindingMembershipbindingFieldmask.java | 44 + .../AsyncUpdateMembershipRBACRoleBinding.java | 52 + ...yncUpdateMembershipRBACRoleBindingLRO.java | 52 + .../SyncUpdateMembershipRBACRoleBinding.java | 47 + ...ACRoleBindingRbacrolebindingFieldmask.java | 45 + .../gkehub/updatescope/AsyncUpdateScope.java | 51 + .../updatescope/AsyncUpdateScopeLRO.java | 52 + .../gkehub/updatescope/SyncUpdateScope.java | 47 + .../SyncUpdateScopeScopeFieldmask.java | 43 + .../AsyncUpdateScopeNamespace.java | 51 + .../AsyncUpdateScopeNamespaceLRO.java | 52 + .../SyncUpdateScopeNamespace.java | 47 + ...pdateScopeNamespaceNamespaceFieldmask.java | 43 + .../AsyncUpdateScopeRBACRoleBinding.java | 52 + .../AsyncUpdateScopeRBACRoleBindingLRO.java | 52 + .../SyncUpdateScopeRBACRoleBinding.java | 47 + ...ACRoleBindingRbacrolebindingFieldmask.java | 44 + .../SyncCreateMembership.java | 53 + .../getmembership/SyncGetMembership.java | 55 + .../SyncCreateMembership.java | 53 + .../getmembership/SyncGetMembership.java | 55 + 371 files changed, 124441 insertions(+), 4325 deletions(-) create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpec.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpecOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureState.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureStateOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/RBACRoleBindingActuationProto.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfig.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfigOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfig.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfigOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfig.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfigOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Fleet.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleState.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleStateOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetProto.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponse.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponse.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponseOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponse.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponseOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponse.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponseOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponse.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponseOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponse.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponseOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponse.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponseOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponse.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponseOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponse.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponseOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBinding.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleState.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleStateOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Namespace.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleState.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleStateOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBinding.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleState.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleStateOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Scope.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpec.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpecOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureState.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureStateOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleState.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleStateOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfig.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfigOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequest.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequestOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/fleet.proto create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetEndpoint.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeature.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeatureLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeature.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureLocationnameFeatureString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureStringFeatureString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleetLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetLocationnameFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetStringFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembershipLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipLocationnameMembershipString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipStringMembershipString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBindingLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingMembershipnameMembershipbindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingStringMembershipbindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBindingLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingStringRbacrolebindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScope.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScopeLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScope.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeLocationnameScopeString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeStringScopeString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespace.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespaceLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespace.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceScopenameNamespaceString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceStringNamespaceString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBindingLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingScopenameRbacrolebindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingStringRbacrolebindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeature.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeatureLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeature.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureFeaturename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleetLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetFleetname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembershipLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipMembershipname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBindingLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingMembershipbindingname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBindingLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingRbacrolebindingname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScope.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScopeLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScope.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeScopename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespace.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespaceLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespace.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceNamespacename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBindingLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingRbacrolebindingname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/AsyncGenerateConnectManifest.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/SyncGenerateConnectManifest.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/AsyncGenerateMembershipRBACRoleBindingYAML.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/SyncGenerateMembershipRBACRoleBindingYAML.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/AsyncGetFeature.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeature.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureFeaturename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/AsyncGetFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetFleetname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/AsyncGetMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipMembershipname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/AsyncGetMembershipBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingMembershipbindingname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/AsyncGetMembershipRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingRbacrolebindingname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/AsyncGetScope.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScope.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeScopename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/AsyncGetScopeNamespace.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespace.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceNamespacename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/AsyncGetScopeRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingRbacrolebindingname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMemberships.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMembershipsPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMemberships.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsScopename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeatures.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeaturesPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeatures.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesLocationname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleets.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleetsPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleets.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsLocationname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindings.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindingsPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindings.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsMembershipname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindings.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindingsPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindings.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsMembershipname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsScopename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMemberships.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMembershipsPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMemberships.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsLocationname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopes.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopesPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopes.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesLocationname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespaces.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespacesPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespaces.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesScopename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindings.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindingsPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindings.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsMembershipname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsScopename.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopes.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopesPaged.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopes.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesLocationname.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesString.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeature.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeatureLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeature.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureFeaturenameFeatureFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureStringFeatureFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleetLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleet.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleetFleetFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembershipLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBindingLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBindingMembershipbindingFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBindingLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScope.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScopeLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScope.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScopeScopeFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespace.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespaceLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespace.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespaceNamespaceFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBindingLRO.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBinding.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/createmembership/SyncCreateMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/getmembership/SyncGetMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/createmembership/SyncCreateMembership.java create mode 100644 java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/getmembership/SyncGetMembership.java diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java index 6dbef3a33296..3c40b975a666 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java @@ -105,6 +105,26 @@ * * * + *

                ListBoundMemberships + *

                Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions. + * + *

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

                + *
                  + *
                • listBoundMemberships(ListBoundMembershipsRequest request) + *

                + *

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

                + *
                  + *
                • listBoundMemberships(ScopeName scopeName) + *

                • listBoundMemberships(String scopeName) + *

                + *

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

                + *
                  + *
                • listBoundMembershipsPagedCallable() + *

                • listBoundMembershipsCallable() + *

                + * + * + * *

                ListFeatures *

                Lists Features in a given project and location. * @@ -299,267 +319,6018 @@ *

              * * - * - * - *

              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 GkeHubSettings 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
              - * GkeHubSettings gkeHubSettings =
              - *     GkeHubSettings.newBuilder()
              - *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
              - *         .build();
              - * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
              - * }
              - * - *

              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
              - * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
              - * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
              - * }
              - * - *

              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
              - * GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build();
              - * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
              - * }
              - * - *

              Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class GkeHubClient implements BackgroundResource { - private final GkeHubSettings settings; - private final GkeHubStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of GkeHubClient with default settings. */ - public static final GkeHubClient create() throws IOException { - return create(GkeHubSettings.newBuilder().build()); - } - - /** - * Constructs an instance of GkeHubClient, 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 GkeHubClient create(GkeHubSettings settings) throws IOException { - return new GkeHubClient(settings); - } - - /** - * Constructs an instance of GkeHubClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(GkeHubSettings). - */ - public static final GkeHubClient create(GkeHubStub stub) { - return new GkeHubClient(stub); - } - - /** - * Constructs an instance of GkeHubClient, 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 GkeHubClient(GkeHubSettings settings) throws IOException { - this.settings = settings; - this.stub = ((GkeHubStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected GkeHubClient(GkeHubStub 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 GkeHubSettings getSettings() { - return settings; - } - - public GkeHubStub 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 Memberships 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              -   *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
              -   *     // doThingsWith(element);
              -   *   }
              -   * }
              -   * }
              - * - * @param parent Required. The parent (project and location) where the Memberships will be listed. - * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list - * memberships in all the regions. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMembershipsPagedResponse listMemberships(LocationName parent) { - ListMembershipsRequest request = - ListMembershipsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listMemberships(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Memberships 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              -   *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
              -   *     // doThingsWith(element);
              -   *   }
              -   * }
              -   * }
              - * - * @param parent Required. The parent (project and location) where the Memberships will be listed. - * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list - * memberships in all the regions. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMembershipsPagedResponse listMemberships(String parent) { - ListMembershipsRequest request = ListMembershipsRequest.newBuilder().setParent(parent).build(); - return listMemberships(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Memberships 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   ListMembershipsRequest request =
              -   *       ListMembershipsRequest.newBuilder()
              -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              -   *           .setPageSize(883849137)
              -   *           .setPageToken("pageToken873572522")
              -   *           .setFilter("filter-1274492040")
              -   *           .setOrderBy("orderBy-1207110587")
              -   *           .build();
              -   *   for (Membership element : gkeHubClient.listMemberships(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 ListMembershipsPagedResponse listMemberships(ListMembershipsRequest request) { - return listMembershipsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Memberships 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   ListMembershipsRequest request =
              -   *       ListMembershipsRequest.newBuilder()
              -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              -   *           .setPageSize(883849137)
              -   *           .setPageToken("pageToken873572522")
              -   *           .setFilter("filter-1274492040")
              -   *           .setOrderBy("orderBy-1207110587")
              + *    
              + *      

              CreateFleet + *

              Creates a fleet. + * + *

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

              + *
                + *
              • createFleetAsync(CreateFleetRequest request) + *

              + *

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

              + *
                + *
              • createFleetAsync(LocationName parent, Fleet fleet) + *

              • createFleetAsync(String parent, Fleet fleet) + *

              + *

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

              + *
                + *
              • createFleetOperationCallable() + *

              • createFleetCallable() + *

              + * + * + * + *

              GetFleet + *

              Returns the details of a fleet. + * + *

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

              + *
                + *
              • getFleet(GetFleetRequest request) + *

              + *

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

              + *
                + *
              • getFleet(FleetName name) + *

              • getFleet(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.

              + *
                + *
              • getFleetCallable() + *

              + * + * + * + *

              UpdateFleet + *

              Updates a fleet. + * + *

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

              + *
                + *
              • updateFleetAsync(UpdateFleetRequest request) + *

              + *

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

              + *
                + *
              • updateFleetAsync(Fleet fleet, 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.

              + *
                + *
              • updateFleetOperationCallable() + *

              • updateFleetCallable() + *

              + * + * + * + *

              DeleteFleet + *

              Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

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

              + *
                + *
              • deleteFleetAsync(DeleteFleetRequest request) + *

              + *

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

              + *
                + *
              • deleteFleetAsync(FleetName name) + *

              • deleteFleetAsync(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.

              + *
                + *
              • deleteFleetOperationCallable() + *

              • deleteFleetCallable() + *

              + * + * + * + *

              ListFleets + *

              Returns all fleets within an organization or a project that the caller has access to. + * + *

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

              + *
                + *
              • listFleets(ListFleetsRequest request) + *

              + *

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

              + *
                + *
              • listFleets(LocationName parent) + *

              • listFleets(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.

              + *
                + *
              • listFleetsPagedCallable() + *

              • listFleetsCallable() + *

              + * + * + * + *

              GetScopeNamespace + *

              Returns the details of a fleet namespace. + * + *

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

              + *
                + *
              • getScopeNamespace(GetScopeNamespaceRequest request) + *

              + *

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

              + *
                + *
              • getScopeNamespace(NamespaceName name) + *

              • getScopeNamespace(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.

              + *
                + *
              • getScopeNamespaceCallable() + *

              + * + * + * + *

              CreateScopeNamespace + *

              Creates a fleet namespace. + * + *

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

              + *
                + *
              • createScopeNamespaceAsync(CreateScopeNamespaceRequest request) + *

              + *

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

              + *
                + *
              • createScopeNamespaceAsync(ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId) + *

              • createScopeNamespaceAsync(String parent, Namespace scopeNamespace, String scopeNamespaceId) + *

              + *

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

              + *
                + *
              • createScopeNamespaceOperationCallable() + *

              • createScopeNamespaceCallable() + *

              + * + * + * + *

              UpdateScopeNamespace + *

              Updates a fleet namespace. + * + *

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

              + *
                + *
              • updateScopeNamespaceAsync(UpdateScopeNamespaceRequest request) + *

              + *

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

              + *
                + *
              • updateScopeNamespaceAsync(Namespace scopeNamespace, 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.

              + *
                + *
              • updateScopeNamespaceOperationCallable() + *

              • updateScopeNamespaceCallable() + *

              + * + * + * + *

              DeleteScopeNamespace + *

              Deletes a fleet namespace. + * + *

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

              + *
                + *
              • deleteScopeNamespaceAsync(DeleteScopeNamespaceRequest request) + *

              + *

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

              + *
                + *
              • deleteScopeNamespaceAsync(NamespaceName name) + *

              • deleteScopeNamespaceAsync(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.

              + *
                + *
              • deleteScopeNamespaceOperationCallable() + *

              • deleteScopeNamespaceCallable() + *

              + * + * + * + *

              ListScopeNamespaces + *

              Lists fleet namespaces. + * + *

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

              + *
                + *
              • listScopeNamespaces(ListScopeNamespacesRequest request) + *

              + *

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

              + *
                + *
              • listScopeNamespaces(ScopeName parent) + *

              • listScopeNamespaces(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.

              + *
                + *
              • listScopeNamespacesPagedCallable() + *

              • listScopeNamespacesCallable() + *

              + * + * + * + *

              GetScopeRBACRoleBinding + *

              Returns the details of a Scope RBACRoleBinding. + * + *

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

              + *
                + *
              • getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request) + *

              + *

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

              + *
                + *
              • getScopeRBACRoleBinding(RBACRoleBindingName name) + *

              • getScopeRBACRoleBinding(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.

              + *
                + *
              • getScopeRBACRoleBindingCallable() + *

              + * + * + * + *

              CreateScopeRBACRoleBinding + *

              Creates a Scope RBACRoleBinding. + * + *

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

              + *
                + *
              • createScopeRBACRoleBindingAsync(CreateScopeRBACRoleBindingRequest request) + *

              + *

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

              + *
                + *
              • createScopeRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

              • createScopeRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

              • createScopeRBACRoleBindingAsync(String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

              + *

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

              + *
                + *
              • createScopeRBACRoleBindingOperationCallable() + *

              • createScopeRBACRoleBindingCallable() + *

              + * + * + * + *

              UpdateScopeRBACRoleBinding + *

              Updates a Scope RBACRoleBinding. + * + *

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

              + *
                + *
              • updateScopeRBACRoleBindingAsync(UpdateScopeRBACRoleBindingRequest request) + *

              + *

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

              + *
                + *
              • updateScopeRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, 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.

              + *
                + *
              • updateScopeRBACRoleBindingOperationCallable() + *

              • updateScopeRBACRoleBindingCallable() + *

              + * + * + * + *

              DeleteScopeRBACRoleBinding + *

              Deletes a Scope RBACRoleBinding. + * + *

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

              + *
                + *
              • deleteScopeRBACRoleBindingAsync(DeleteScopeRBACRoleBindingRequest request) + *

              + *

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

              + *
                + *
              • deleteScopeRBACRoleBindingAsync(RBACRoleBindingName name) + *

              • deleteScopeRBACRoleBindingAsync(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.

              + *
                + *
              • deleteScopeRBACRoleBindingOperationCallable() + *

              • deleteScopeRBACRoleBindingCallable() + *

              + * + * + * + *

              ListScopeRBACRoleBindings + *

              Lists all Scope RBACRoleBindings. + * + *

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

              + *
                + *
              • listScopeRBACRoleBindings(ListScopeRBACRoleBindingsRequest request) + *

              + *

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

              + *
                + *
              • listScopeRBACRoleBindings(MembershipName parent) + *

              • listScopeRBACRoleBindings(ScopeName parent) + *

              • listScopeRBACRoleBindings(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.

              + *
                + *
              • listScopeRBACRoleBindingsPagedCallable() + *

              • listScopeRBACRoleBindingsCallable() + *

              + * + * + * + *

              GetScope + *

              Returns the details of a Scope. + * + *

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

              + *
                + *
              • getScope(GetScopeRequest request) + *

              + *

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

              + *
                + *
              • getScope(ScopeName name) + *

              • getScope(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.

              + *
                + *
              • getScopeCallable() + *

              + * + * + * + *

              CreateScope + *

              Creates a Scope. + * + *

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

              + *
                + *
              • createScopeAsync(CreateScopeRequest request) + *

              + *

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

              + *
                + *
              • createScopeAsync(LocationName parent, Scope scope, String scopeId) + *

              • createScopeAsync(String parent, Scope scope, String scopeId) + *

              + *

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

              + *
                + *
              • createScopeOperationCallable() + *

              • createScopeCallable() + *

              + * + * + * + *

              UpdateScope + *

              Updates a scopes. + * + *

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

              + *
                + *
              • updateScopeAsync(UpdateScopeRequest request) + *

              + *

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

              + *
                + *
              • updateScopeAsync(Scope scope, 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.

              + *
                + *
              • updateScopeOperationCallable() + *

              • updateScopeCallable() + *

              + * + * + * + *

              DeleteScope + *

              Deletes a Scope. + * + *

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

              + *
                + *
              • deleteScopeAsync(DeleteScopeRequest request) + *

              + *

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

              + *
                + *
              • deleteScopeAsync(ScopeName name) + *

              • deleteScopeAsync(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.

              + *
                + *
              • deleteScopeOperationCallable() + *

              • deleteScopeCallable() + *

              + * + * + * + *

              ListScopes + *

              Lists Scopes. + * + *

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

              + *
                + *
              • listScopes(ListScopesRequest request) + *

              + *

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

              + *
                + *
              • listScopes(LocationName parent) + *

              • listScopes(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.

              + *
                + *
              • listScopesPagedCallable() + *

              • listScopesCallable() + *

              + * + * + * + *

              ListPermittedScopes + *

              Lists permitted Scopes. + * + *

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

              + *
                + *
              • listPermittedScopes(ListPermittedScopesRequest request) + *

              + *

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

              + *
                + *
              • listPermittedScopes(LocationName parent) + *

              • listPermittedScopes(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.

              + *
                + *
              • listPermittedScopesPagedCallable() + *

              • listPermittedScopesCallable() + *

              + * + * + * + *

              GetMembershipBinding + *

              Returns the details of a MembershipBinding. + * + *

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

              + *
                + *
              • getMembershipBinding(GetMembershipBindingRequest request) + *

              + *

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

              + *
                + *
              • getMembershipBinding(MembershipBindingName name) + *

              • getMembershipBinding(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.

              + *
                + *
              • getMembershipBindingCallable() + *

              + * + * + * + *

              CreateMembershipBinding + *

              Creates a MembershipBinding. + * + *

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

              + *
                + *
              • createMembershipBindingAsync(CreateMembershipBindingRequest request) + *

              + *

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

              + *
                + *
              • createMembershipBindingAsync(MembershipName parent, MembershipBinding membershipBinding, String membershipBindingId) + *

              • createMembershipBindingAsync(String parent, MembershipBinding membershipBinding, String membershipBindingId) + *

              + *

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

              + *
                + *
              • createMembershipBindingOperationCallable() + *

              • createMembershipBindingCallable() + *

              + * + * + * + *

              UpdateMembershipBinding + *

              Updates a MembershipBinding. + * + *

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

              + *
                + *
              • updateMembershipBindingAsync(UpdateMembershipBindingRequest request) + *

              + *

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

              + *
                + *
              • updateMembershipBindingAsync(MembershipBinding membershipBinding, 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.

              + *
                + *
              • updateMembershipBindingOperationCallable() + *

              • updateMembershipBindingCallable() + *

              + * + * + * + *

              DeleteMembershipBinding + *

              Deletes a MembershipBinding. + * + *

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

              + *
                + *
              • deleteMembershipBindingAsync(DeleteMembershipBindingRequest request) + *

              + *

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

              + *
                + *
              • deleteMembershipBindingAsync(MembershipBindingName name) + *

              • deleteMembershipBindingAsync(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.

              + *
                + *
              • deleteMembershipBindingOperationCallable() + *

              • deleteMembershipBindingCallable() + *

              + * + * + * + *

              ListMembershipBindings + *

              Lists MembershipBindings. + * + *

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

              + *
                + *
              • listMembershipBindings(ListMembershipBindingsRequest request) + *

              + *

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

              + *
                + *
              • listMembershipBindings(MembershipName parent) + *

              • listMembershipBindings(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.

              + *
                + *
              • listMembershipBindingsPagedCallable() + *

              • listMembershipBindingsCallable() + *

              + * + * + * + *

              GetMembershipRBACRoleBinding + *

              Returns the details of a Membership RBACRoleBinding. + * + *

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

              + *
                + *
              • getMembershipRBACRoleBinding(GetMembershipRBACRoleBindingRequest request) + *

              + *

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

              + *
                + *
              • getMembershipRBACRoleBinding(RBACRoleBindingName name) + *

              • getMembershipRBACRoleBinding(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.

              + *
                + *
              • getMembershipRBACRoleBindingCallable() + *

              + * + * + * + *

              CreateMembershipRBACRoleBinding + *

              Creates a Membership RBACRoleBinding. + * + *

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

              + *
                + *
              • createMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest request) + *

              + *

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

              + *
                + *
              • createMembershipRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

              • createMembershipRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

              • createMembershipRBACRoleBindingAsync(String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

              + *

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

              + *
                + *
              • createMembershipRBACRoleBindingOperationCallable() + *

              • createMembershipRBACRoleBindingCallable() + *

              + * + * + * + *

              UpdateMembershipRBACRoleBinding + *

              Updates a Membership RBACRoleBinding. + * + *

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

              + *
                + *
              • updateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest request) + *

              + *

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

              + *
                + *
              • updateMembershipRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, 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.

              + *
                + *
              • updateMembershipRBACRoleBindingOperationCallable() + *

              • updateMembershipRBACRoleBindingCallable() + *

              + * + * + * + *

              DeleteMembershipRBACRoleBinding + *

              Deletes a Membership RBACRoleBinding. + * + *

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

              + *
                + *
              • deleteMembershipRBACRoleBindingAsync(DeleteMembershipRBACRoleBindingRequest request) + *

              + *

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

              + *
                + *
              • deleteMembershipRBACRoleBindingAsync(RBACRoleBindingName name) + *

              • deleteMembershipRBACRoleBindingAsync(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.

              + *
                + *
              • deleteMembershipRBACRoleBindingOperationCallable() + *

              • deleteMembershipRBACRoleBindingCallable() + *

              + * + * + * + *

              ListMembershipRBACRoleBindings + *

              Lists all Membership RBACRoleBindings. + * + *

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

              + *
                + *
              • listMembershipRBACRoleBindings(ListMembershipRBACRoleBindingsRequest request) + *

              + *

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

              + *
                + *
              • listMembershipRBACRoleBindings(MembershipName parent) + *

              • listMembershipRBACRoleBindings(ScopeName parent) + *

              • listMembershipRBACRoleBindings(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.

              + *
                + *
              • listMembershipRBACRoleBindingsPagedCallable() + *

              • listMembershipRBACRoleBindingsCallable() + *

              + * + * + * + *

              GenerateMembershipRBACRoleBindingYAML + *

              Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources. + * + *

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

              + *
                + *
              • generateMembershipRBACRoleBindingYAML(GenerateMembershipRBACRoleBindingYAMLRequest request) + *

              + *

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

              + *
                + *
              • generateMembershipRBACRoleBindingYAMLCallable() + *

              + * + * + * + * + *

              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 GkeHubSettings 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
              + * GkeHubSettings gkeHubSettings =
              + *     GkeHubSettings.newBuilder()
              + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
              + *         .build();
              + * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
              + * }
              + * + *

              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
              + * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
              + * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
              + * }
              + * + *

              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
              + * GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build();
              + * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
              + * }
              + * + *

              Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class GkeHubClient implements BackgroundResource { + private final GkeHubSettings settings; + private final GkeHubStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of GkeHubClient with default settings. */ + public static final GkeHubClient create() throws IOException { + return create(GkeHubSettings.newBuilder().build()); + } + + /** + * Constructs an instance of GkeHubClient, 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 GkeHubClient create(GkeHubSettings settings) throws IOException { + return new GkeHubClient(settings); + } + + /** + * Constructs an instance of GkeHubClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(GkeHubSettings). + */ + public static final GkeHubClient create(GkeHubStub stub) { + return new GkeHubClient(stub); + } + + /** + * Constructs an instance of GkeHubClient, 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 GkeHubClient(GkeHubSettings settings) throws IOException { + this.settings = settings; + this.stub = ((GkeHubStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected GkeHubClient(GkeHubStub 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 GkeHubSettings getSettings() { + return settings; + } + + public GkeHubStub 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 Memberships 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Memberships will be listed. + * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list + * memberships in all the regions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMembershipsPagedResponse listMemberships(LocationName parent) { + ListMembershipsRequest request = + ListMembershipsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMemberships(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              +   *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Memberships will be listed. + * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list + * memberships in all the regions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMembershipsPagedResponse listMemberships(String parent) { + ListMembershipsRequest request = ListMembershipsRequest.newBuilder().setParent(parent).build(); + return listMemberships(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListMembershipsRequest request =
              +   *       ListMembershipsRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .setFilter("filter-1274492040")
              +   *           .setOrderBy("orderBy-1207110587")
              +   *           .build();
              +   *   for (Membership element : gkeHubClient.listMemberships(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 ListMembershipsPagedResponse listMemberships(ListMembershipsRequest request) { + return listMembershipsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListMembershipsRequest request =
              +   *       ListMembershipsRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .setFilter("filter-1274492040")
              +   *           .setOrderBy("orderBy-1207110587")
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.listMembershipsPagedCallable().futureCall(request);
              +   *   // Do something.
              +   *   for (Membership element : future.get().iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listMembershipsPagedCallable() { + return stub.listMembershipsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListMembershipsRequest request =
              +   *       ListMembershipsRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .setFilter("filter-1274492040")
              +   *           .setOrderBy("orderBy-1207110587")
              +   *           .build();
              +   *   while (true) {
              +   *     ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request);
              +   *     for (Membership element : response.getResourcesList()) {
              +   *       // doThingsWith(element);
              +   *     }
              +   *     String nextPageToken = response.getNextPageToken();
              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
              +   *     } else {
              +   *       break;
              +   *     }
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listMembershipsCallable() { + return stub.listMembershipsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
              +   *   for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param scopeName Required. Name of the Scope, in the format + * `projects/*/locations/global/scopes/*`, to which the Memberships are bound. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBoundMembershipsPagedResponse listBoundMemberships(ScopeName scopeName) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder() + .setScopeName(scopeName == null ? null : scopeName.toString()) + .build(); + return listBoundMemberships(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
              +   *   for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param scopeName Required. Name of the Scope, in the format + * `projects/*/locations/global/scopes/*`, to which the Memberships are bound. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBoundMembershipsPagedResponse listBoundMemberships(String scopeName) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder().setScopeName(scopeName).build(); + return listBoundMemberships(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListBoundMembershipsRequest request =
              +   *       ListBoundMembershipsRequest.newBuilder()
              +   *           .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setFilter("filter-1274492040")
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   for (Membership element : gkeHubClient.listBoundMemberships(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 ListBoundMembershipsPagedResponse listBoundMemberships( + ListBoundMembershipsRequest request) { + return listBoundMembershipsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListBoundMembershipsRequest request =
              +   *       ListBoundMembershipsRequest.newBuilder()
              +   *           .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setFilter("filter-1274492040")
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.listBoundMembershipsPagedCallable().futureCall(request);
              +   *   // Do something.
              +   *   for (Membership element : future.get().iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listBoundMembershipsPagedCallable() { + return stub.listBoundMembershipsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListBoundMembershipsRequest request =
              +   *       ListBoundMembershipsRequest.newBuilder()
              +   *           .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setFilter("filter-1274492040")
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   while (true) {
              +   *     ListBoundMembershipsResponse response =
              +   *         gkeHubClient.listBoundMembershipsCallable().call(request);
              +   *     for (Membership element : response.getMembershipsList()) {
              +   *       // doThingsWith(element);
              +   *     }
              +   *     String nextPageToken = response.getNextPageToken();
              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
              +   *     } else {
              +   *       break;
              +   *     }
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listBoundMembershipsCallable() { + return stub.listBoundMembershipsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturesPagedResponse listFeatures(LocationName parent) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFeatures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              +   *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturesPagedResponse listFeatures(String parent) { + ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build(); + return listFeatures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListFeaturesRequest request =
              +   *       ListFeaturesRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .setFilter("filter-1274492040")
              +   *           .setOrderBy("orderBy-1207110587")
              +   *           .setReturnPartialSuccess(true)
              +   *           .build();
              +   *   for (Feature element : gkeHubClient.listFeatures(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 ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) { + return listFeaturesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListFeaturesRequest request =
              +   *       ListFeaturesRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .setFilter("filter-1274492040")
              +   *           .setOrderBy("orderBy-1207110587")
              +   *           .setReturnPartialSuccess(true)
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.listFeaturesPagedCallable().futureCall(request);
              +   *   // Do something.
              +   *   for (Feature element : future.get().iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listFeaturesPagedCallable() { + return stub.listFeaturesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListFeaturesRequest request =
              +   *       ListFeaturesRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .setFilter("filter-1274492040")
              +   *           .setOrderBy("orderBy-1207110587")
              +   *           .setReturnPartialSuccess(true)
              +   *           .build();
              +   *   while (true) {
              +   *     ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request);
              +   *     for (Feature element : response.getResourcesList()) {
              +   *       // doThingsWith(element);
              +   *     }
              +   *     String nextPageToken = response.getNextPageToken();
              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
              +   *     } else {
              +   *       break;
              +   *     }
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable listFeaturesCallable() { + return stub.listFeaturesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a Membership. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
              +   *   Membership response = gkeHubClient.getMembership(name);
              +   * }
              +   * }
              + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Membership getMembership(MembershipName name) { + GetMembershipRequest request = + GetMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getMembership(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a Membership. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
              +   *   Membership response = gkeHubClient.getMembership(name);
              +   * }
              +   * }
              + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Membership getMembership(String name) { + GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name).build(); + return getMembership(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a Membership. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetMembershipRequest request =
              +   *       GetMembershipRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .build();
              +   *   Membership response = gkeHubClient.getMembership(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 Membership getMembership(GetMembershipRequest request) { + return getMembershipCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a Membership. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetMembershipRequest request =
              +   *       GetMembershipRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.getMembershipCallable().futureCall(request);
              +   *   // Do something.
              +   *   Membership response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable getMembershipCallable() { + return stub.getMembershipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
              +   *   Feature response = gkeHubClient.getFeature(name);
              +   * }
              +   * }
              + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feature getFeature(FeatureName name) { + GetFeatureRequest request = + GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFeature(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
              +   *   Feature response = gkeHubClient.getFeature(name);
              +   * }
              +   * }
              + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feature getFeature(String name) { + GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build(); + return getFeature(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetFeatureRequest request =
              +   *       GetFeatureRequest.newBuilder()
              +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              +   *           .setReturnPartialSuccess(true)
              +   *           .build();
              +   *   Feature response = gkeHubClient.getFeature(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 Feature getFeature(GetFeatureRequest request) { + return getFeatureCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetFeatureRequest request =
              +   *       GetFeatureRequest.newBuilder()
              +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              +   *           .setReturnPartialSuccess(true)
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request);
              +   *   // Do something.
              +   *   Feature response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable getFeatureCallable() { + return stub.getFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   Membership resource = Membership.newBuilder().build();
              +   *   String membershipId = "membershipId517665681";
              +   *   Membership response =
              +   *       gkeHubClient.createMembershipAsync(parent, resource, membershipId).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Memberships will be + * created. Specified in the format `projects/*/locations/*`. + * @param resource Required. The membership to create. + * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a + * valid RFC 1123 compliant DNS label: + *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipAsync( + LocationName parent, Membership resource, String membershipId) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setResource(resource) + .setMembershipId(membershipId) + .build(); + return createMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              +   *   Membership resource = Membership.newBuilder().build();
              +   *   String membershipId = "membershipId517665681";
              +   *   Membership response =
              +   *       gkeHubClient.createMembershipAsync(parent, resource, membershipId).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Memberships will be + * created. Specified in the format `projects/*/locations/*`. + * @param resource Required. The membership to create. + * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a + * valid RFC 1123 compliant DNS label: + *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipAsync( + String parent, Membership resource, String membershipId) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(parent) + .setResource(resource) + .setMembershipId(membershipId) + .build(); + return createMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateMembershipRequest request =
              +   *       CreateMembershipRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setMembershipId("membershipId517665681")
              +   *           .setResource(Membership.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   Membership response = gkeHubClient.createMembershipAsync(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 createMembershipAsync( + CreateMembershipRequest request) { + return createMembershipOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateMembershipRequest request =
              +   *       CreateMembershipRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setMembershipId("membershipId517665681")
              +   *           .setResource(Membership.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.createMembershipOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Membership response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + createMembershipOperationCallable() { + return stub.createMembershipOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateMembershipRequest request =
              +   *       CreateMembershipRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setMembershipId("membershipId517665681")
              +   *           .setResource(Membership.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.createMembershipCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable createMembershipCallable() { + return stub.createMembershipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   Feature resource = Feature.newBuilder().build();
              +   *   String featureId = "featureId-420503887";
              +   *   Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Feature will be created. + * Specified in the format `projects/*/locations/*`. + * @param resource The Feature resource to create. + * @param featureId The ID of the feature to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFeatureAsync( + LocationName parent, Feature resource, String featureId) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setResource(resource) + .setFeatureId(featureId) + .build(); + return createFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              +   *   Feature resource = Feature.newBuilder().build();
              +   *   String featureId = "featureId-420503887";
              +   *   Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Feature will be created. + * Specified in the format `projects/*/locations/*`. + * @param resource The Feature resource to create. + * @param featureId The ID of the feature to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFeatureAsync( + String parent, Feature resource, String featureId) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(parent) + .setResource(resource) + .setFeatureId(featureId) + .build(); + return createFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateFeatureRequest request =
              +   *       CreateFeatureRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setFeatureId("featureId-420503887")
              +   *           .setResource(Feature.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   Feature response = gkeHubClient.createFeatureAsync(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 createFeatureAsync( + CreateFeatureRequest request) { + return createFeatureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateFeatureRequest request =
              +   *       CreateFeatureRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setFeatureId("featureId-420503887")
              +   *           .setResource(Feature.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.createFeatureOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Feature response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + createFeatureOperationCallable() { + return stub.createFeatureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateFeatureRequest request =
              +   *       CreateFeatureRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setFeatureId("featureId-420503887")
              +   *           .setResource(Feature.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.createFeatureCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable createFeatureCallable() { + return stub.createFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
              +   *   gkeHubClient.deleteMembershipAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMembershipAsync( + MembershipName name) { + DeleteMembershipRequest request = + DeleteMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
              +   *   gkeHubClient.deleteMembershipAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMembershipAsync(String name) { + DeleteMembershipRequest request = DeleteMembershipRequest.newBuilder().setName(name).build(); + return deleteMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteMembershipRequest request =
              +   *       DeleteMembershipRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setRequestId("requestId693933066")
              +   *           .setForce(true)
              +   *           .build();
              +   *   gkeHubClient.deleteMembershipAsync(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 deleteMembershipAsync( + DeleteMembershipRequest request) { + return deleteMembershipOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteMembershipRequest request =
              +   *       DeleteMembershipRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setRequestId("requestId693933066")
              +   *           .setForce(true)
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.deleteMembershipOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + deleteMembershipOperationCallable() { + return stub.deleteMembershipOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

              **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteMembershipRequest request =
              +   *       DeleteMembershipRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setRequestId("requestId693933066")
              +   *           .setForce(true)
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.deleteMembershipCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable deleteMembershipCallable() { + return stub.deleteMembershipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
              +   *   gkeHubClient.deleteFeatureAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeatureAsync(FeatureName name) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
              +   *   gkeHubClient.deleteFeatureAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeatureAsync(String name) { + DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name).build(); + return deleteFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteFeatureRequest request =
              +   *       DeleteFeatureRequest.newBuilder()
              +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              +   *           .setForce(true)
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   gkeHubClient.deleteFeatureAsync(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 deleteFeatureAsync( + DeleteFeatureRequest request) { + return deleteFeatureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteFeatureRequest request =
              +   *       DeleteFeatureRequest.newBuilder()
              +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              +   *           .setForce(true)
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.deleteFeatureOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + deleteFeatureOperationCallable() { + return stub.deleteFeatureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteFeatureRequest request =
              +   *       DeleteFeatureRequest.newBuilder()
              +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              +   *           .setForce(true)
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.deleteFeatureCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable deleteFeatureCallable() { + return stub.deleteFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
              +   *   Membership resource = Membership.newBuilder().build();
              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
              +   *   Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
              +   * }
              +   * }
              + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @param resource Required. Only fields specified in update_mask are updated. If you specify a + * field in the update_mask but don't specify its value here that field will be deleted. If + * you are updating a map field, set the value of a key to null or empty string to delete the + * key from the map. It's not possible to update a key's value to the empty string. If you + * specify the update_mask to be a special path "*", fully replaces all user-modifiable + * fields to match `resource`. + * @param updateMask Required. Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateMembershipAsync( + MembershipName name, Membership resource, FieldMask updateMask) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
              +   *   Membership resource = Membership.newBuilder().build();
              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
              +   *   Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
              +   * }
              +   * }
              + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @param resource Required. Only fields specified in update_mask are updated. If you specify a + * field in the update_mask but don't specify its value here that field will be deleted. If + * you are updating a map field, set the value of a key to null or empty string to delete the + * key from the map. It's not possible to update a key's value to the empty string. If you + * specify the update_mask to be a special path "*", fully replaces all user-modifiable + * fields to match `resource`. + * @param updateMask Required. Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateMembershipAsync( + String name, Membership resource, FieldMask updateMask) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(name) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateMembershipRequest request =
              +   *       UpdateMembershipRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .setResource(Membership.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   Membership response = gkeHubClient.updateMembershipAsync(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 updateMembershipAsync( + UpdateMembershipRequest request) { + return updateMembershipOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateMembershipRequest request =
              +   *       UpdateMembershipRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .setResource(Membership.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.updateMembershipOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Membership response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + updateMembershipOperationCallable() { + return stub.updateMembershipOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateMembershipRequest request =
              +   *       UpdateMembershipRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .setResource(Membership.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.updateMembershipCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable updateMembershipCallable() { + return stub.updateMembershipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
              +   *   Feature resource = Feature.newBuilder().build();
              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
              +   *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
              +   * }
              +   * }
              + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @param resource Only fields specified in update_mask are updated. If you specify a field in the + * update_mask but don't specify its value here that field will be deleted. If you are + * updating a map field, set the value of a key to null or empty string to delete the key from + * the map. It's not possible to update a key's value to the empty string. If you specify the + * update_mask to be a special path "*", fully replaces all user-modifiable fields to + * match `resource`. + * @param updateMask Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFeatureAsync( + FeatureName name, Feature resource, FieldMask updateMask) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
              +   *   Feature resource = Feature.newBuilder().build();
              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
              +   *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
              +   * }
              +   * }
              + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @param resource Only fields specified in update_mask are updated. If you specify a field in the + * update_mask but don't specify its value here that field will be deleted. If you are + * updating a map field, set the value of a key to null or empty string to delete the key from + * the map. It's not possible to update a key's value to the empty string. If you specify the + * update_mask to be a special path "*", fully replaces all user-modifiable fields to + * match `resource`. + * @param updateMask Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFeatureAsync( + String name, Feature resource, FieldMask updateMask) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(name) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateFeatureRequest request =
              +   *       UpdateFeatureRequest.newBuilder()
              +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .setResource(Feature.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   Feature response = gkeHubClient.updateFeatureAsync(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 updateFeatureAsync( + UpdateFeatureRequest request) { + return updateFeatureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateFeatureRequest request =
              +   *       UpdateFeatureRequest.newBuilder()
              +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .setResource(Feature.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.updateFeatureOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Feature response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + updateFeatureOperationCallable() { + return stub.updateFeatureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateFeatureRequest request =
              +   *       UpdateFeatureRequest.newBuilder()
              +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .setResource(Feature.newBuilder().build())
              +   *           .setRequestId("requestId693933066")
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.updateFeatureCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable updateFeatureCallable() { + return stub.updateFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the manifest for deployment of the GKE connect agent. + * + *

              **This method is used internally by Google-provided libraries.** Most + * clients should not need to call this method directly. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GenerateConnectManifestRequest request =
              +   *       GenerateConnectManifestRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setNamespace("namespace1252218203")
              +   *           .setProxy(ByteString.EMPTY)
              +   *           .setVersion("version351608024")
              +   *           .setIsUpgrade(true)
              +   *           .setRegistry("registry-690212803")
              +   *           .setImagePullSecretContent(ByteString.EMPTY)
              +   *           .build();
              +   *   GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(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 GenerateConnectManifestResponse generateConnectManifest( + GenerateConnectManifestRequest request) { + return generateConnectManifestCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the manifest for deployment of the GKE connect agent. + * + *

              **This method is used internally by Google-provided libraries.** Most + * clients should not need to call this method directly. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GenerateConnectManifestRequest request =
              +   *       GenerateConnectManifestRequest.newBuilder()
              +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setNamespace("namespace1252218203")
              +   *           .setProxy(ByteString.EMPTY)
              +   *           .setVersion("version351608024")
              +   *           .setIsUpgrade(true)
              +   *           .setRegistry("registry-690212803")
              +   *           .setImagePullSecretContent(ByteString.EMPTY)
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.generateConnectManifestCallable().futureCall(request);
              +   *   // Do something.
              +   *   GenerateConnectManifestResponse response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + generateConnectManifestCallable() { + return stub.generateConnectManifestCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   Fleet fleet = Fleet.newBuilder().build();
              +   *   Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Fleet will be created. + * Specified in the format `projects/*/locations/*`. + * @param fleet Required. The fleet to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFleetAsync( + LocationName parent, Fleet fleet) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFleet(fleet) + .build(); + return createFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              +   *   Fleet fleet = Fleet.newBuilder().build();
              +   *   Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Fleet will be created. + * Specified in the format `projects/*/locations/*`. + * @param fleet Required. The fleet to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFleetAsync( + String parent, Fleet fleet) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder().setParent(parent).setFleet(fleet).build(); + return createFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateFleetRequest request =
              +   *       CreateFleetRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setFleet(Fleet.newBuilder().build())
              +   *           .build();
              +   *   Fleet response = gkeHubClient.createFleetAsync(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 createFleetAsync( + CreateFleetRequest request) { + return createFleetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateFleetRequest request =
              +   *       CreateFleetRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setFleet(Fleet.newBuilder().build())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.createFleetOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Fleet response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + createFleetOperationCallable() { + return stub.createFleetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateFleetRequest request =
              +   *       CreateFleetRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setFleet(Fleet.newBuilder().build())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.createFleetCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable createFleetCallable() { + return stub.createFleetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]");
              +   *   Fleet response = gkeHubClient.getFleet(name);
              +   * }
              +   * }
              + * + * @param name Required. The Fleet resource name in the format + * `projects/*/locations/*/fleets/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Fleet getFleet(FleetName name) { + GetFleetRequest request = + GetFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFleet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name =
              +   *       FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString();
              +   *   Fleet response = gkeHubClient.getFleet(name);
              +   * }
              +   * }
              + * + * @param name Required. The Fleet resource name in the format + * `projects/*/locations/*/fleets/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Fleet getFleet(String name) { + GetFleetRequest request = GetFleetRequest.newBuilder().setName(name).build(); + return getFleet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetFleetRequest request =
              +   *       GetFleetRequest.newBuilder()
              +   *           .setName(
              +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
              +   *                   .toString())
              +   *           .build();
              +   *   Fleet response = gkeHubClient.getFleet(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 Fleet getFleet(GetFleetRequest request) { + return getFleetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetFleetRequest request =
              +   *       GetFleetRequest.newBuilder()
              +   *           .setName(
              +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
              +   *                   .toString())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.getFleetCallable().futureCall(request);
              +   *   // Do something.
              +   *   Fleet response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable getFleetCallable() { + return stub.getFleetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   Fleet fleet = Fleet.newBuilder().build();
              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
              +   *   Fleet response = gkeHubClient.updateFleetAsync(fleet, updateMask).get();
              +   * }
              +   * }
              + * + * @param fleet Required. The Fleet to update. + *

              The `name` field of the Fleet object identifies which fleet will be updated. + * @param updateMask Required. The fields to be updated; + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFleetAsync( + Fleet fleet, FieldMask updateMask) { + UpdateFleetRequest request = + UpdateFleetRequest.newBuilder().setFleet(fleet).setUpdateMask(updateMask).build(); + return updateFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateFleetRequest request =
              +   *       UpdateFleetRequest.newBuilder()
              +   *           .setFleet(Fleet.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   Fleet response = gkeHubClient.updateFleetAsync(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 updateFleetAsync( + UpdateFleetRequest request) { + return updateFleetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateFleetRequest request =
              +   *       UpdateFleetRequest.newBuilder()
              +   *           .setFleet(Fleet.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.updateFleetOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Fleet response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + updateFleetOperationCallable() { + return stub.updateFleetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateFleetRequest request =
              +   *       UpdateFleetRequest.newBuilder()
              +   *           .setFleet(Fleet.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.updateFleetCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable updateFleetCallable() { + return stub.updateFleetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]");
              +   *   gkeHubClient.deleteFleetAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Fleet resource name in the format + * `projects/*/locations/*/fleets/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFleetAsync(FleetName name) { + DeleteFleetRequest request = + DeleteFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name =
              +   *       FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString();
              +   *   gkeHubClient.deleteFleetAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Fleet resource name in the format + * `projects/*/locations/*/fleets/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFleetAsync(String name) { + DeleteFleetRequest request = DeleteFleetRequest.newBuilder().setName(name).build(); + return deleteFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteFleetRequest request =
              +   *       DeleteFleetRequest.newBuilder()
              +   *           .setName(
              +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
              +   *                   .toString())
              +   *           .build();
              +   *   gkeHubClient.deleteFleetAsync(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 deleteFleetAsync( + DeleteFleetRequest request) { + return deleteFleetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteFleetRequest request =
              +   *       DeleteFleetRequest.newBuilder()
              +   *           .setName(
              +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
              +   *                   .toString())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.deleteFleetOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + deleteFleetOperationCallable() { + return stub.deleteFleetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteFleetRequest request =
              +   *       DeleteFleetRequest.newBuilder()
              +   *           .setName(
              +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
              +   *                   .toString())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.deleteFleetCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable deleteFleetCallable() { + return stub.deleteFleetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The organization or project to list for Fleets under, in the format + * `organizations/*/locations/*` or `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFleetsPagedResponse listFleets(LocationName parent) { + ListFleetsRequest request = + ListFleetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listFleets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              +   *   for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The organization or project to list for Fleets under, in the format + * `organizations/*/locations/*` or `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFleetsPagedResponse listFleets(String parent) { + ListFleetsRequest request = ListFleetsRequest.newBuilder().setParent(parent).build(); + return listFleets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListFleetsRequest request =
              +   *       ListFleetsRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageToken("pageToken873572522")
              +   *           .setPageSize(883849137)
              +   *           .build();
              +   *   for (Fleet element : gkeHubClient.listFleets(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 ListFleetsPagedResponse listFleets(ListFleetsRequest request) { + return listFleetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListFleetsRequest request =
              +   *       ListFleetsRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageToken("pageToken873572522")
              +   *           .setPageSize(883849137)
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.listFleetsPagedCallable().futureCall(request);
              +   *   // Do something.
              +   *   for (Fleet element : future.get().iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable listFleetsPagedCallable() { + return stub.listFleetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListFleetsRequest request =
              +   *       ListFleetsRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageToken("pageToken873572522")
              +   *           .setPageSize(883849137)
              +   *           .build();
              +   *   while (true) {
              +   *     ListFleetsResponse response = gkeHubClient.listFleetsCallable().call(request);
              +   *     for (Fleet element : response.getFleetsList()) {
              +   *       // doThingsWith(element);
              +   *     }
              +   *     String nextPageToken = response.getNextPageToken();
              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
              +   *     } else {
              +   *       break;
              +   *     }
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable listFleetsCallable() { + return stub.listFleetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
              +   *   Namespace response = gkeHubClient.getScopeNamespace(name);
              +   * }
              +   * }
              + * + * @param name Required. The Namespace resource name in the format + * `projects/*/locations/*/scopes/*/namespaces/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Namespace getScopeNamespace(NamespaceName name) { + GetScopeNamespaceRequest request = + GetScopeNamespaceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getScopeNamespace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name =
              +   *       NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString();
              +   *   Namespace response = gkeHubClient.getScopeNamespace(name);
              +   * }
              +   * }
              + * + * @param name Required. The Namespace resource name in the format + * `projects/*/locations/*/scopes/*/namespaces/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Namespace getScopeNamespace(String name) { + GetScopeNamespaceRequest request = GetScopeNamespaceRequest.newBuilder().setName(name).build(); + return getScopeNamespace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetScopeNamespaceRequest request =
              +   *       GetScopeNamespaceRequest.newBuilder()
              +   *           .setName(
              +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
              +   *           .build();
              +   *   Namespace response = gkeHubClient.getScopeNamespace(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 Namespace getScopeNamespace(GetScopeNamespaceRequest request) { + return getScopeNamespaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetScopeNamespaceRequest request =
              +   *       GetScopeNamespaceRequest.newBuilder()
              +   *           .setName(
              +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.getScopeNamespaceCallable().futureCall(request);
              +   *   // Do something.
              +   *   Namespace response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable getScopeNamespaceCallable() { + return stub.getScopeNamespaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
              +   *   Namespace scopeNamespace = Namespace.newBuilder().build();
              +   *   String scopeNamespaceId = "scopeNamespaceId-125738782";
              +   *   Namespace response =
              +   *       gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Namespace will be created. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @param scopeNamespace Required. The fleet namespace to create. + * @param scopeNamespaceId Required. Client chosen ID for the Namespace. `namespace_id` must be a + * valid RFC 1123 compliant DNS label: + *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeNamespaceAsync( + ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setScopeNamespace(scopeNamespace) + .setScopeNamespaceId(scopeNamespaceId) + .build(); + return createScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
              +   *   Namespace scopeNamespace = Namespace.newBuilder().build();
              +   *   String scopeNamespaceId = "scopeNamespaceId-125738782";
              +   *   Namespace response =
              +   *       gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Namespace will be created. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @param scopeNamespace Required. The fleet namespace to create. + * @param scopeNamespaceId Required. Client chosen ID for the Namespace. `namespace_id` must be a + * valid RFC 1123 compliant DNS label: + *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeNamespaceAsync( + String parent, Namespace scopeNamespace, String scopeNamespaceId) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(parent) + .setScopeNamespace(scopeNamespace) + .setScopeNamespaceId(scopeNamespaceId) + .build(); + return createScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateScopeNamespaceRequest request =
              +   *       CreateScopeNamespaceRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setScopeNamespaceId("scopeNamespaceId-125738782")
              +   *           .setScopeNamespace(Namespace.newBuilder().build())
              +   *           .build();
              +   *   Namespace response = gkeHubClient.createScopeNamespaceAsync(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 createScopeNamespaceAsync( + CreateScopeNamespaceRequest request) { + return createScopeNamespaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateScopeNamespaceRequest request =
              +   *       CreateScopeNamespaceRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setScopeNamespaceId("scopeNamespaceId-125738782")
              +   *           .setScopeNamespace(Namespace.newBuilder().build())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.createScopeNamespaceOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Namespace response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + createScopeNamespaceOperationCallable() { + return stub.createScopeNamespaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateScopeNamespaceRequest request =
              +   *       CreateScopeNamespaceRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setScopeNamespaceId("scopeNamespaceId-125738782")
              +   *           .setScopeNamespace(Namespace.newBuilder().build())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.createScopeNamespaceCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + createScopeNamespaceCallable() { + return stub.createScopeNamespaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   Namespace scopeNamespace = Namespace.newBuilder().build();
              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
              +   *   Namespace response = gkeHubClient.updateScopeNamespaceAsync(scopeNamespace, updateMask).get();
              +   * }
              +   * }
              + * + * @param scopeNamespace Required. A namespace with fields updated. The 'name' field in this + * namespace is used to identify the resource to update. Given 'updated' prefix to follow + * go/proto-best-practices-checkers#keyword_conflict + * @param updateMask Required. The fields to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateScopeNamespaceAsync( + Namespace scopeNamespace, FieldMask updateMask) { + UpdateScopeNamespaceRequest request = + UpdateScopeNamespaceRequest.newBuilder() + .setScopeNamespace(scopeNamespace) + .setUpdateMask(updateMask) + .build(); + return updateScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateScopeNamespaceRequest request =
              +   *       UpdateScopeNamespaceRequest.newBuilder()
              +   *           .setScopeNamespace(Namespace.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   Namespace response = gkeHubClient.updateScopeNamespaceAsync(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 updateScopeNamespaceAsync( + UpdateScopeNamespaceRequest request) { + return updateScopeNamespaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateScopeNamespaceRequest request =
              +   *       UpdateScopeNamespaceRequest.newBuilder()
              +   *           .setScopeNamespace(Namespace.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.updateScopeNamespaceOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Namespace response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + updateScopeNamespaceOperationCallable() { + return stub.updateScopeNamespaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateScopeNamespaceRequest request =
              +   *       UpdateScopeNamespaceRequest.newBuilder()
              +   *           .setScopeNamespace(Namespace.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.updateScopeNamespaceCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + updateScopeNamespaceCallable() { + return stub.updateScopeNamespaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
              +   *   gkeHubClient.deleteScopeNamespaceAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Namespace resource name in the format + * `projects/*/locations/*/scopes/*/namespaces/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeNamespaceAsync( + NamespaceName name) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name =
              +   *       NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString();
              +   *   gkeHubClient.deleteScopeNamespaceAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Namespace resource name in the format + * `projects/*/locations/*/scopes/*/namespaces/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeNamespaceAsync(String name) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder().setName(name).build(); + return deleteScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteScopeNamespaceRequest request =
              +   *       DeleteScopeNamespaceRequest.newBuilder()
              +   *           .setName(
              +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
              +   *           .build();
              +   *   gkeHubClient.deleteScopeNamespaceAsync(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 deleteScopeNamespaceAsync( + DeleteScopeNamespaceRequest request) { + return deleteScopeNamespaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteScopeNamespaceRequest request =
              +   *       DeleteScopeNamespaceRequest.newBuilder()
              +   *           .setName(
              +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.deleteScopeNamespaceOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + deleteScopeNamespaceOperationCallable() { + return stub.deleteScopeNamespaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteScopeNamespaceRequest request =
              +   *       DeleteScopeNamespaceRequest.newBuilder()
              +   *           .setName(
              +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.deleteScopeNamespaceCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + deleteScopeNamespaceCallable() { + return stub.deleteScopeNamespaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
              +   *   for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeNamespacesPagedResponse listScopeNamespaces(ScopeName parent) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listScopeNamespaces(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
              +   *   for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeNamespacesPagedResponse listScopeNamespaces(String parent) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder().setParent(parent).build(); + return listScopeNamespaces(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListScopeNamespacesRequest request =
              +   *       ListScopeNamespacesRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   for (Namespace element : gkeHubClient.listScopeNamespaces(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 ListScopeNamespacesPagedResponse listScopeNamespaces( + ListScopeNamespacesRequest request) { + return listScopeNamespacesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListScopeNamespacesRequest request =
              +   *       ListScopeNamespacesRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.listScopeNamespacesPagedCallable().futureCall(request);
              +   *   // Do something.
              +   *   for (Namespace element : future.get().iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listScopeNamespacesPagedCallable() { + return stub.listScopeNamespacesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListScopeNamespacesRequest request =
              +   *       ListScopeNamespacesRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   while (true) {
              +   *     ListScopeNamespacesResponse response =
              +   *         gkeHubClient.listScopeNamespacesCallable().call(request);
              +   *     for (Namespace element : response.getScopeNamespacesList()) {
              +   *       // doThingsWith(element);
              +   *     }
              +   *     String nextPageToken = response.getNextPageToken();
              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
              +   *     } else {
              +   *       break;
              +   *     }
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listScopeNamespacesCallable() { + return stub.listScopeNamespacesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   RBACRoleBindingName name =
              +   *       RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
              +   *           "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
              +   *   RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name);
              +   * }
              +   * }
              + * + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RBACRoleBinding getScopeRBACRoleBinding(RBACRoleBindingName name) { + GetScopeRBACRoleBindingRequest request = + GetScopeRBACRoleBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getScopeRBACRoleBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name =
              +   *       RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
              +   *               "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
              +   *           .toString();
              +   *   RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name);
              +   * }
              +   * }
              + * + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RBACRoleBinding getScopeRBACRoleBinding(String name) { + GetScopeRBACRoleBindingRequest request = + GetScopeRBACRoleBindingRequest.newBuilder().setName(name).build(); + return getScopeRBACRoleBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetScopeRBACRoleBindingRequest request =
              +   *       GetScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setName(
              +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
              +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
              +   *                   .toString())
              +   *           .build();
              +   *   RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(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 RBACRoleBinding getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request) { + return getScopeRBACRoleBindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetScopeRBACRoleBindingRequest request =
              +   *       GetScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setName(
              +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
              +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
              +   *                   .toString())
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.getScopeRBACRoleBindingCallable().futureCall(request);
              +   *   // Do something.
              +   *   RBACRoleBinding response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + getScopeRBACRoleBindingCallable() { + return stub.getScopeRBACRoleBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
              +   *   RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
              +   *   String rbacrolebindingId = "rbacrolebindingId827577784";
              +   *   RBACRoleBinding response =
              +   *       gkeHubClient
              +   *           .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
              +   *           .get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/scopes/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: + *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeRBACRoleBindingAsync( + MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) + .build(); + return createScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
              +   *   RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
              +   *   String rbacrolebindingId = "rbacrolebindingId827577784";
              +   *   RBACRoleBinding response =
              +   *       gkeHubClient
              +   *           .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
              +   *           .get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/scopes/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: + *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeRBACRoleBindingAsync( + ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) + .build(); + return createScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
              +   *   RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
              +   *   String rbacrolebindingId = "rbacrolebindingId827577784";
              +   *   RBACRoleBinding response =
              +   *       gkeHubClient
              +   *           .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
              +   *           .get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/scopes/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: + *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeRBACRoleBindingAsync( + String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(parent) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) + .build(); + return createScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateScopeRBACRoleBindingRequest request =
              +   *       CreateScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setRbacrolebindingId("rbacrolebindingId827577784")
              +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
              +   *           .build();
              +   *   RBACRoleBinding response = gkeHubClient.createScopeRBACRoleBindingAsync(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 createScopeRBACRoleBindingAsync( + CreateScopeRBACRoleBindingRequest request) { + return createScopeRBACRoleBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateScopeRBACRoleBindingRequest request =
              +   *       CreateScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setRbacrolebindingId("rbacrolebindingId827577784")
              +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.createScopeRBACRoleBindingOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   RBACRoleBinding response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationCallable() { + return stub.createScopeRBACRoleBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateScopeRBACRoleBindingRequest request =
              +   *       CreateScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setRbacrolebindingId("rbacrolebindingId827577784")
              +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.createScopeRBACRoleBindingCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + createScopeRBACRoleBindingCallable() { + return stub.createScopeRBACRoleBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
              +   *   RBACRoleBinding response =
              +   *       gkeHubClient.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get();
              +   * }
              +   * }
              + * + * @param rbacrolebinding Required. A rbacrolebinding with fields updated. The 'name' field in + * this rbacrolebinding is used to identify the resource to update. + * @param updateMask Required. The fields to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateScopeRBACRoleBindingAsync( + RBACRoleBinding rbacrolebinding, FieldMask updateMask) { + UpdateScopeRBACRoleBindingRequest request = + UpdateScopeRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(rbacrolebinding) + .setUpdateMask(updateMask) + .build(); + return updateScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateScopeRBACRoleBindingRequest request =
              +   *       UpdateScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   RBACRoleBinding response = gkeHubClient.updateScopeRBACRoleBindingAsync(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 updateScopeRBACRoleBindingAsync( + UpdateScopeRBACRoleBindingRequest request) { + return updateScopeRBACRoleBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateScopeRBACRoleBindingRequest request =
              +   *       UpdateScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.updateScopeRBACRoleBindingOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   RBACRoleBinding response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationCallable() { + return stub.updateScopeRBACRoleBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateScopeRBACRoleBindingRequest request =
              +   *       UpdateScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.updateScopeRBACRoleBindingCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + updateScopeRBACRoleBindingCallable() { + return stub.updateScopeRBACRoleBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   RBACRoleBindingName name =
              +   *       RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
              +   *           "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
              +   *   gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeRBACRoleBindingAsync( + RBACRoleBindingName name) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name =
              +   *       RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
              +   *               "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
              +   *           .toString();
              +   *   gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeRBACRoleBindingAsync( + String name) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder().setName(name).build(); + return deleteScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteScopeRBACRoleBindingRequest request =
              +   *       DeleteScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setName(
              +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
              +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
              +   *                   .toString())
              +   *           .build();
              +   *   gkeHubClient.deleteScopeRBACRoleBindingAsync(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 deleteScopeRBACRoleBindingAsync( + DeleteScopeRBACRoleBindingRequest request) { + return deleteScopeRBACRoleBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteScopeRBACRoleBindingRequest request =
              +   *       DeleteScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setName(
              +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
              +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
              +   *                   .toString())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.deleteScopeRBACRoleBindingOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + deleteScopeRBACRoleBindingOperationCallable() { + return stub.deleteScopeRBACRoleBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteScopeRBACRoleBindingRequest request =
              +   *       DeleteScopeRBACRoleBindingRequest.newBuilder()
              +   *           .setName(
              +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
              +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
              +   *                   .toString())
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.deleteScopeRBACRoleBindingCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + deleteScopeRBACRoleBindingCallable() { + return stub.deleteScopeRBACRoleBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
              +   *   for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings( + MembershipName parent) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listScopeRBACRoleBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
              +   *   for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(ScopeName parent) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listScopeRBACRoleBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
              +   *   for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(String parent) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder().setParent(parent).build(); + return listScopeRBACRoleBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListScopeRBACRoleBindingsRequest request =
              +   *       ListScopeRBACRoleBindingsRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(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 ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings( + ListScopeRBACRoleBindingsRequest request) { + return listScopeRBACRoleBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListScopeRBACRoleBindingsRequest request =
              +   *       ListScopeRBACRoleBindingsRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.listScopeRBACRoleBindingsPagedCallable().futureCall(request);
              +   *   // Do something.
              +   *   for (RBACRoleBinding element : future.get().iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsPagedCallable() { + return stub.listScopeRBACRoleBindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListScopeRBACRoleBindingsRequest request =
              +   *       ListScopeRBACRoleBindingsRequest.newBuilder()
              +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   while (true) {
              +   *     ListScopeRBACRoleBindingsResponse response =
              +   *         gkeHubClient.listScopeRBACRoleBindingsCallable().call(request);
              +   *     for (RBACRoleBinding element : response.getRbacrolebindingsList()) {
              +   *       // doThingsWith(element);
              +   *     }
              +   *     String nextPageToken = response.getNextPageToken();
              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
              +   *     } else {
              +   *       break;
              +   *     }
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listScopeRBACRoleBindingsCallable() { + return stub.listScopeRBACRoleBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
              +   *   Scope response = gkeHubClient.getScope(name);
              +   * }
              +   * }
              + * + * @param name Required. The Scope resource name in the format + * `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Scope getScope(ScopeName name) { + GetScopeRequest request = + GetScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getScope(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
              +   *   Scope response = gkeHubClient.getScope(name);
              +   * }
              +   * }
              + * + * @param name Required. The Scope resource name in the format + * `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Scope getScope(String name) { + GetScopeRequest request = GetScopeRequest.newBuilder().setName(name).build(); + return getScope(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetScopeRequest request =
              +   *       GetScopeRequest.newBuilder()
              +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .build();
              +   *   Scope response = gkeHubClient.getScope(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 Scope getScope(GetScopeRequest request) { + return getScopeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetScopeRequest request =
              +   *       GetScopeRequest.newBuilder()
              +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.getScopeCallable().futureCall(request);
              +   *   // Do something.
              +   *   Scope response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable getScopeCallable() { + return stub.getScopeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   Scope scope = Scope.newBuilder().build();
              +   *   String scopeId = "scopeId1923941007";
              +   *   Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Scope will be created. + * Specified in the format `projects/*/locations/*`. + * @param scope Required. The Scope to create. + * @param scopeId Required. Client chosen ID for the Scope. `scope_id` must be a ???? + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeAsync( + LocationName parent, Scope scope, String scopeId) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setScope(scope) + .setScopeId(scopeId) + .build(); + return createScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              +   *   Scope scope = Scope.newBuilder().build();
              +   *   String scopeId = "scopeId1923941007";
              +   *   Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Scope will be created. + * Specified in the format `projects/*/locations/*`. + * @param scope Required. The Scope to create. + * @param scopeId Required. Client chosen ID for the Scope. `scope_id` must be a ???? + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeAsync( + String parent, Scope scope, String scopeId) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(parent) + .setScope(scope) + .setScopeId(scopeId) + .build(); + return createScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateScopeRequest request =
              +   *       CreateScopeRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setScopeId("scopeId1923941007")
              +   *           .setScope(Scope.newBuilder().build())
              +   *           .build();
              +   *   Scope response = gkeHubClient.createScopeAsync(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 createScopeAsync( + CreateScopeRequest request) { + return createScopeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateScopeRequest request =
              +   *       CreateScopeRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setScopeId("scopeId1923941007")
              +   *           .setScope(Scope.newBuilder().build())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.createScopeOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Scope response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + createScopeOperationCallable() { + return stub.createScopeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateScopeRequest request =
              +   *       CreateScopeRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setScopeId("scopeId1923941007")
              +   *           .setScope(Scope.newBuilder().build())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.createScopeCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable createScopeCallable() { + return stub.createScopeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   Scope scope = Scope.newBuilder().build();
              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
              +   *   Scope response = gkeHubClient.updateScopeAsync(scope, updateMask).get();
              +   * }
              +   * }
              + * + * @param scope Required. A Scope with fields updated. The 'name' field in this namespace is used + * to identify the resource to update. + * @param updateMask Required. The fields to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateScopeAsync( + Scope scope, FieldMask updateMask) { + UpdateScopeRequest request = + UpdateScopeRequest.newBuilder().setScope(scope).setUpdateMask(updateMask).build(); + return updateScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateScopeRequest request =
              +   *       UpdateScopeRequest.newBuilder()
              +   *           .setScope(Scope.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   Scope response = gkeHubClient.updateScopeAsync(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 updateScopeAsync( + UpdateScopeRequest request) { + return updateScopeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateScopeRequest request =
              +   *       UpdateScopeRequest.newBuilder()
              +   *           .setScope(Scope.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.updateScopeOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   Scope response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + updateScopeOperationCallable() { + return stub.updateScopeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateScopeRequest request =
              +   *       UpdateScopeRequest.newBuilder()
              +   *           .setScope(Scope.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.updateScopeCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable updateScopeCallable() { + return stub.updateScopeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
              +   *   gkeHubClient.deleteScopeAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Scope resource name in the format + * `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeAsync(ScopeName name) { + DeleteScopeRequest request = + DeleteScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
              +   *   gkeHubClient.deleteScopeAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The Scope resource name in the format + * `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeAsync(String name) { + DeleteScopeRequest request = DeleteScopeRequest.newBuilder().setName(name).build(); + return deleteScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteScopeRequest request =
              +   *       DeleteScopeRequest.newBuilder()
              +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .build();
              +   *   gkeHubClient.deleteScopeAsync(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 deleteScopeAsync( + DeleteScopeRequest request) { + return deleteScopeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteScopeRequest request =
              +   *       DeleteScopeRequest.newBuilder()
              +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.deleteScopeOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + deleteScopeOperationCallable() { + return stub.deleteScopeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteScopeRequest request =
              +   *       DeleteScopeRequest.newBuilder()
              +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.deleteScopeCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable deleteScopeCallable() { + return stub.deleteScopeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Scope will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopesPagedResponse listScopes(LocationName parent) { + ListScopesRequest request = + ListScopesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listScopes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              +   *   for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Scope will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopesPagedResponse listScopes(String parent) { + ListScopesRequest request = ListScopesRequest.newBuilder().setParent(parent).build(); + return listScopes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListScopesRequest request =
              +   *       ListScopesRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   for (Scope element : gkeHubClient.listScopes(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 ListScopesPagedResponse listScopes(ListScopesRequest request) { + return listScopesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListScopesRequest request =
              +   *       ListScopesRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.listScopesPagedCallable().futureCall(request);
              +   *   // Do something.
              +   *   for (Scope element : future.get().iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable listScopesPagedCallable() { + return stub.listScopesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListScopesRequest request =
              +   *       ListScopesRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   while (true) {
              +   *     ListScopesResponse response = gkeHubClient.listScopesCallable().call(request);
              +   *     for (Scope element : response.getScopesList()) {
              +   *       // doThingsWith(element);
              +   *     }
              +   *     String nextPageToken = response.getNextPageToken();
              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
              +   *     } else {
              +   *       break;
              +   *     }
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable listScopesCallable() { + return stub.listScopesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Scope will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPermittedScopesPagedResponse listPermittedScopes(LocationName parent) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPermittedScopes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
              +   *   for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the Scope will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPermittedScopesPagedResponse listPermittedScopes(String parent) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder().setParent(parent).build(); + return listPermittedScopes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListPermittedScopesRequest request =
              +   *       ListPermittedScopesRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   for (Scope element : gkeHubClient.listPermittedScopes(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 ListPermittedScopesPagedResponse listPermittedScopes( + ListPermittedScopesRequest request) { + return listPermittedScopesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListPermittedScopesRequest request =
              +   *       ListPermittedScopesRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   ApiFuture future = gkeHubClient.listPermittedScopesPagedCallable().futureCall(request);
              +   *   // Do something.
              +   *   for (Scope element : future.get().iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listPermittedScopesPagedCallable() { + return stub.listPermittedScopesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   ListPermittedScopesRequest request =
              +   *       ListPermittedScopesRequest.newBuilder()
              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
              +   *           .setPageSize(883849137)
              +   *           .setPageToken("pageToken873572522")
              +   *           .build();
              +   *   while (true) {
              +   *     ListPermittedScopesResponse response =
              +   *         gkeHubClient.listPermittedScopesCallable().call(request);
              +   *     for (Scope element : response.getScopesList()) {
              +   *       // doThingsWith(element);
              +   *     }
              +   *     String nextPageToken = response.getNextPageToken();
              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
              +   *     } else {
              +   *       break;
              +   *     }
              +   *   }
              +   * }
              +   * }
              + */ + public final UnaryCallable + listPermittedScopesCallable() { + return stub.listPermittedScopesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   MembershipBindingName name =
              +   *       MembershipBindingName.of(
              +   *           "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
              +   *   MembershipBinding response = gkeHubClient.getMembershipBinding(name);
              +   * }
              +   * }
              + * + * @param name Required. The MembershipBinding resource name in the format + * `projects/*/locations/*/memberships/*/bindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MembershipBinding getMembershipBinding(MembershipBindingName name) { + GetMembershipBindingRequest request = + GetMembershipBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMembershipBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name =
              +   *       MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
              +   *           .toString();
              +   *   MembershipBinding response = gkeHubClient.getMembershipBinding(name);
              +   * }
              +   * }
              + * + * @param name Required. The MembershipBinding resource name in the format + * `projects/*/locations/*/memberships/*/bindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MembershipBinding getMembershipBinding(String name) { + GetMembershipBindingRequest request = + GetMembershipBindingRequest.newBuilder().setName(name).build(); + return getMembershipBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetMembershipBindingRequest request =
              +   *       GetMembershipBindingRequest.newBuilder()
              +   *           .setName(
              +   *               MembershipBindingName.of(
              +   *                       "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
              +   *                   .toString())
              +   *           .build();
              +   *   MembershipBinding response = gkeHubClient.getMembershipBinding(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 MembershipBinding getMembershipBinding(GetMembershipBindingRequest request) { + return getMembershipBindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   GetMembershipBindingRequest request =
              +   *       GetMembershipBindingRequest.newBuilder()
              +   *           .setName(
              +   *               MembershipBindingName.of(
              +   *                       "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
              +   *                   .toString())
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.getMembershipBindingCallable().futureCall(request);
              +   *   // Do something.
              +   *   MembershipBinding response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + getMembershipBindingCallable() { + return stub.getMembershipBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
              +   *   MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
              +   *   String membershipBindingId = "membershipBindingId1360802634";
              +   *   MembershipBinding response =
              +   *       gkeHubClient
              +   *           .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId)
              +   *           .get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the MembershipBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param membershipBinding Required. The MembershipBinding to create. + * @param membershipBindingId Required. The ID to use for the MembershipBinding. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipBindingAsync( + MembershipName parent, MembershipBinding membershipBinding, String membershipBindingId) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMembershipBinding(membershipBinding) + .setMembershipBindingId(membershipBindingId) + .build(); + return createMembershipBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
              +   *   MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
              +   *   String membershipBindingId = "membershipBindingId1360802634";
              +   *   MembershipBinding response =
              +   *       gkeHubClient
              +   *           .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId)
              +   *           .get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent (project and location) where the MembershipBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param membershipBinding Required. The MembershipBinding to create. + * @param membershipBindingId Required. The ID to use for the MembershipBinding. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipBindingAsync( + String parent, MembershipBinding membershipBinding, String membershipBindingId) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(parent) + .setMembershipBinding(membershipBinding) + .setMembershipBindingId(membershipBindingId) + .build(); + return createMembershipBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateMembershipBindingRequest request =
              +   *       CreateMembershipBindingRequest.newBuilder()
              +   *           .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setMembershipBinding(MembershipBinding.newBuilder().build())
              +   *           .setMembershipBindingId("membershipBindingId1360802634")
                  *           .build();
              -   *   ApiFuture future =
              -   *       gkeHubClient.listMembershipsPagedCallable().futureCall(request);
              +   *   MembershipBinding response = gkeHubClient.createMembershipBindingAsync(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 createMembershipBindingAsync( + CreateMembershipBindingRequest request) { + return createMembershipBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   CreateMembershipBindingRequest request =
              +   *       CreateMembershipBindingRequest.newBuilder()
              +   *           .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              +   *           .setMembershipBinding(MembershipBinding.newBuilder().build())
              +   *           .setMembershipBindingId("membershipBindingId1360802634")
              +   *           .build();
              +   *   OperationFuture future =
              +   *       gkeHubClient.createMembershipBindingOperationCallable().futureCall(request);
                  *   // Do something.
              -   *   for (Membership element : future.get().iterateAll()) {
              -   *     // doThingsWith(element);
              -   *   }
              +   *   MembershipBinding response = future.get();
                  * }
                  * }
              */ - public final UnaryCallable - listMembershipsPagedCallable() { - return stub.listMembershipsPagedCallable(); + public final OperationCallable< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationCallable() { + return stub.createMembershipBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Memberships in a given project and location. + * Creates a MembershipBinding. * *

              Sample code: * @@ -570,37 +6341,27 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * ListMembershipsRequest request = - * ListMembershipsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * CreateMembershipBindingRequest request = + * CreateMembershipBindingRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setMembershipBinding(MembershipBinding.newBuilder().build()) + * .setMembershipBindingId("membershipBindingId1360802634") * .build(); - * while (true) { - * ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request); - * for (Membership element : response.getResourcesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * gkeHubClient.createMembershipBindingCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * }

              */ - public final UnaryCallable - listMembershipsCallable() { - return stub.listMembershipsCallable(); + public final UnaryCallable + createMembershipBindingCallable() { + return stub.createMembershipBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Updates a MembershipBinding. * *

              Sample code: * @@ -611,28 +6372,30 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { - * // doThingsWith(element); - * } + * MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * MembershipBinding response = + * gkeHubClient.updateMembershipBindingAsync(membershipBinding, updateMask).get(); * } * } * - * @param parent Required. The parent (project and location) where the Features will be listed. - * Specified in the format `projects/*/locations/*`. + * @param membershipBinding Required. The MembershipBinding object with fields updated. + * @param updateMask Required. The fields to be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(LocationName parent) { - ListFeaturesRequest request = - ListFeaturesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final OperationFuture updateMembershipBindingAsync( + MembershipBinding membershipBinding, FieldMask updateMask) { + UpdateMembershipBindingRequest request = + UpdateMembershipBindingRequest.newBuilder() + .setMembershipBinding(membershipBinding) + .setUpdateMask(updateMask) .build(); - return listFeatures(request); + return updateMembershipBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Updates a MembershipBinding. * *

              Sample code: * @@ -643,25 +6406,26 @@ public final ListFeaturesPagedResponse listFeatures(LocationName parent) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { - * // doThingsWith(element); - * } + * UpdateMembershipBindingRequest request = + * UpdateMembershipBindingRequest.newBuilder() + * .setMembershipBinding(MembershipBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * MembershipBinding response = gkeHubClient.updateMembershipBindingAsync(request).get(); * } * } * - * @param parent Required. The parent (project and location) where the Features will be listed. - * Specified in the format `projects/*/locations/*`. + * @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 ListFeaturesPagedResponse listFeatures(String parent) { - ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build(); - return listFeatures(request); + public final OperationFuture updateMembershipBindingAsync( + UpdateMembershipBindingRequest request) { + return updateMembershipBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Updates a MembershipBinding. * *

              Sample code: * @@ -672,30 +6436,152 @@ public final ListFeaturesPagedResponse listFeatures(String parent) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * ListFeaturesRequest request = - * ListFeaturesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * UpdateMembershipBindingRequest request = + * UpdateMembershipBindingRequest.newBuilder() + * .setMembershipBinding(MembershipBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * for (Feature element : gkeHubClient.listFeatures(request).iterateAll()) { - * // doThingsWith(element); - * } + * OperationFuture future = + * gkeHubClient.updateMembershipBindingOperationCallable().futureCall(request); + * // Do something. + * MembershipBinding response = future.get(); + * } + * } + */ + public final OperationCallable< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationCallable() { + return stub.updateMembershipBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   UpdateMembershipBindingRequest request =
              +   *       UpdateMembershipBindingRequest.newBuilder()
              +   *           .setMembershipBinding(MembershipBinding.newBuilder().build())
              +   *           .setUpdateMask(FieldMask.newBuilder().build())
              +   *           .build();
              +   *   ApiFuture future =
              +   *       gkeHubClient.updateMembershipBindingCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + updateMembershipBindingCallable() { + return stub.updateMembershipBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   MembershipBindingName name =
              +   *       MembershipBindingName.of(
              +   *           "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
              +   *   gkeHubClient.deleteMembershipBindingAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The MembershipBinding resource name in the format + * `projects/*/locations/*/memberships/*/bindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMembershipBindingAsync( + MembershipBindingName name) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteMembershipBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   String name =
              +   *       MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
              +   *           .toString();
              +   *   gkeHubClient.deleteMembershipBindingAsync(name).get();
              +   * }
              +   * }
              + * + * @param name Required. The MembershipBinding resource name in the format + * `projects/*/locations/*/memberships/*/bindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMembershipBindingAsync(String name) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder().setName(name).build(); + return deleteMembershipBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MembershipBinding. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   DeleteMembershipBindingRequest request =
              +   *       DeleteMembershipBindingRequest.newBuilder()
              +   *           .setName(
              +   *               MembershipBindingName.of(
              +   *                       "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
              +   *                   .toString())
              +   *           .build();
              +   *   gkeHubClient.deleteMembershipBindingAsync(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 ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) { - return listFeaturesPagedCallable().call(request); + public final OperationFuture deleteMembershipBindingAsync( + DeleteMembershipBindingRequest request) { + return deleteMembershipBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Deletes a MembershipBinding. * *

              Sample code: * @@ -706,30 +6592,28 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * ListFeaturesRequest request = - * ListFeaturesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * DeleteMembershipBindingRequest request = + * DeleteMembershipBindingRequest.newBuilder() + * .setName( + * MembershipBindingName.of( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + * .toString()) * .build(); - * ApiFuture future = gkeHubClient.listFeaturesPagedCallable().futureCall(request); + * OperationFuture future = + * gkeHubClient.deleteMembershipBindingOperationCallable().futureCall(request); * // Do something. - * for (Feature element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * future.get(); * } * } */ - public final UnaryCallable - listFeaturesPagedCallable() { - return stub.listFeaturesPagedCallable(); + public final OperationCallable + deleteMembershipBindingOperationCallable() { + return stub.deleteMembershipBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Deletes a MembershipBinding. * *

              Sample code: * @@ -740,36 +6624,60 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * ListFeaturesRequest request = - * ListFeaturesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * DeleteMembershipBindingRequest request = + * DeleteMembershipBindingRequest.newBuilder() + * .setName( + * MembershipBindingName.of( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + * .toString()) * .build(); - * while (true) { - * ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request); - * for (Feature element : response.getResourcesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } + * ApiFuture future = + * gkeHubClient.deleteMembershipBindingCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * } + */ + public final UnaryCallable + deleteMembershipBindingCallable() { + return stub.deleteMembershipBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MembershipBindings. + * + *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              +   *   MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
              +   *   for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) {
              +   *     // doThingsWith(element);
                  *   }
                  * }
                  * }
              + * + * @param parent Required. The parent Membership for which the MembershipBindings will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable listFeaturesCallable() { - return stub.listFeaturesCallable(); + public final ListMembershipBindingsPagedResponse listMembershipBindings(MembershipName parent) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMembershipBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a Membership. + * Lists MembershipBindings. * *

              Sample code: * @@ -780,24 +6688,26 @@ public final UnaryCallable listFeatur * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); - * Membership response = gkeHubClient.getMembership(name); + * String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + * for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. + * @param parent Required. The parent Membership for which the MembershipBindings will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Membership getMembership(MembershipName name) { - GetMembershipRequest request = - GetMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getMembership(request); + public final ListMembershipBindingsPagedResponse listMembershipBindings(String parent) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder().setParent(parent).build(); + return listMembershipBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a Membership. + * Lists MembershipBindings. * *

              Sample code: * @@ -808,23 +6718,30 @@ public final Membership getMembership(MembershipName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); - * Membership response = gkeHubClient.getMembership(name); + * ListMembershipBindingsRequest request = + * ListMembershipBindingsRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (MembershipBinding element : gkeHubClient.listMembershipBindings(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. + * @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 Membership getMembership(String name) { - GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name).build(); - return getMembership(request); + public final ListMembershipBindingsPagedResponse listMembershipBindings( + ListMembershipBindingsRequest request) { + return listMembershipBindingsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a Membership. + * Lists MembershipBindings. * *

              Sample code: * @@ -835,24 +6752,30 @@ public final Membership getMembership(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * GetMembershipRequest request = - * GetMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * ListMembershipBindingsRequest request = + * ListMembershipBindingsRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * Membership response = gkeHubClient.getMembership(request); + * ApiFuture future = + * gkeHubClient.listMembershipBindingsPagedCallable().futureCall(request); + * // Do something. + * for (MembershipBinding element : future.get().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 Membership getMembership(GetMembershipRequest request) { - return getMembershipCallable().call(request); + public final UnaryCallable + listMembershipBindingsPagedCallable() { + return stub.listMembershipBindingsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a Membership. + * Lists MembershipBindings. * *

              Sample code: * @@ -863,23 +6786,37 @@ public final Membership getMembership(GetMembershipRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * GetMembershipRequest request = - * GetMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * ListMembershipBindingsRequest request = + * ListMembershipBindingsRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = gkeHubClient.getMembershipCallable().futureCall(request); - * // Do something. - * Membership response = future.get(); + * while (true) { + * ListMembershipBindingsResponse response = + * gkeHubClient.listMembershipBindingsCallable().call(request); + * for (MembershipBinding element : response.getMembershipBindingsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable getMembershipCallable() { - return stub.getMembershipCallable(); + public final UnaryCallable + listMembershipBindingsCallable() { + return stub.listMembershipBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Feature. + * Returns the details of a Membership RBACRoleBinding. * *

              Sample code: * @@ -890,24 +6827,28 @@ public final UnaryCallable getMembershipCallab * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); - * Feature response = gkeHubClient.getFeature(name); + * RBACRoleBindingName name = + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name); * } * } * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*` + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/memberships/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(FeatureName name) { - GetFeatureRequest request = - GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getFeature(request); + public final RBACRoleBinding getMembershipRBACRoleBinding(RBACRoleBindingName name) { + GetMembershipRBACRoleBindingRequest request = + GetMembershipRBACRoleBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMembershipRBACRoleBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Feature. + * Returns the details of a Membership RBACRoleBinding. * *

              Sample code: * @@ -918,23 +6859,27 @@ public final Feature getFeature(FeatureName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); - * Feature response = gkeHubClient.getFeature(name); + * String name = + * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + * .toString(); + * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name); * } * } * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*` + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/memberships/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(String name) { - GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build(); - return getFeature(request); + public final RBACRoleBinding getMembershipRBACRoleBinding(String name) { + GetMembershipRBACRoleBindingRequest request = + GetMembershipRBACRoleBindingRequest.newBuilder().setName(name).build(); + return getMembershipRBACRoleBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Feature. + * Returns the details of a Membership RBACRoleBinding. * *

              Sample code: * @@ -945,24 +6890,28 @@ public final Feature getFeature(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * GetFeatureRequest request = - * GetFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + * GetMembershipRBACRoleBindingRequest request = + * GetMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); - * Feature response = gkeHubClient.getFeature(request); + * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(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 Feature getFeature(GetFeatureRequest request) { - return getFeatureCallable().call(request); + public final RBACRoleBinding getMembershipRBACRoleBinding( + GetMembershipRBACRoleBindingRequest request) { + return getMembershipRBACRoleBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Feature. + * Returns the details of a Membership RBACRoleBinding. * *

              Sample code: * @@ -973,27 +6922,28 @@ public final Feature getFeature(GetFeatureRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * GetFeatureRequest request = - * GetFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + * GetMembershipRBACRoleBindingRequest request = + * GetMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); - * ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.getMembershipRBACRoleBindingCallable().futureCall(request); * // Do something. - * Feature response = future.get(); + * RBACRoleBinding response = future.get(); * } * } */ - public final UnaryCallable getFeatureCallable() { - return stub.getFeatureCallable(); + public final UnaryCallable + getMembershipRBACRoleBindingCallable() { + return stub.getMembershipRBACRoleBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1004,43 +6954,42 @@ public final UnaryCallable getFeatureCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Membership resource = Membership.newBuilder().build(); - * String membershipId = "membershipId517665681"; - * Membership response = - * gkeHubClient.createMembershipAsync(parent, resource, membershipId).get(); + * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + * String rbacrolebindingId = "rbacrolebindingId827577784"; + * RBACRoleBinding response = + * gkeHubClient + * .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + * .get(); * } * } * - * @param parent Required. The parent (project and location) where the Memberships will be - * created. Specified in the format `projects/*/locations/*`. - * @param resource Required. The membership to create. - * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a - * valid RFC 1123 compliant DNS label: + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric * characters or `-` 3. It must start and end with an alphanumeric character *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum * length of 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createMembershipAsync( - LocationName parent, Membership resource, String membershipId) { - CreateMembershipRequest request = - CreateMembershipRequest.newBuilder() + public final OperationFuture + createMembershipRBACRoleBindingAsync( + MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setResource(resource) - .setMembershipId(membershipId) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) .build(); - return createMembershipAsync(request); + return createMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1051,43 +7000,42 @@ public final OperationFuture createMembershipAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Membership resource = Membership.newBuilder().build(); - * String membershipId = "membershipId517665681"; - * Membership response = - * gkeHubClient.createMembershipAsync(parent, resource, membershipId).get(); + * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + * String rbacrolebindingId = "rbacrolebindingId827577784"; + * RBACRoleBinding response = + * gkeHubClient + * .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + * .get(); * } * } * - * @param parent Required. The parent (project and location) where the Memberships will be - * created. Specified in the format `projects/*/locations/*`. - * @param resource Required. The membership to create. - * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a - * valid RFC 1123 compliant DNS label: + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric * characters or `-` 3. It must start and end with an alphanumeric character *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum * length of 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createMembershipAsync( - String parent, Membership resource, String membershipId) { - CreateMembershipRequest request = - CreateMembershipRequest.newBuilder() - .setParent(parent) - .setResource(resource) - .setMembershipId(membershipId) + public final OperationFuture + createMembershipRBACRoleBindingAsync( + ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) .build(); - return createMembershipAsync(request); + return createMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1098,32 +7046,42 @@ public final OperationFuture createMembershipAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateMembershipRequest request = - * CreateMembershipRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setMembershipId("membershipId517665681") - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * Membership response = gkeHubClient.createMembershipAsync(request).get(); + * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + * String rbacrolebindingId = "rbacrolebindingId827577784"; + * RBACRoleBinding response = + * gkeHubClient + * .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + * .get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: + *

              1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

              Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createMembershipAsync( - CreateMembershipRequest request) { - return createMembershipOperationCallable().futureCall(request); + public final OperationFuture + createMembershipRBACRoleBindingAsync( + String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(parent) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) + .build(); + return createMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1134,32 +7092,27 @@ public final OperationFuture createMembershipAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateMembershipRequest request = - * CreateMembershipRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setMembershipId("membershipId517665681") - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") + * CreateMembershipRBACRoleBindingRequest request = + * CreateMembershipRBACRoleBindingRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) * .build(); - * OperationFuture future = - * gkeHubClient.createMembershipOperationCallable().futureCall(request); - * // Do something. - * Membership response = future.get(); + * RBACRoleBinding response = gkeHubClient.createMembershipRBACRoleBindingAsync(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 OperationCallable - createMembershipOperationCallable() { - return stub.createMembershipOperationCallable(); + public final OperationFuture + createMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest request) { + return createMembershipRBACRoleBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1170,26 +7123,28 @@ public final OperationFuture createMembershipAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateMembershipRequest request = - * CreateMembershipRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setMembershipId("membershipId517665681") - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") + * CreateMembershipRBACRoleBindingRequest request = + * CreateMembershipRBACRoleBindingRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) * .build(); - * ApiFuture future = gkeHubClient.createMembershipCallable().futureCall(request); + * OperationFuture future = + * gkeHubClient.createMembershipRBACRoleBindingOperationCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * RBACRoleBinding response = future.get(); * } * } */ - public final UnaryCallable createMembershipCallable() { - return stub.createMembershipCallable(); + public final OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable() { + return stub.createMembershipRBACRoleBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Creates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1200,33 +7155,27 @@ public final UnaryCallable createMembershipC * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Feature resource = Feature.newBuilder().build(); - * String featureId = "featureId-420503887"; - * Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get(); + * CreateMembershipRBACRoleBindingRequest request = + * CreateMembershipRBACRoleBindingRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + * .build(); + * ApiFuture future = + * gkeHubClient.createMembershipRBACRoleBindingCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } - * - * @param parent Required. The parent (project and location) where the Feature will be created. - * Specified in the format `projects/*/locations/*`. - * @param resource The Feature resource to create. - * @param featureId The ID of the feature to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createFeatureAsync( - LocationName parent, Feature resource, String featureId) { - CreateFeatureRequest request = - CreateFeatureRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setResource(resource) - .setFeatureId(featureId) - .build(); - return createFeatureAsync(request); + public final UnaryCallable + createMembershipRBACRoleBindingCallable() { + return stub.createMembershipRBACRoleBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Updates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1237,33 +7186,31 @@ public final OperationFuture createFeatureAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Feature resource = Feature.newBuilder().build(); - * String featureId = "featureId-420503887"; - * Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get(); + * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * RBACRoleBinding response = + * gkeHubClient.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); * } * } * - * @param parent Required. The parent (project and location) where the Feature will be created. - * Specified in the format `projects/*/locations/*`. - * @param resource The Feature resource to create. - * @param featureId The ID of the feature to create. + * @param rbacrolebinding Required. A rbacrolebinding with fields updated. The 'name' field in + * this rbacrolebinding is used to identify the resource to update. + * @param updateMask Required. The fields to be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createFeatureAsync( - String parent, Feature resource, String featureId) { - CreateFeatureRequest request = - CreateFeatureRequest.newBuilder() - .setParent(parent) - .setResource(resource) - .setFeatureId(featureId) + */ + public final OperationFuture + updateMembershipRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask) { + UpdateMembershipRBACRoleBindingRequest request = + UpdateMembershipRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(rbacrolebinding) + .setUpdateMask(updateMask) .build(); - return createFeatureAsync(request); + return updateMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Updates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1274,28 +7221,26 @@ public final OperationFuture createFeatureAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateFeatureRequest request = - * CreateFeatureRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setFeatureId("featureId-420503887") - * .setResource(Feature.newBuilder().build()) - * .setRequestId("requestId693933066") + * UpdateMembershipRBACRoleBindingRequest request = + * UpdateMembershipRBACRoleBindingRequest.newBuilder() + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * Feature response = gkeHubClient.createFeatureAsync(request).get(); + * RBACRoleBinding response = gkeHubClient.updateMembershipRBACRoleBindingAsync(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 createFeatureAsync( - CreateFeatureRequest request) { - return createFeatureOperationCallable().futureCall(request); + public final OperationFuture + updateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest request) { + return updateMembershipRBACRoleBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Updates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1306,28 +7251,27 @@ public final OperationFuture createFeatureAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateFeatureRequest request = - * CreateFeatureRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setFeatureId("featureId-420503887") - * .setResource(Feature.newBuilder().build()) - * .setRequestId("requestId693933066") + * UpdateMembershipRBACRoleBindingRequest request = + * UpdateMembershipRBACRoleBindingRequest.newBuilder() + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * OperationFuture future = - * gkeHubClient.createFeatureOperationCallable().futureCall(request); + * OperationFuture future = + * gkeHubClient.updateMembershipRBACRoleBindingOperationCallable().futureCall(request); * // Do something. - * Feature response = future.get(); + * RBACRoleBinding response = future.get(); * } * } */ - public final OperationCallable - createFeatureOperationCallable() { - return stub.createFeatureOperationCallable(); + public final OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable() { + return stub.updateMembershipRBACRoleBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Updates a Membership RBACRoleBinding. * *

              Sample code: * @@ -1338,30 +7282,26 @@ public final OperationFuture createFeatureAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateFeatureRequest request = - * CreateFeatureRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setFeatureId("featureId-420503887") - * .setResource(Feature.newBuilder().build()) - * .setRequestId("requestId693933066") + * UpdateMembershipRBACRoleBindingRequest request = + * UpdateMembershipRBACRoleBindingRequest.newBuilder() + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = gkeHubClient.createFeatureCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.updateMembershipRBACRoleBindingCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable createFeatureCallable() { - return stub.createFeatureCallable(); + public final UnaryCallable + updateMembershipRBACRoleBindingCallable() { + return stub.updateMembershipRBACRoleBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

              Sample code: * @@ -1372,29 +7312,29 @@ public final UnaryCallable createFeatureCallabl * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); - * gkeHubClient.deleteMembershipAsync(name).get(); + * RBACRoleBindingName name = + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + * gkeHubClient.deleteMembershipRBACRoleBindingAsync(name).get(); * } * } * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/memberships/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteMembershipAsync( - MembershipName name) { - DeleteMembershipRequest request = - DeleteMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteMembershipAsync(request); + public final OperationFuture deleteMembershipRBACRoleBindingAsync( + RBACRoleBindingName name) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

              Sample code: * @@ -1405,27 +7345,28 @@ public final OperationFuture deleteMembershipAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); - * gkeHubClient.deleteMembershipAsync(name).get(); + * String name = + * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + * .toString(); + * gkeHubClient.deleteMembershipRBACRoleBindingAsync(name).get(); * } * } * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/memberships/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteMembershipAsync(String name) { - DeleteMembershipRequest request = DeleteMembershipRequest.newBuilder().setName(name).build(); - return deleteMembershipAsync(request); + public final OperationFuture deleteMembershipRBACRoleBindingAsync( + String name) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder().setName(name).build(); + return deleteMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

              Sample code: * @@ -1436,31 +7377,28 @@ public final OperationFuture deleteMembershipAsync(Str * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteMembershipRequest request = - * DeleteMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setRequestId("requestId693933066") - * .setForce(true) + * DeleteMembershipRBACRoleBindingRequest request = + * DeleteMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); - * gkeHubClient.deleteMembershipAsync(request).get(); + * gkeHubClient.deleteMembershipRBACRoleBindingAsync(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 deleteMembershipAsync( - DeleteMembershipRequest request) { - return deleteMembershipOperationCallable().futureCall(request); + public final OperationFuture deleteMembershipRBACRoleBindingAsync( + DeleteMembershipRBACRoleBindingRequest request) { + return deleteMembershipRBACRoleBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

              Sample code: * @@ -1471,31 +7409,28 @@ public final OperationFuture deleteMembershipAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteMembershipRequest request = - * DeleteMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setRequestId("requestId693933066") - * .setForce(true) + * DeleteMembershipRBACRoleBindingRequest request = + * DeleteMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); * OperationFuture future = - * gkeHubClient.deleteMembershipOperationCallable().futureCall(request); + * gkeHubClient.deleteMembershipRBACRoleBindingOperationCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final OperationCallable - deleteMembershipOperationCallable() { - return stub.deleteMembershipOperationCallable(); + public final OperationCallable + deleteMembershipRBACRoleBindingOperationCallable() { + return stub.deleteMembershipRBACRoleBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

              **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

              Sample code: * @@ -1506,25 +7441,28 @@ public final OperationFuture deleteMembershipAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteMembershipRequest request = - * DeleteMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setRequestId("requestId693933066") - * .setForce(true) + * DeleteMembershipRBACRoleBindingRequest request = + * DeleteMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); - * ApiFuture future = gkeHubClient.deleteMembershipCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.deleteMembershipRBACRoleBindingCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable deleteMembershipCallable() { - return stub.deleteMembershipCallable(); + public final UnaryCallable + deleteMembershipRBACRoleBindingCallable() { + return stub.deleteMembershipRBACRoleBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

              Sample code: * @@ -1535,24 +7473,30 @@ public final UnaryCallable deleteMembershipC * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); - * gkeHubClient.deleteFeatureAsync(name).get(); + * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + * for (RBACRoleBinding element : + * gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFeatureAsync(FeatureName name) { - DeleteFeatureRequest request = - DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteFeatureAsync(request); + public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( + MembershipName parent) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMembershipRBACRoleBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

              Sample code: * @@ -1563,23 +7507,30 @@ public final OperationFuture deleteFeatureAsync(Featur * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); - * gkeHubClient.deleteFeatureAsync(name).get(); + * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + * for (RBACRoleBinding element : + * gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFeatureAsync(String name) { - DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name).build(); - return deleteFeatureAsync(request); + public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( + ScopeName parent) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMembershipRBACRoleBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

              Sample code: * @@ -1590,27 +7541,28 @@ public final OperationFuture deleteFeatureAsync(String * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteFeatureRequest request = - * DeleteFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) - * .setForce(true) - * .setRequestId("requestId693933066") - * .build(); - * gkeHubClient.deleteFeatureAsync(request).get(); + * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + * for (RBACRoleBinding element : + * gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFeatureAsync( - DeleteFeatureRequest request) { - return deleteFeatureOperationCallable().futureCall(request); + public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( + String parent) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder().setParent(parent).build(); + return listMembershipRBACRoleBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

              Sample code: * @@ -1621,27 +7573,30 @@ public final OperationFuture deleteFeatureAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteFeatureRequest request = - * DeleteFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) - * .setForce(true) - * .setRequestId("requestId693933066") + * ListMembershipRBACRoleBindingsRequest request = + * ListMembershipRBACRoleBindingsRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * OperationFuture future = - * gkeHubClient.deleteFeatureOperationCallable().futureCall(request); - * // Do something. - * future.get(); + * for (RBACRoleBinding element : + * gkeHubClient.listMembershipRBACRoleBindings(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 OperationCallable - deleteFeatureOperationCallable() { - return stub.deleteFeatureOperationCallable(); + public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( + ListMembershipRBACRoleBindingsRequest request) { + return listMembershipRBACRoleBindingsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

              Sample code: * @@ -1652,67 +7607,30 @@ public final OperationFuture deleteFeatureAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteFeatureRequest request = - * DeleteFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) - * .setForce(true) - * .setRequestId("requestId693933066") + * ListMembershipRBACRoleBindingsRequest request = + * ListMembershipRBACRoleBindingsRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = gkeHubClient.deleteFeatureCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.listMembershipRBACRoleBindingsPagedCallable().futureCall(request); * // Do something. - * future.get(); - * } - * } - */ - public final UnaryCallable deleteFeatureCallable() { - return stub.deleteFeatureCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Membership. - * - *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
              -   *   Membership resource = Membership.newBuilder().build();
              -   *   FieldMask updateMask = FieldMask.newBuilder().build();
              -   *   Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
              +   *   for (RBACRoleBinding element : future.get().iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
                  * }
                  * }
              - * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * @param resource Required. Only fields specified in update_mask are updated. If you specify a - * field in the update_mask but don't specify its value here that field will be deleted. If - * you are updating a map field, set the value of a key to null or empty string to delete the - * key from the map. It's not possible to update a key's value to the empty string. If you - * specify the update_mask to be a special path "*", fully replaces all user-modifiable - * fields to match `resource`. - * @param updateMask Required. Mask of fields to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateMembershipAsync( - MembershipName name, Membership resource, FieldMask updateMask) { - UpdateMembershipRequest request = - UpdateMembershipRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setResource(resource) - .setUpdateMask(updateMask) - .build(); - return updateMembershipAsync(request); + public final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable() { + return stub.listMembershipRBACRoleBindingsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing Membership. + * Lists all Membership RBACRoleBindings. * *

              Sample code: * @@ -1723,38 +7641,38 @@ public final OperationFuture updateMembershipAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); - * Membership resource = Membership.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get(); + * ListMembershipRBACRoleBindingsRequest request = + * ListMembershipRBACRoleBindingsRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListMembershipRBACRoleBindingsResponse response = + * gkeHubClient.listMembershipRBACRoleBindingsCallable().call(request); + * for (RBACRoleBinding element : response.getRbacrolebindingsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * @param resource Required. Only fields specified in update_mask are updated. If you specify a - * field in the update_mask but don't specify its value here that field will be deleted. If - * you are updating a map field, set the value of a key to null or empty string to delete the - * key from the map. It's not possible to update a key's value to the empty string. If you - * specify the update_mask to be a special path "*", fully replaces all user-modifiable - * fields to match `resource`. - * @param updateMask Required. Mask of fields to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateMembershipAsync( - String name, Membership resource, FieldMask updateMask) { - UpdateMembershipRequest request = - UpdateMembershipRequest.newBuilder() - .setName(name) - .setResource(resource) - .setUpdateMask(updateMask) - .build(); - return updateMembershipAsync(request); + public final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable() { + return stub.listMembershipRBACRoleBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing Membership. + * Generates a YAML of the RBAC policies for the specified RoleBinding and its associated + * impersonation resources. * *

              Sample code: * @@ -1765,28 +7683,29 @@ public final OperationFuture updateMembershipAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * UpdateMembershipRequest request = - * UpdateMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") + * GenerateMembershipRBACRoleBindingYAMLRequest request = + * GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) * .build(); - * Membership response = gkeHubClient.updateMembershipAsync(request).get(); + * GenerateMembershipRBACRoleBindingYAMLResponse response = + * gkeHubClient.generateMembershipRBACRoleBindingYAML(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 OperationFuture updateMembershipAsync( - UpdateMembershipRequest request) { - return updateMembershipOperationCallable().futureCall(request); + public final GenerateMembershipRBACRoleBindingYAMLResponse generateMembershipRBACRoleBindingYAML( + GenerateMembershipRBACRoleBindingYAMLRequest request) { + return generateMembershipRBACRoleBindingYAMLCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing Membership. + * Generates a YAML of the RBAC policies for the specified RoleBinding and its associated + * impersonation resources. * *

              Sample code: * @@ -1797,488 +7716,869 @@ public final OperationFuture updateMembershipAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * UpdateMembershipRequest request = - * UpdateMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") + * GenerateMembershipRBACRoleBindingYAMLRequest request = + * GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) * .build(); - * OperationFuture future = - * gkeHubClient.updateMembershipOperationCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.generateMembershipRBACRoleBindingYAMLCallable().futureCall(request); * // Do something. - * Membership response = future.get(); + * GenerateMembershipRBACRoleBindingYAMLResponse response = future.get(); * } * } */ - public final OperationCallable - updateMembershipOperationCallable() { - return stub.updateMembershipOperationCallable(); + public final UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable() { + return stub.generateMembershipRBACRoleBindingYAMLCallable(); + } + + @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 ListMembershipsPagedResponse + extends AbstractPagedListResponse< + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, + ListMembershipsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMembershipsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMembershipsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMembershipsPagedResponse(ListMembershipsPage page) { + super(page, ListMembershipsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMembershipsPage + extends AbstractPage< + ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage> { + + private ListMembershipsPage( + PageContext context, + ListMembershipsResponse response) { + super(context, response); + } + + private static ListMembershipsPage createEmptyPage() { + return new ListMembershipsPage(null, null); + } + + @Override + protected ListMembershipsPage createPage( + PageContext context, + ListMembershipsResponse response) { + return new ListMembershipsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMembershipsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, + ListMembershipsFixedSizeCollection> { + + private ListMembershipsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMembershipsFixedSizeCollection createEmptyCollection() { + return new ListMembershipsFixedSizeCollection(null, 0); + } + + @Override + protected ListMembershipsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMembershipsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBoundMembershipsPagedResponse + extends AbstractPagedListResponse< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + Membership, + ListBoundMembershipsPage, + ListBoundMembershipsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBoundMembershipsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBoundMembershipsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBoundMembershipsPagedResponse(ListBoundMembershipsPage page) { + super(page, ListBoundMembershipsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBoundMembershipsPage + extends AbstractPage< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + Membership, + ListBoundMembershipsPage> { + + private ListBoundMembershipsPage( + PageContext context, + ListBoundMembershipsResponse response) { + super(context, response); + } + + private static ListBoundMembershipsPage createEmptyPage() { + return new ListBoundMembershipsPage(null, null); + } + + @Override + protected ListBoundMembershipsPage createPage( + PageContext context, + ListBoundMembershipsResponse response) { + return new ListBoundMembershipsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBoundMembershipsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + Membership, + ListBoundMembershipsPage, + ListBoundMembershipsFixedSizeCollection> { + + private ListBoundMembershipsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBoundMembershipsFixedSizeCollection createEmptyCollection() { + return new ListBoundMembershipsFixedSizeCollection(null, 0); + } + + @Override + protected ListBoundMembershipsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBoundMembershipsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListFeaturesPagedResponse + extends AbstractPagedListResponse< + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, + ListFeaturesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFeaturesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFeaturesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFeaturesPagedResponse(ListFeaturesPage page) { + super(page, ListFeaturesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFeaturesPage + extends AbstractPage { + + private ListFeaturesPage( + PageContext context, + ListFeaturesResponse response) { + super(context, response); + } + + private static ListFeaturesPage createEmptyPage() { + return new ListFeaturesPage(null, null); + } + + @Override + protected ListFeaturesPage createPage( + PageContext context, + ListFeaturesResponse response) { + return new ListFeaturesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFeaturesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, + ListFeaturesFixedSizeCollection> { + + private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFeaturesFixedSizeCollection createEmptyCollection() { + return new ListFeaturesFixedSizeCollection(null, 0); + } + + @Override + protected ListFeaturesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFeaturesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListFleetsPagedResponse + extends AbstractPagedListResponse< + ListFleetsRequest, + ListFleetsResponse, + Fleet, + ListFleetsPage, + ListFleetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFleetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListFleetsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListFleetsPagedResponse(ListFleetsPage page) { + super(page, ListFleetsFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Membership. - * - *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   UpdateMembershipRequest request =
              -   *       UpdateMembershipRequest.newBuilder()
              -   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              -   *           .setUpdateMask(FieldMask.newBuilder().build())
              -   *           .setResource(Membership.newBuilder().build())
              -   *           .setRequestId("requestId693933066")
              -   *           .build();
              -   *   ApiFuture future = gkeHubClient.updateMembershipCallable().futureCall(request);
              -   *   // Do something.
              -   *   Operation response = future.get();
              -   * }
              -   * }
              - */ - public final UnaryCallable updateMembershipCallable() { - return stub.updateMembershipCallable(); + public static class ListFleetsPage + extends AbstractPage { + + private ListFleetsPage( + PageContext context, + ListFleetsResponse response) { + super(context, response); + } + + private static ListFleetsPage createEmptyPage() { + return new ListFleetsPage(null, null); + } + + @Override + protected ListFleetsPage createPage( + PageContext context, + ListFleetsResponse response) { + return new ListFleetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
              -   *   Feature resource = Feature.newBuilder().build();
              -   *   FieldMask updateMask = FieldMask.newBuilder().build();
              -   *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
              -   * }
              -   * }
              - * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * @param resource Only fields specified in update_mask are updated. If you specify a field in the - * update_mask but don't specify its value here that field will be deleted. If you are - * updating a map field, set the value of a key to null or empty string to delete the key from - * the map. It's not possible to update a key's value to the empty string. If you specify the - * update_mask to be a special path "*", fully replaces all user-modifiable fields to - * match `resource`. - * @param updateMask Mask of fields to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateFeatureAsync( - FeatureName name, Feature resource, FieldMask updateMask) { - UpdateFeatureRequest request = - UpdateFeatureRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setResource(resource) - .setUpdateMask(updateMask) - .build(); - return updateFeatureAsync(request); + public static class ListFleetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFleetsRequest, + ListFleetsResponse, + Fleet, + ListFleetsPage, + ListFleetsFixedSizeCollection> { + + private ListFleetsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFleetsFixedSizeCollection createEmptyCollection() { + return new ListFleetsFixedSizeCollection(null, 0); + } + + @Override + protected ListFleetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFleetsFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
              -   *   Feature resource = Feature.newBuilder().build();
              -   *   FieldMask updateMask = FieldMask.newBuilder().build();
              -   *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
              -   * }
              -   * }
              - * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * @param resource Only fields specified in update_mask are updated. If you specify a field in the - * update_mask but don't specify its value here that field will be deleted. If you are - * updating a map field, set the value of a key to null or empty string to delete the key from - * the map. It's not possible to update a key's value to the empty string. If you specify the - * update_mask to be a special path "*", fully replaces all user-modifiable fields to - * match `resource`. - * @param updateMask Mask of fields to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateFeatureAsync( - String name, Feature resource, FieldMask updateMask) { - UpdateFeatureRequest request = - UpdateFeatureRequest.newBuilder() - .setName(name) - .setResource(resource) - .setUpdateMask(updateMask) - .build(); - return updateFeatureAsync(request); + public static class ListScopeNamespacesPagedResponse + extends AbstractPagedListResponse< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + Namespace, + ListScopeNamespacesPage, + ListScopeNamespacesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListScopeNamespacesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListScopeNamespacesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListScopeNamespacesPagedResponse(ListScopeNamespacesPage page) { + super(page, ListScopeNamespacesFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   UpdateFeatureRequest request =
              -   *       UpdateFeatureRequest.newBuilder()
              -   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              -   *           .setUpdateMask(FieldMask.newBuilder().build())
              -   *           .setResource(Feature.newBuilder().build())
              -   *           .setRequestId("requestId693933066")
              -   *           .build();
              -   *   Feature response = gkeHubClient.updateFeatureAsync(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 updateFeatureAsync( - UpdateFeatureRequest request) { - return updateFeatureOperationCallable().futureCall(request); + public static class ListScopeNamespacesPage + extends AbstractPage< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + Namespace, + ListScopeNamespacesPage> { + + private ListScopeNamespacesPage( + PageContext context, + ListScopeNamespacesResponse response) { + super(context, response); + } + + private static ListScopeNamespacesPage createEmptyPage() { + return new ListScopeNamespacesPage(null, null); + } + + @Override + protected ListScopeNamespacesPage createPage( + PageContext context, + ListScopeNamespacesResponse response) { + return new ListScopeNamespacesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   UpdateFeatureRequest request =
              -   *       UpdateFeatureRequest.newBuilder()
              -   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              -   *           .setUpdateMask(FieldMask.newBuilder().build())
              -   *           .setResource(Feature.newBuilder().build())
              -   *           .setRequestId("requestId693933066")
              -   *           .build();
              -   *   OperationFuture future =
              -   *       gkeHubClient.updateFeatureOperationCallable().futureCall(request);
              -   *   // Do something.
              -   *   Feature response = future.get();
              -   * }
              -   * }
              - */ - public final OperationCallable - updateFeatureOperationCallable() { - return stub.updateFeatureOperationCallable(); + public static class ListScopeNamespacesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + Namespace, + ListScopeNamespacesPage, + ListScopeNamespacesFixedSizeCollection> { + + private ListScopeNamespacesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListScopeNamespacesFixedSizeCollection createEmptyCollection() { + return new ListScopeNamespacesFixedSizeCollection(null, 0); + } + + @Override + protected ListScopeNamespacesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListScopeNamespacesFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   UpdateFeatureRequest request =
              -   *       UpdateFeatureRequest.newBuilder()
              -   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
              -   *           .setUpdateMask(FieldMask.newBuilder().build())
              -   *           .setResource(Feature.newBuilder().build())
              -   *           .setRequestId("requestId693933066")
              -   *           .build();
              -   *   ApiFuture future = gkeHubClient.updateFeatureCallable().futureCall(request);
              -   *   // Do something.
              -   *   Operation response = future.get();
              -   * }
              -   * }
              - */ - public final UnaryCallable updateFeatureCallable() { - return stub.updateFeatureCallable(); + public static class ListScopeRBACRoleBindingsPagedResponse + extends AbstractPagedListResponse< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding, + ListScopeRBACRoleBindingsPage, + ListScopeRBACRoleBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListScopeRBACRoleBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListScopeRBACRoleBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListScopeRBACRoleBindingsPagedResponse(ListScopeRBACRoleBindingsPage page) { + super(page, ListScopeRBACRoleBindingsFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Generates the manifest for deployment of the GKE connect agent. - * - *

              **This method is used internally by Google-provided libraries.** Most - * clients should not need to call this method directly. - * - *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   GenerateConnectManifestRequest request =
              -   *       GenerateConnectManifestRequest.newBuilder()
              -   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              -   *           .setNamespace("namespace1252218203")
              -   *           .setProxy(ByteString.EMPTY)
              -   *           .setVersion("version351608024")
              -   *           .setIsUpgrade(true)
              -   *           .setRegistry("registry-690212803")
              -   *           .setImagePullSecretContent(ByteString.EMPTY)
              -   *           .build();
              -   *   GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(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 GenerateConnectManifestResponse generateConnectManifest( - GenerateConnectManifestRequest request) { - return generateConnectManifestCallable().call(request); + public static class ListScopeRBACRoleBindingsPage + extends AbstractPage< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding, + ListScopeRBACRoleBindingsPage> { + + private ListScopeRBACRoleBindingsPage( + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ListScopeRBACRoleBindingsResponse response) { + super(context, response); + } + + private static ListScopeRBACRoleBindingsPage createEmptyPage() { + return new ListScopeRBACRoleBindingsPage(null, null); + } + + @Override + protected ListScopeRBACRoleBindingsPage createPage( + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ListScopeRBACRoleBindingsResponse response) { + return new ListScopeRBACRoleBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Generates the manifest for deployment of the GKE connect agent. - * - *

              **This method is used internally by Google-provided libraries.** Most - * clients should not need to call this method directly. - * - *

              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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
              -   *   GenerateConnectManifestRequest request =
              -   *       GenerateConnectManifestRequest.newBuilder()
              -   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
              -   *           .setNamespace("namespace1252218203")
              -   *           .setProxy(ByteString.EMPTY)
              -   *           .setVersion("version351608024")
              -   *           .setIsUpgrade(true)
              -   *           .setRegistry("registry-690212803")
              -   *           .setImagePullSecretContent(ByteString.EMPTY)
              -   *           .build();
              -   *   ApiFuture future =
              -   *       gkeHubClient.generateConnectManifestCallable().futureCall(request);
              -   *   // Do something.
              -   *   GenerateConnectManifestResponse response = future.get();
              -   * }
              -   * }
              - */ - public final UnaryCallable - generateConnectManifestCallable() { - return stub.generateConnectManifestCallable(); + public static class ListScopeRBACRoleBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding, + ListScopeRBACRoleBindingsPage, + ListScopeRBACRoleBindingsFixedSizeCollection> { + + private ListScopeRBACRoleBindingsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListScopeRBACRoleBindingsFixedSizeCollection createEmptyCollection() { + return new ListScopeRBACRoleBindingsFixedSizeCollection(null, 0); + } + + @Override + protected ListScopeRBACRoleBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListScopeRBACRoleBindingsFixedSizeCollection(pages, collectionSize); + } } - @Override - public final void close() { - stub.close(); + public static class ListScopesPagedResponse + extends AbstractPagedListResponse< + ListScopesRequest, + ListScopesResponse, + Scope, + ListScopesPage, + ListScopesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListScopesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListScopesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListScopesPagedResponse(ListScopesPage page) { + super(page, ListScopesFixedSizeCollection.createEmptyCollection()); + } } - @Override - public void shutdown() { - stub.shutdown(); + public static class ListScopesPage + extends AbstractPage { + + private ListScopesPage( + PageContext context, + ListScopesResponse response) { + super(context, response); + } + + private static ListScopesPage createEmptyPage() { + return new ListScopesPage(null, null); + } + + @Override + protected ListScopesPage createPage( + PageContext context, + ListScopesResponse response) { + return new ListScopesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - @Override - public boolean isShutdown() { - return stub.isShutdown(); + public static class ListScopesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListScopesRequest, + ListScopesResponse, + Scope, + ListScopesPage, + ListScopesFixedSizeCollection> { + + private ListScopesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListScopesFixedSizeCollection createEmptyCollection() { + return new ListScopesFixedSizeCollection(null, 0); + } + + @Override + protected ListScopesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListScopesFixedSizeCollection(pages, collectionSize); + } } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + public static class ListPermittedScopesPagedResponse + extends AbstractPagedListResponse< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + Scope, + ListPermittedScopesPage, + ListPermittedScopesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPermittedScopesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPermittedScopesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPermittedScopesPagedResponse(ListPermittedScopesPage page) { + super(page, ListPermittedScopesFixedSizeCollection.createEmptyCollection()); + } } - @Override - public void shutdownNow() { - stub.shutdownNow(); + public static class ListPermittedScopesPage + extends AbstractPage< + ListPermittedScopesRequest, ListPermittedScopesResponse, Scope, ListPermittedScopesPage> { + + private ListPermittedScopesPage( + PageContext context, + ListPermittedScopesResponse response) { + super(context, response); + } + + private static ListPermittedScopesPage createEmptyPage() { + return new ListPermittedScopesPage(null, null); + } + + @Override + protected ListPermittedScopesPage createPage( + PageContext context, + ListPermittedScopesResponse response) { + return new ListPermittedScopesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + public static class ListPermittedScopesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + Scope, + ListPermittedScopesPage, + ListPermittedScopesFixedSizeCollection> { + + private ListPermittedScopesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPermittedScopesFixedSizeCollection createEmptyCollection() { + return new ListPermittedScopesFixedSizeCollection(null, 0); + } + + @Override + protected ListPermittedScopesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPermittedScopesFixedSizeCollection(pages, collectionSize); + } } - public static class ListMembershipsPagedResponse + public static class ListMembershipBindingsPagedResponse extends AbstractPagedListResponse< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, - ListMembershipsFixedSizeCollection> { + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + MembershipBinding, + ListMembershipBindingsPage, + ListMembershipBindingsFixedSizeCollection> { - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListMembershipsPage.createEmptyPage().createPageAsync(context, futureResponse); + public static ApiFuture createAsync( + PageContext< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMembershipBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListMembershipsPagedResponse(input), + input -> new ListMembershipBindingsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListMembershipsPagedResponse(ListMembershipsPage page) { - super(page, ListMembershipsFixedSizeCollection.createEmptyCollection()); + private ListMembershipBindingsPagedResponse(ListMembershipBindingsPage page) { + super(page, ListMembershipBindingsFixedSizeCollection.createEmptyCollection()); } } - public static class ListMembershipsPage + public static class ListMembershipBindingsPage extends AbstractPage< - ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage> { + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + MembershipBinding, + ListMembershipBindingsPage> { - private ListMembershipsPage( - PageContext context, - ListMembershipsResponse response) { + private ListMembershipBindingsPage( + PageContext< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + context, + ListMembershipBindingsResponse response) { super(context, response); } - private static ListMembershipsPage createEmptyPage() { - return new ListMembershipsPage(null, null); + private static ListMembershipBindingsPage createEmptyPage() { + return new ListMembershipBindingsPage(null, null); } @Override - protected ListMembershipsPage createPage( - PageContext context, - ListMembershipsResponse response) { - return new ListMembershipsPage(context, response); + protected ListMembershipBindingsPage createPage( + PageContext< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + context, + ListMembershipBindingsResponse response) { + return new ListMembershipBindingsPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListMembershipsFixedSizeCollection + public static class ListMembershipBindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, - ListMembershipsFixedSizeCollection> { + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + MembershipBinding, + ListMembershipBindingsPage, + ListMembershipBindingsFixedSizeCollection> { - private ListMembershipsFixedSizeCollection( - List pages, int collectionSize) { + private ListMembershipBindingsFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListMembershipsFixedSizeCollection createEmptyCollection() { - return new ListMembershipsFixedSizeCollection(null, 0); + private static ListMembershipBindingsFixedSizeCollection createEmptyCollection() { + return new ListMembershipBindingsFixedSizeCollection(null, 0); } @Override - protected ListMembershipsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListMembershipsFixedSizeCollection(pages, collectionSize); + protected ListMembershipBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMembershipBindingsFixedSizeCollection(pages, collectionSize); } } - public static class ListFeaturesPagedResponse + public static class ListMembershipRBACRoleBindingsPagedResponse extends AbstractPagedListResponse< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, - ListFeaturesFixedSizeCollection> { + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding, + ListMembershipRBACRoleBindingsPage, + ListMembershipRBACRoleBindingsFixedSizeCollection> { - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListFeaturesPage.createEmptyPage().createPageAsync(context, futureResponse); + public static ApiFuture createAsync( + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMembershipRBACRoleBindingsPage.createEmptyPage() + .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListFeaturesPagedResponse(input), + input -> new ListMembershipRBACRoleBindingsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListFeaturesPagedResponse(ListFeaturesPage page) { - super(page, ListFeaturesFixedSizeCollection.createEmptyCollection()); + private ListMembershipRBACRoleBindingsPagedResponse(ListMembershipRBACRoleBindingsPage page) { + super(page, ListMembershipRBACRoleBindingsFixedSizeCollection.createEmptyCollection()); } } - public static class ListFeaturesPage - extends AbstractPage { + public static class ListMembershipRBACRoleBindingsPage + extends AbstractPage< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding, + ListMembershipRBACRoleBindingsPage> { - private ListFeaturesPage( - PageContext context, - ListFeaturesResponse response) { + private ListMembershipRBACRoleBindingsPage( + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ListMembershipRBACRoleBindingsResponse response) { super(context, response); } - private static ListFeaturesPage createEmptyPage() { - return new ListFeaturesPage(null, null); + private static ListMembershipRBACRoleBindingsPage createEmptyPage() { + return new ListMembershipRBACRoleBindingsPage(null, null); } @Override - protected ListFeaturesPage createPage( - PageContext context, - ListFeaturesResponse response) { - return new ListFeaturesPage(context, response); + protected ListMembershipRBACRoleBindingsPage createPage( + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ListMembershipRBACRoleBindingsResponse response) { + return new ListMembershipRBACRoleBindingsPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListFeaturesFixedSizeCollection + public static class ListMembershipRBACRoleBindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, - ListFeaturesFixedSizeCollection> { + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding, + ListMembershipRBACRoleBindingsPage, + ListMembershipRBACRoleBindingsFixedSizeCollection> { - private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + private ListMembershipRBACRoleBindingsFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListFeaturesFixedSizeCollection createEmptyCollection() { - return new ListFeaturesFixedSizeCollection(null, 0); + private static ListMembershipRBACRoleBindingsFixedSizeCollection createEmptyCollection() { + return new ListMembershipRBACRoleBindingsFixedSizeCollection(null, 0); } @Override - protected ListFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListFeaturesFixedSizeCollection(pages, collectionSize); + protected ListMembershipRBACRoleBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMembershipRBACRoleBindingsFixedSizeCollection(pages, collectionSize); } } } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java index 0911474e48b7..3cc4c50ddaee 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -123,6 +131,15 @@ public class GkeHubSettings extends ClientSettings { return ((GkeHubStubSettings) getStubSettings()).listMembershipsSettings(); } + /** Returns the object with the settings used for calls to listBoundMemberships. */ + public PagedCallSettings< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listBoundMembershipsSettings(); + } + /** Returns the object with the settings used for calls to listFeatures. */ public PagedCallSettings listFeaturesSettings() { @@ -211,6 +228,316 @@ public UnaryCallSettings updateFeatureSettings( return ((GkeHubStubSettings) getStubSettings()).generateConnectManifestSettings(); } + /** Returns the object with the settings used for calls to createFleet. */ + public UnaryCallSettings createFleetSettings() { + return ((GkeHubStubSettings) getStubSettings()).createFleetSettings(); + } + + /** Returns the object with the settings used for calls to createFleet. */ + public OperationCallSettings + createFleetOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createFleetOperationSettings(); + } + + /** Returns the object with the settings used for calls to getFleet. */ + public UnaryCallSettings getFleetSettings() { + return ((GkeHubStubSettings) getStubSettings()).getFleetSettings(); + } + + /** Returns the object with the settings used for calls to updateFleet. */ + public UnaryCallSettings updateFleetSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateFleetSettings(); + } + + /** Returns the object with the settings used for calls to updateFleet. */ + public OperationCallSettings + updateFleetOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateFleetOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteFleet. */ + public UnaryCallSettings deleteFleetSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteFleetSettings(); + } + + /** Returns the object with the settings used for calls to deleteFleet. */ + public OperationCallSettings + deleteFleetOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteFleetOperationSettings(); + } + + /** Returns the object with the settings used for calls to listFleets. */ + public PagedCallSettings + listFleetsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listFleetsSettings(); + } + + /** Returns the object with the settings used for calls to getScopeNamespace. */ + public UnaryCallSettings getScopeNamespaceSettings() { + return ((GkeHubStubSettings) getStubSettings()).getScopeNamespaceSettings(); + } + + /** Returns the object with the settings used for calls to createScopeNamespace. */ + public UnaryCallSettings createScopeNamespaceSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeNamespaceSettings(); + } + + /** Returns the object with the settings used for calls to createScopeNamespace. */ + public OperationCallSettings + createScopeNamespaceOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeNamespaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateScopeNamespace. */ + public UnaryCallSettings updateScopeNamespaceSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeNamespaceSettings(); + } + + /** Returns the object with the settings used for calls to updateScopeNamespace. */ + public OperationCallSettings + updateScopeNamespaceOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeNamespaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteScopeNamespace. */ + public UnaryCallSettings deleteScopeNamespaceSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeNamespaceSettings(); + } + + /** Returns the object with the settings used for calls to deleteScopeNamespace. */ + public OperationCallSettings + deleteScopeNamespaceOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeNamespaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to listScopeNamespaces. */ + public PagedCallSettings< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings() { + return ((GkeHubStubSettings) getStubSettings()).listScopeNamespacesSettings(); + } + + /** Returns the object with the settings used for calls to getScopeRBACRoleBinding. */ + public UnaryCallSettings + getScopeRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).getScopeRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to createScopeRBACRoleBinding. */ + public UnaryCallSettings + createScopeRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to createScopeRBACRoleBinding. */ + public OperationCallSettings< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateScopeRBACRoleBinding. */ + public UnaryCallSettings + updateScopeRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateScopeRBACRoleBinding. */ + public OperationCallSettings< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteScopeRBACRoleBinding. */ + public UnaryCallSettings + deleteScopeRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteScopeRBACRoleBinding. */ + public OperationCallSettings + deleteScopeRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to listScopeRBACRoleBindings. */ + public PagedCallSettings< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listScopeRBACRoleBindingsSettings(); + } + + /** Returns the object with the settings used for calls to getScope. */ + public UnaryCallSettings getScopeSettings() { + return ((GkeHubStubSettings) getStubSettings()).getScopeSettings(); + } + + /** Returns the object with the settings used for calls to createScope. */ + public UnaryCallSettings createScopeSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeSettings(); + } + + /** Returns the object with the settings used for calls to createScope. */ + public OperationCallSettings + createScopeOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateScope. */ + public UnaryCallSettings updateScopeSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeSettings(); + } + + /** Returns the object with the settings used for calls to updateScope. */ + public OperationCallSettings + updateScopeOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteScope. */ + public UnaryCallSettings deleteScopeSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeSettings(); + } + + /** Returns the object with the settings used for calls to deleteScope. */ + public OperationCallSettings + deleteScopeOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeOperationSettings(); + } + + /** Returns the object with the settings used for calls to listScopes. */ + public PagedCallSettings + listScopesSettings() { + return ((GkeHubStubSettings) getStubSettings()).listScopesSettings(); + } + + /** Returns the object with the settings used for calls to listPermittedScopes. */ + public PagedCallSettings< + ListPermittedScopesRequest, ListPermittedScopesResponse, ListPermittedScopesPagedResponse> + listPermittedScopesSettings() { + return ((GkeHubStubSettings) getStubSettings()).listPermittedScopesSettings(); + } + + /** Returns the object with the settings used for calls to getMembershipBinding. */ + public UnaryCallSettings + getMembershipBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).getMembershipBindingSettings(); + } + + /** Returns the object with the settings used for calls to createMembershipBinding. */ + public UnaryCallSettings + createMembershipBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).createMembershipBindingSettings(); + } + + /** Returns the object with the settings used for calls to createMembershipBinding. */ + public OperationCallSettings + createMembershipBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createMembershipBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateMembershipBinding. */ + public UnaryCallSettings + updateMembershipBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateMembershipBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateMembershipBinding. */ + public OperationCallSettings + updateMembershipBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateMembershipBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteMembershipBinding. */ + public UnaryCallSettings + deleteMembershipBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteMembershipBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteMembershipBinding. */ + public OperationCallSettings + deleteMembershipBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteMembershipBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to listMembershipBindings. */ + public PagedCallSettings< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listMembershipBindingsSettings(); + } + + /** Returns the object with the settings used for calls to getMembershipRBACRoleBinding. */ + public UnaryCallSettings + getMembershipRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).getMembershipRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to createMembershipRBACRoleBinding. */ + public UnaryCallSettings + createMembershipRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).createMembershipRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to createMembershipRBACRoleBinding. */ + public OperationCallSettings< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()) + .createMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateMembershipRBACRoleBinding. */ + public UnaryCallSettings + updateMembershipRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateMembershipRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateMembershipRBACRoleBinding. */ + public OperationCallSettings< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()) + .updateMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteMembershipRBACRoleBinding. */ + public UnaryCallSettings + deleteMembershipRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteMembershipRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteMembershipRBACRoleBinding. */ + public OperationCallSettings + deleteMembershipRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()) + .deleteMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to listMembershipRBACRoleBindings. */ + public PagedCallSettings< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listMembershipRBACRoleBindingsSettings(); + } + + /** + * Returns the object with the settings used for calls to generateMembershipRBACRoleBindingYAML. + */ + public UnaryCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings() { + return ((GkeHubStubSettings) getStubSettings()).generateMembershipRBACRoleBindingYAMLSettings(); + } + public static final GkeHubSettings create(GkeHubStubSettings stub) throws IOException { return new GkeHubSettings.Builder(stub.toBuilder()).build(); } @@ -329,6 +656,15 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().listMembershipsSettings(); } + /** Returns the builder for the settings used for calls to listBoundMemberships. */ + public PagedCallSettings.Builder< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings() { + return getStubSettingsBuilder().listBoundMembershipsSettings(); + } + /** Returns the builder for the settings used for calls to listFeatures. */ public PagedCallSettings.Builder< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> @@ -422,6 +758,325 @@ public UnaryCallSettings.Builder updateFeatureS return getStubSettingsBuilder().generateConnectManifestSettings(); } + /** Returns the builder for the settings used for calls to createFleet. */ + public UnaryCallSettings.Builder createFleetSettings() { + return getStubSettingsBuilder().createFleetSettings(); + } + + /** Returns the builder for the settings used for calls to createFleet. */ + public OperationCallSettings.Builder + createFleetOperationSettings() { + return getStubSettingsBuilder().createFleetOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getFleet. */ + public UnaryCallSettings.Builder getFleetSettings() { + return getStubSettingsBuilder().getFleetSettings(); + } + + /** Returns the builder for the settings used for calls to updateFleet. */ + public UnaryCallSettings.Builder updateFleetSettings() { + return getStubSettingsBuilder().updateFleetSettings(); + } + + /** Returns the builder for the settings used for calls to updateFleet. */ + public OperationCallSettings.Builder + updateFleetOperationSettings() { + return getStubSettingsBuilder().updateFleetOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFleet. */ + public UnaryCallSettings.Builder deleteFleetSettings() { + return getStubSettingsBuilder().deleteFleetSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFleet. */ + public OperationCallSettings.Builder + deleteFleetOperationSettings() { + return getStubSettingsBuilder().deleteFleetOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listFleets. */ + public PagedCallSettings.Builder + listFleetsSettings() { + return getStubSettingsBuilder().listFleetsSettings(); + } + + /** Returns the builder for the settings used for calls to getScopeNamespace. */ + public UnaryCallSettings.Builder + getScopeNamespaceSettings() { + return getStubSettingsBuilder().getScopeNamespaceSettings(); + } + + /** Returns the builder for the settings used for calls to createScopeNamespace. */ + public UnaryCallSettings.Builder + createScopeNamespaceSettings() { + return getStubSettingsBuilder().createScopeNamespaceSettings(); + } + + /** Returns the builder for the settings used for calls to createScopeNamespace. */ + public OperationCallSettings.Builder + createScopeNamespaceOperationSettings() { + return getStubSettingsBuilder().createScopeNamespaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateScopeNamespace. */ + public UnaryCallSettings.Builder + updateScopeNamespaceSettings() { + return getStubSettingsBuilder().updateScopeNamespaceSettings(); + } + + /** Returns the builder for the settings used for calls to updateScopeNamespace. */ + public OperationCallSettings.Builder + updateScopeNamespaceOperationSettings() { + return getStubSettingsBuilder().updateScopeNamespaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScopeNamespace. */ + public UnaryCallSettings.Builder + deleteScopeNamespaceSettings() { + return getStubSettingsBuilder().deleteScopeNamespaceSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScopeNamespace. */ + public OperationCallSettings.Builder + deleteScopeNamespaceOperationSettings() { + return getStubSettingsBuilder().deleteScopeNamespaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listScopeNamespaces. */ + public PagedCallSettings.Builder< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings() { + return getStubSettingsBuilder().listScopeNamespacesSettings(); + } + + /** Returns the builder for the settings used for calls to getScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + getScopeRBACRoleBindingSettings() { + return getStubSettingsBuilder().getScopeRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + createScopeRBACRoleBindingSettings() { + return getStubSettingsBuilder().createScopeRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().createScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + updateScopeRBACRoleBindingSettings() { + return getStubSettingsBuilder().updateScopeRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().updateScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + deleteScopeRBACRoleBindingSettings() { + return getStubSettingsBuilder().deleteScopeRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + DeleteScopeRBACRoleBindingRequest, Empty, OperationMetadata> + deleteScopeRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().deleteScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listScopeRBACRoleBindings. */ + public PagedCallSettings.Builder< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings() { + return getStubSettingsBuilder().listScopeRBACRoleBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to getScope. */ + public UnaryCallSettings.Builder getScopeSettings() { + return getStubSettingsBuilder().getScopeSettings(); + } + + /** Returns the builder for the settings used for calls to createScope. */ + public UnaryCallSettings.Builder createScopeSettings() { + return getStubSettingsBuilder().createScopeSettings(); + } + + /** Returns the builder for the settings used for calls to createScope. */ + public OperationCallSettings.Builder + createScopeOperationSettings() { + return getStubSettingsBuilder().createScopeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateScope. */ + public UnaryCallSettings.Builder updateScopeSettings() { + return getStubSettingsBuilder().updateScopeSettings(); + } + + /** Returns the builder for the settings used for calls to updateScope. */ + public OperationCallSettings.Builder + updateScopeOperationSettings() { + return getStubSettingsBuilder().updateScopeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScope. */ + public UnaryCallSettings.Builder deleteScopeSettings() { + return getStubSettingsBuilder().deleteScopeSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScope. */ + public OperationCallSettings.Builder + deleteScopeOperationSettings() { + return getStubSettingsBuilder().deleteScopeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listScopes. */ + public PagedCallSettings.Builder + listScopesSettings() { + return getStubSettingsBuilder().listScopesSettings(); + } + + /** Returns the builder for the settings used for calls to listPermittedScopes. */ + public PagedCallSettings.Builder< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + ListPermittedScopesPagedResponse> + listPermittedScopesSettings() { + return getStubSettingsBuilder().listPermittedScopesSettings(); + } + + /** Returns the builder for the settings used for calls to getMembershipBinding. */ + public UnaryCallSettings.Builder + getMembershipBindingSettings() { + return getStubSettingsBuilder().getMembershipBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createMembershipBinding. */ + public UnaryCallSettings.Builder + createMembershipBindingSettings() { + return getStubSettingsBuilder().createMembershipBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createMembershipBinding. */ + public OperationCallSettings.Builder< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationSettings() { + return getStubSettingsBuilder().createMembershipBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateMembershipBinding. */ + public UnaryCallSettings.Builder + updateMembershipBindingSettings() { + return getStubSettingsBuilder().updateMembershipBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateMembershipBinding. */ + public OperationCallSettings.Builder< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationSettings() { + return getStubSettingsBuilder().updateMembershipBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMembershipBinding. */ + public UnaryCallSettings.Builder + deleteMembershipBindingSettings() { + return getStubSettingsBuilder().deleteMembershipBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMembershipBinding. */ + public OperationCallSettings.Builder + deleteMembershipBindingOperationSettings() { + return getStubSettingsBuilder().deleteMembershipBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listMembershipBindings. */ + public PagedCallSettings.Builder< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings() { + return getStubSettingsBuilder().listMembershipBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to getMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + getMembershipRBACRoleBindingSettings() { + return getStubSettingsBuilder().getMembershipRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + createMembershipRBACRoleBindingSettings() { + return getStubSettingsBuilder().createMembershipRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().createMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + updateMembershipRBACRoleBindingSettings() { + return getStubSettingsBuilder().updateMembershipRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().updateMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + deleteMembershipRBACRoleBindingSettings() { + return getStubSettingsBuilder().deleteMembershipRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + DeleteMembershipRBACRoleBindingRequest, Empty, OperationMetadata> + deleteMembershipRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().deleteMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listMembershipRBACRoleBindings. */ + public PagedCallSettings.Builder< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings() { + return getStubSettingsBuilder().listMembershipRBACRoleBindingsSettings(); + } + + /** + * Returns the builder for the settings used for calls to generateMembershipRBACRoleBindingYAML. + */ + public UnaryCallSettings.Builder< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings() { + return getStubSettingsBuilder().generateMembershipRBACRoleBindingYAMLSettings(); + } + @Override public GkeHubSettings build() throws IOException { return new GkeHubSettings(this); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json index f7106915f1c4..e5879e2ea5cf 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json @@ -13,35 +13,134 @@ "CreateFeature": { "methods": ["createFeatureAsync", "createFeatureAsync", "createFeatureAsync", "createFeatureOperationCallable", "createFeatureCallable"] }, + "CreateFleet": { + "methods": ["createFleetAsync", "createFleetAsync", "createFleetAsync", "createFleetOperationCallable", "createFleetCallable"] + }, "CreateMembership": { "methods": ["createMembershipAsync", "createMembershipAsync", "createMembershipAsync", "createMembershipOperationCallable", "createMembershipCallable"] }, + "CreateMembershipBinding": { + "methods": ["createMembershipBindingAsync", "createMembershipBindingAsync", "createMembershipBindingAsync", "createMembershipBindingOperationCallable", "createMembershipBindingCallable"] + }, + "CreateMembershipRBACRoleBinding": { + "methods": ["createMembershipRBACRoleBindingAsync", "createMembershipRBACRoleBindingAsync", "createMembershipRBACRoleBindingAsync", "createMembershipRBACRoleBindingAsync", "createMembershipRBACRoleBindingOperationCallable", "createMembershipRBACRoleBindingCallable"] + }, + "CreateScope": { + "methods": ["createScopeAsync", "createScopeAsync", "createScopeAsync", "createScopeOperationCallable", "createScopeCallable"] + }, + "CreateScopeNamespace": { + "methods": ["createScopeNamespaceAsync", "createScopeNamespaceAsync", "createScopeNamespaceAsync", "createScopeNamespaceOperationCallable", "createScopeNamespaceCallable"] + }, + "CreateScopeRBACRoleBinding": { + "methods": ["createScopeRBACRoleBindingAsync", "createScopeRBACRoleBindingAsync", "createScopeRBACRoleBindingAsync", "createScopeRBACRoleBindingAsync", "createScopeRBACRoleBindingOperationCallable", "createScopeRBACRoleBindingCallable"] + }, "DeleteFeature": { "methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"] }, + "DeleteFleet": { + "methods": ["deleteFleetAsync", "deleteFleetAsync", "deleteFleetAsync", "deleteFleetOperationCallable", "deleteFleetCallable"] + }, "DeleteMembership": { "methods": ["deleteMembershipAsync", "deleteMembershipAsync", "deleteMembershipAsync", "deleteMembershipOperationCallable", "deleteMembershipCallable"] }, + "DeleteMembershipBinding": { + "methods": ["deleteMembershipBindingAsync", "deleteMembershipBindingAsync", "deleteMembershipBindingAsync", "deleteMembershipBindingOperationCallable", "deleteMembershipBindingCallable"] + }, + "DeleteMembershipRBACRoleBinding": { + "methods": ["deleteMembershipRBACRoleBindingAsync", "deleteMembershipRBACRoleBindingAsync", "deleteMembershipRBACRoleBindingAsync", "deleteMembershipRBACRoleBindingOperationCallable", "deleteMembershipRBACRoleBindingCallable"] + }, + "DeleteScope": { + "methods": ["deleteScopeAsync", "deleteScopeAsync", "deleteScopeAsync", "deleteScopeOperationCallable", "deleteScopeCallable"] + }, + "DeleteScopeNamespace": { + "methods": ["deleteScopeNamespaceAsync", "deleteScopeNamespaceAsync", "deleteScopeNamespaceAsync", "deleteScopeNamespaceOperationCallable", "deleteScopeNamespaceCallable"] + }, + "DeleteScopeRBACRoleBinding": { + "methods": ["deleteScopeRBACRoleBindingAsync", "deleteScopeRBACRoleBindingAsync", "deleteScopeRBACRoleBindingAsync", "deleteScopeRBACRoleBindingOperationCallable", "deleteScopeRBACRoleBindingCallable"] + }, "GenerateConnectManifest": { "methods": ["generateConnectManifest", "generateConnectManifestCallable"] }, + "GenerateMembershipRBACRoleBindingYAML": { + "methods": ["generateMembershipRBACRoleBindingYAML", "generateMembershipRBACRoleBindingYAMLCallable"] + }, "GetFeature": { "methods": ["getFeature", "getFeature", "getFeature", "getFeatureCallable"] }, + "GetFleet": { + "methods": ["getFleet", "getFleet", "getFleet", "getFleetCallable"] + }, "GetMembership": { "methods": ["getMembership", "getMembership", "getMembership", "getMembershipCallable"] }, + "GetMembershipBinding": { + "methods": ["getMembershipBinding", "getMembershipBinding", "getMembershipBinding", "getMembershipBindingCallable"] + }, + "GetMembershipRBACRoleBinding": { + "methods": ["getMembershipRBACRoleBinding", "getMembershipRBACRoleBinding", "getMembershipRBACRoleBinding", "getMembershipRBACRoleBindingCallable"] + }, + "GetScope": { + "methods": ["getScope", "getScope", "getScope", "getScopeCallable"] + }, + "GetScopeNamespace": { + "methods": ["getScopeNamespace", "getScopeNamespace", "getScopeNamespace", "getScopeNamespaceCallable"] + }, + "GetScopeRBACRoleBinding": { + "methods": ["getScopeRBACRoleBinding", "getScopeRBACRoleBinding", "getScopeRBACRoleBinding", "getScopeRBACRoleBindingCallable"] + }, + "ListBoundMemberships": { + "methods": ["listBoundMemberships", "listBoundMemberships", "listBoundMemberships", "listBoundMembershipsPagedCallable", "listBoundMembershipsCallable"] + }, "ListFeatures": { "methods": ["listFeatures", "listFeatures", "listFeatures", "listFeaturesPagedCallable", "listFeaturesCallable"] }, + "ListFleets": { + "methods": ["listFleets", "listFleets", "listFleets", "listFleetsPagedCallable", "listFleetsCallable"] + }, + "ListMembershipBindings": { + "methods": ["listMembershipBindings", "listMembershipBindings", "listMembershipBindings", "listMembershipBindingsPagedCallable", "listMembershipBindingsCallable"] + }, + "ListMembershipRBACRoleBindings": { + "methods": ["listMembershipRBACRoleBindings", "listMembershipRBACRoleBindings", "listMembershipRBACRoleBindings", "listMembershipRBACRoleBindings", "listMembershipRBACRoleBindingsPagedCallable", "listMembershipRBACRoleBindingsCallable"] + }, "ListMemberships": { "methods": ["listMemberships", "listMemberships", "listMemberships", "listMembershipsPagedCallable", "listMembershipsCallable"] }, + "ListPermittedScopes": { + "methods": ["listPermittedScopes", "listPermittedScopes", "listPermittedScopes", "listPermittedScopesPagedCallable", "listPermittedScopesCallable"] + }, + "ListScopeNamespaces": { + "methods": ["listScopeNamespaces", "listScopeNamespaces", "listScopeNamespaces", "listScopeNamespacesPagedCallable", "listScopeNamespacesCallable"] + }, + "ListScopeRBACRoleBindings": { + "methods": ["listScopeRBACRoleBindings", "listScopeRBACRoleBindings", "listScopeRBACRoleBindings", "listScopeRBACRoleBindings", "listScopeRBACRoleBindingsPagedCallable", "listScopeRBACRoleBindingsCallable"] + }, + "ListScopes": { + "methods": ["listScopes", "listScopes", "listScopes", "listScopesPagedCallable", "listScopesCallable"] + }, "UpdateFeature": { "methods": ["updateFeatureAsync", "updateFeatureAsync", "updateFeatureAsync", "updateFeatureOperationCallable", "updateFeatureCallable"] }, + "UpdateFleet": { + "methods": ["updateFleetAsync", "updateFleetAsync", "updateFleetOperationCallable", "updateFleetCallable"] + }, "UpdateMembership": { "methods": ["updateMembershipAsync", "updateMembershipAsync", "updateMembershipAsync", "updateMembershipOperationCallable", "updateMembershipCallable"] + }, + "UpdateMembershipBinding": { + "methods": ["updateMembershipBindingAsync", "updateMembershipBindingAsync", "updateMembershipBindingOperationCallable", "updateMembershipBindingCallable"] + }, + "UpdateMembershipRBACRoleBinding": { + "methods": ["updateMembershipRBACRoleBindingAsync", "updateMembershipRBACRoleBindingAsync", "updateMembershipRBACRoleBindingOperationCallable", "updateMembershipRBACRoleBindingCallable"] + }, + "UpdateScope": { + "methods": ["updateScopeAsync", "updateScopeAsync", "updateScopeOperationCallable", "updateScopeCallable"] + }, + "UpdateScopeNamespace": { + "methods": ["updateScopeNamespaceAsync", "updateScopeNamespaceAsync", "updateScopeNamespaceOperationCallable", "updateScopeNamespaceCallable"] + }, + "UpdateScopeRBACRoleBinding": { + "methods": ["updateScopeRBACRoleBindingAsync", "updateScopeRBACRoleBindingAsync", "updateScopeRBACRoleBindingOperationCallable", "updateScopeRBACRoleBindingCallable"] } } } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java index 5452d41554a1..9c92b2b7dc8a 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java @@ -16,29 +16,84 @@ package com.google.cloud.gkehub.v1.stub; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; 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.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.CreateScopeRequest; import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.Fleet; import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; import com.google.cloud.gkehub.v1.ListFeaturesRequest; import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; import com.google.cloud.gkehub.v1.ListMembershipsRequest; import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.Namespace; import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.Scope; import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -70,6 +125,16 @@ public UnaryCallable listMember throw new UnsupportedOperationException("Not implemented: listMembershipsCallable()"); } + public UnaryCallable + listBoundMembershipsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBoundMembershipsPagedCallable()"); + } + + public UnaryCallable + listBoundMembershipsCallable() { + throw new UnsupportedOperationException("Not implemented: listBoundMembershipsCallable()"); + } + public UnaryCallable listFeaturesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listFeaturesPagedCallable()"); } @@ -145,6 +210,305 @@ public UnaryCallable updateFeatureCallable() { throw new UnsupportedOperationException("Not implemented: generateConnectManifestCallable()"); } + public OperationCallable + createFleetOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createFleetOperationCallable()"); + } + + public UnaryCallable createFleetCallable() { + throw new UnsupportedOperationException("Not implemented: createFleetCallable()"); + } + + public UnaryCallable getFleetCallable() { + throw new UnsupportedOperationException("Not implemented: getFleetCallable()"); + } + + public OperationCallable + updateFleetOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateFleetOperationCallable()"); + } + + public UnaryCallable updateFleetCallable() { + throw new UnsupportedOperationException("Not implemented: updateFleetCallable()"); + } + + public OperationCallable + deleteFleetOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFleetOperationCallable()"); + } + + public UnaryCallable deleteFleetCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFleetCallable()"); + } + + public UnaryCallable listFleetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFleetsPagedCallable()"); + } + + public UnaryCallable listFleetsCallable() { + throw new UnsupportedOperationException("Not implemented: listFleetsCallable()"); + } + + public UnaryCallable getScopeNamespaceCallable() { + throw new UnsupportedOperationException("Not implemented: getScopeNamespaceCallable()"); + } + + public OperationCallable + createScopeNamespaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createScopeNamespaceOperationCallable()"); + } + + public UnaryCallable createScopeNamespaceCallable() { + throw new UnsupportedOperationException("Not implemented: createScopeNamespaceCallable()"); + } + + public OperationCallable + updateScopeNamespaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateScopeNamespaceOperationCallable()"); + } + + public UnaryCallable updateScopeNamespaceCallable() { + throw new UnsupportedOperationException("Not implemented: updateScopeNamespaceCallable()"); + } + + public OperationCallable + deleteScopeNamespaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteScopeNamespaceOperationCallable()"); + } + + public UnaryCallable deleteScopeNamespaceCallable() { + throw new UnsupportedOperationException("Not implemented: deleteScopeNamespaceCallable()"); + } + + public UnaryCallable + listScopeNamespacesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listScopeNamespacesPagedCallable()"); + } + + public UnaryCallable + listScopeNamespacesCallable() { + throw new UnsupportedOperationException("Not implemented: listScopeNamespacesCallable()"); + } + + public UnaryCallable + getScopeRBACRoleBindingCallable() { + throw new UnsupportedOperationException("Not implemented: getScopeRBACRoleBindingCallable()"); + } + + public OperationCallable + createScopeRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createScopeRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + createScopeRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: createScopeRBACRoleBindingCallable()"); + } + + public OperationCallable + updateScopeRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateScopeRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + updateScopeRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateScopeRBACRoleBindingCallable()"); + } + + public OperationCallable + deleteScopeRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteScopeRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + deleteScopeRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteScopeRBACRoleBindingCallable()"); + } + + public UnaryCallable + listScopeRBACRoleBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listScopeRBACRoleBindingsPagedCallable()"); + } + + public UnaryCallable + listScopeRBACRoleBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: listScopeRBACRoleBindingsCallable()"); + } + + public UnaryCallable getScopeCallable() { + throw new UnsupportedOperationException("Not implemented: getScopeCallable()"); + } + + public OperationCallable + createScopeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createScopeOperationCallable()"); + } + + public UnaryCallable createScopeCallable() { + throw new UnsupportedOperationException("Not implemented: createScopeCallable()"); + } + + public OperationCallable + updateScopeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateScopeOperationCallable()"); + } + + public UnaryCallable updateScopeCallable() { + throw new UnsupportedOperationException("Not implemented: updateScopeCallable()"); + } + + public OperationCallable + deleteScopeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteScopeOperationCallable()"); + } + + public UnaryCallable deleteScopeCallable() { + throw new UnsupportedOperationException("Not implemented: deleteScopeCallable()"); + } + + public UnaryCallable listScopesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listScopesPagedCallable()"); + } + + public UnaryCallable listScopesCallable() { + throw new UnsupportedOperationException("Not implemented: listScopesCallable()"); + } + + public UnaryCallable + listPermittedScopesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPermittedScopesPagedCallable()"); + } + + public UnaryCallable + listPermittedScopesCallable() { + throw new UnsupportedOperationException("Not implemented: listPermittedScopesCallable()"); + } + + public UnaryCallable + getMembershipBindingCallable() { + throw new UnsupportedOperationException("Not implemented: getMembershipBindingCallable()"); + } + + public OperationCallable + createMembershipBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMembershipBindingOperationCallable()"); + } + + public UnaryCallable + createMembershipBindingCallable() { + throw new UnsupportedOperationException("Not implemented: createMembershipBindingCallable()"); + } + + public OperationCallable + updateMembershipBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMembershipBindingOperationCallable()"); + } + + public UnaryCallable + updateMembershipBindingCallable() { + throw new UnsupportedOperationException("Not implemented: updateMembershipBindingCallable()"); + } + + public OperationCallable + deleteMembershipBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMembershipBindingOperationCallable()"); + } + + public UnaryCallable + deleteMembershipBindingCallable() { + throw new UnsupportedOperationException("Not implemented: deleteMembershipBindingCallable()"); + } + + public UnaryCallable + listMembershipBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMembershipBindingsPagedCallable()"); + } + + public UnaryCallable + listMembershipBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: listMembershipBindingsCallable()"); + } + + public UnaryCallable + getMembershipRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: getMembershipRBACRoleBindingCallable()"); + } + + public OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMembershipRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + createMembershipRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMembershipRBACRoleBindingCallable()"); + } + + public OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMembershipRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + updateMembershipRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMembershipRBACRoleBindingCallable()"); + } + + public OperationCallable + deleteMembershipRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMembershipRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + deleteMembershipRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMembershipRBACRoleBindingCallable()"); + } + + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMembershipRBACRoleBindingsPagedCallable()"); + } + + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMembershipRBACRoleBindingsCallable()"); + } + + public UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateMembershipRBACRoleBindingYAMLCallable()"); + } + @Override public abstract void close(); } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java index ed9f98c023f6..5ae3339b5d15 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1.stub; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -50,22 +58,69 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.CreateScopeRequest; import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.Fleet; import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; import com.google.cloud.gkehub.v1.ListFeaturesRequest; import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; import com.google.cloud.gkehub.v1.ListMembershipsRequest; import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.Namespace; import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.Scope; import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -160,6 +215,11 @@ public class GkeHubStubSettings extends StubSettings { private final PagedCallSettings< ListMembershipsRequest, ListMembershipsResponse, ListMembershipsPagedResponse> listMembershipsSettings; + private final PagedCallSettings< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings; private final PagedCallSettings< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> listFeaturesSettings; @@ -185,6 +245,117 @@ public class GkeHubStubSettings extends StubSettings { updateFeatureOperationSettings; private final UnaryCallSettings generateConnectManifestSettings; + private final UnaryCallSettings createFleetSettings; + private final OperationCallSettings + createFleetOperationSettings; + private final UnaryCallSettings getFleetSettings; + private final UnaryCallSettings updateFleetSettings; + private final OperationCallSettings + updateFleetOperationSettings; + private final UnaryCallSettings deleteFleetSettings; + private final OperationCallSettings + deleteFleetOperationSettings; + private final PagedCallSettings + listFleetsSettings; + private final UnaryCallSettings getScopeNamespaceSettings; + private final UnaryCallSettings + createScopeNamespaceSettings; + private final OperationCallSettings + createScopeNamespaceOperationSettings; + private final UnaryCallSettings + updateScopeNamespaceSettings; + private final OperationCallSettings + updateScopeNamespaceOperationSettings; + private final UnaryCallSettings + deleteScopeNamespaceSettings; + private final OperationCallSettings + deleteScopeNamespaceOperationSettings; + private final PagedCallSettings< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings; + private final UnaryCallSettings + getScopeRBACRoleBindingSettings; + private final UnaryCallSettings + createScopeRBACRoleBindingSettings; + private final OperationCallSettings< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings; + private final UnaryCallSettings + updateScopeRBACRoleBindingSettings; + private final OperationCallSettings< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings; + private final UnaryCallSettings + deleteScopeRBACRoleBindingSettings; + private final OperationCallSettings + deleteScopeRBACRoleBindingOperationSettings; + private final PagedCallSettings< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings; + private final UnaryCallSettings getScopeSettings; + private final UnaryCallSettings createScopeSettings; + private final OperationCallSettings + createScopeOperationSettings; + private final UnaryCallSettings updateScopeSettings; + private final OperationCallSettings + updateScopeOperationSettings; + private final UnaryCallSettings deleteScopeSettings; + private final OperationCallSettings + deleteScopeOperationSettings; + private final PagedCallSettings + listScopesSettings; + private final PagedCallSettings< + ListPermittedScopesRequest, ListPermittedScopesResponse, ListPermittedScopesPagedResponse> + listPermittedScopesSettings; + private final UnaryCallSettings + getMembershipBindingSettings; + private final UnaryCallSettings + createMembershipBindingSettings; + private final OperationCallSettings< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationSettings; + private final UnaryCallSettings + updateMembershipBindingSettings; + private final OperationCallSettings< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationSettings; + private final UnaryCallSettings + deleteMembershipBindingSettings; + private final OperationCallSettings + deleteMembershipBindingOperationSettings; + private final PagedCallSettings< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings; + private final UnaryCallSettings + getMembershipRBACRoleBindingSettings; + private final UnaryCallSettings + createMembershipRBACRoleBindingSettings; + private final OperationCallSettings< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings; + private final UnaryCallSettings + updateMembershipRBACRoleBindingSettings; + private final OperationCallSettings< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings; + private final UnaryCallSettings + deleteMembershipRBACRoleBindingSettings; + private final OperationCallSettings< + DeleteMembershipRBACRoleBindingRequest, Empty, OperationMetadata> + deleteMembershipRBACRoleBindingOperationSettings; + private final PagedCallSettings< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings; + private final UnaryCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings; private static final PagedListDescriptor< ListMembershipsRequest, ListMembershipsResponse, Membership> @@ -223,6 +394,44 @@ public Iterable extractResources(ListMembershipsResponse payload) { } }; + private static final PagedListDescriptor< + ListBoundMembershipsRequest, ListBoundMembershipsResponse, Membership> + LIST_BOUND_MEMBERSHIPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListBoundMembershipsRequest, ListBoundMembershipsResponse, Membership>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBoundMembershipsRequest injectToken( + ListBoundMembershipsRequest payload, String token) { + return ListBoundMembershipsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBoundMembershipsRequest injectPageSize( + ListBoundMembershipsRequest payload, int pageSize) { + return ListBoundMembershipsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBoundMembershipsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBoundMembershipsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBoundMembershipsResponse payload) { + return payload.getMembershipsList(); + } + }; + private static final PagedListDescriptor LIST_FEATURES_PAGE_STR_DESC = new PagedListDescriptor() { @@ -257,6 +466,283 @@ public Iterable extractResources(ListFeaturesResponse payload) { } }; + private static final PagedListDescriptor + LIST_FLEETS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFleetsRequest injectToken(ListFleetsRequest payload, String token) { + return ListFleetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFleetsRequest injectPageSize(ListFleetsRequest payload, int pageSize) { + return ListFleetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFleetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFleetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListFleetsResponse payload) { + return payload.getFleetsList(); + } + }; + + private static final PagedListDescriptor< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, Namespace> + LIST_SCOPE_NAMESPACES_PAGE_STR_DESC = + new PagedListDescriptor< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, Namespace>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListScopeNamespacesRequest injectToken( + ListScopeNamespacesRequest payload, String token) { + return ListScopeNamespacesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListScopeNamespacesRequest injectPageSize( + ListScopeNamespacesRequest payload, int pageSize) { + return ListScopeNamespacesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListScopeNamespacesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListScopeNamespacesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListScopeNamespacesResponse payload) { + return payload.getScopeNamespacesList(); + } + }; + + private static final PagedListDescriptor< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsResponse, RBACRoleBinding> + LIST_SCOPE_R_B_A_C_ROLE_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListScopeRBACRoleBindingsRequest injectToken( + ListScopeRBACRoleBindingsRequest payload, String token) { + return ListScopeRBACRoleBindingsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListScopeRBACRoleBindingsRequest injectPageSize( + ListScopeRBACRoleBindingsRequest payload, int pageSize) { + return ListScopeRBACRoleBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListScopeRBACRoleBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListScopeRBACRoleBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListScopeRBACRoleBindingsResponse payload) { + return payload.getRbacrolebindingsList(); + } + }; + + private static final PagedListDescriptor + LIST_SCOPES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListScopesRequest injectToken(ListScopesRequest payload, String token) { + return ListScopesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListScopesRequest injectPageSize(ListScopesRequest payload, int pageSize) { + return ListScopesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListScopesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListScopesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListScopesResponse payload) { + return payload.getScopesList(); + } + }; + + private static final PagedListDescriptor< + ListPermittedScopesRequest, ListPermittedScopesResponse, Scope> + LIST_PERMITTED_SCOPES_PAGE_STR_DESC = + new PagedListDescriptor< + ListPermittedScopesRequest, ListPermittedScopesResponse, Scope>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPermittedScopesRequest injectToken( + ListPermittedScopesRequest payload, String token) { + return ListPermittedScopesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPermittedScopesRequest injectPageSize( + ListPermittedScopesRequest payload, int pageSize) { + return ListPermittedScopesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPermittedScopesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPermittedScopesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListPermittedScopesResponse payload) { + return payload.getScopesList(); + } + }; + + private static final PagedListDescriptor< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + LIST_MEMBERSHIP_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMembershipBindingsRequest injectToken( + ListMembershipBindingsRequest payload, String token) { + return ListMembershipBindingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMembershipBindingsRequest injectPageSize( + ListMembershipBindingsRequest payload, int pageSize) { + return ListMembershipBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMembershipBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMembershipBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMembershipBindingsResponse payload) { + return payload.getMembershipBindingsList(); + } + }; + + private static final PagedListDescriptor< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + LIST_MEMBERSHIP_R_B_A_C_ROLE_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMembershipRBACRoleBindingsRequest injectToken( + ListMembershipRBACRoleBindingsRequest payload, String token) { + return ListMembershipRBACRoleBindingsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMembershipRBACRoleBindingsRequest injectPageSize( + ListMembershipRBACRoleBindingsRequest payload, int pageSize) { + return ListMembershipRBACRoleBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMembershipRBACRoleBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMembershipRBACRoleBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMembershipRBACRoleBindingsResponse payload) { + return payload.getRbacrolebindingsList(); + } + }; + private static final PagedListResponseFactory< ListMembershipsRequest, ListMembershipsResponse, ListMembershipsPagedResponse> LIST_MEMBERSHIPS_PAGE_STR_FACT = @@ -274,6 +760,29 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + LIST_BOUND_MEMBERSHIPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBoundMembershipsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_BOUND_MEMBERSHIPS_PAGE_STR_DESC, request, context); + return ListBoundMembershipsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> LIST_FEATURES_PAGE_STR_FACT = @@ -291,6 +800,173 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListFleetsRequest, ListFleetsResponse, ListFleetsPagedResponse> + LIST_FLEETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFleetsRequest, ListFleetsResponse, ListFleetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFleetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_FLEETS_PAGE_STR_DESC, request, context); + return ListFleetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, ListScopeNamespacesPagedResponse> + LIST_SCOPE_NAMESPACES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + ListScopeNamespacesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListScopeNamespacesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SCOPE_NAMESPACES_PAGE_STR_DESC, request, context); + return ListScopeNamespacesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + LIST_SCOPE_R_B_A_C_ROLE_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListScopeRBACRoleBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + pageContext = + PageContext.create( + callable, + LIST_SCOPE_R_B_A_C_ROLE_BINDINGS_PAGE_STR_DESC, + request, + context); + return ListScopeRBACRoleBindingsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListScopesRequest, ListScopesResponse, ListScopesPagedResponse> + LIST_SCOPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListScopesRequest, ListScopesResponse, ListScopesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListScopesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SCOPES_PAGE_STR_DESC, request, context); + return ListScopesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListPermittedScopesRequest, ListPermittedScopesResponse, ListPermittedScopesPagedResponse> + LIST_PERMITTED_SCOPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + ListPermittedScopesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPermittedScopesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_PERMITTED_SCOPES_PAGE_STR_DESC, request, context); + return ListPermittedScopesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + LIST_MEMBERSHIP_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListMembershipBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + MembershipBinding> + pageContext = + PageContext.create( + callable, LIST_MEMBERSHIP_BINDINGS_PAGE_STR_DESC, request, context); + return ListMembershipBindingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + LIST_MEMBERSHIP_R_B_A_C_ROLE_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse> + callable, + ListMembershipRBACRoleBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + pageContext = + PageContext.create( + callable, + LIST_MEMBERSHIP_R_B_A_C_ROLE_BINDINGS_PAGE_STR_DESC, + request, + context); + return ListMembershipRBACRoleBindingsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listMemberships. */ public PagedCallSettings< ListMembershipsRequest, ListMembershipsResponse, ListMembershipsPagedResponse> @@ -298,6 +974,15 @@ public ApiFuture getFuturePagedResponse( return listMembershipsSettings; } + /** Returns the object with the settings used for calls to listBoundMemberships. */ + public PagedCallSettings< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings() { + return listBoundMembershipsSettings; + } + /** Returns the object with the settings used for calls to listFeatures. */ public PagedCallSettings listFeaturesSettings() { @@ -386,7 +1071,314 @@ public UnaryCallSettings updateFeatureSettings( return generateConnectManifestSettings; } - public GkeHubStub createStub() throws IOException { + /** Returns the object with the settings used for calls to createFleet. */ + public UnaryCallSettings createFleetSettings() { + return createFleetSettings; + } + + /** Returns the object with the settings used for calls to createFleet. */ + public OperationCallSettings + createFleetOperationSettings() { + return createFleetOperationSettings; + } + + /** Returns the object with the settings used for calls to getFleet. */ + public UnaryCallSettings getFleetSettings() { + return getFleetSettings; + } + + /** Returns the object with the settings used for calls to updateFleet. */ + public UnaryCallSettings updateFleetSettings() { + return updateFleetSettings; + } + + /** Returns the object with the settings used for calls to updateFleet. */ + public OperationCallSettings + updateFleetOperationSettings() { + return updateFleetOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteFleet. */ + public UnaryCallSettings deleteFleetSettings() { + return deleteFleetSettings; + } + + /** Returns the object with the settings used for calls to deleteFleet. */ + public OperationCallSettings + deleteFleetOperationSettings() { + return deleteFleetOperationSettings; + } + + /** Returns the object with the settings used for calls to listFleets. */ + public PagedCallSettings + listFleetsSettings() { + return listFleetsSettings; + } + + /** Returns the object with the settings used for calls to getScopeNamespace. */ + public UnaryCallSettings getScopeNamespaceSettings() { + return getScopeNamespaceSettings; + } + + /** Returns the object with the settings used for calls to createScopeNamespace. */ + public UnaryCallSettings createScopeNamespaceSettings() { + return createScopeNamespaceSettings; + } + + /** Returns the object with the settings used for calls to createScopeNamespace. */ + public OperationCallSettings + createScopeNamespaceOperationSettings() { + return createScopeNamespaceOperationSettings; + } + + /** Returns the object with the settings used for calls to updateScopeNamespace. */ + public UnaryCallSettings updateScopeNamespaceSettings() { + return updateScopeNamespaceSettings; + } + + /** Returns the object with the settings used for calls to updateScopeNamespace. */ + public OperationCallSettings + updateScopeNamespaceOperationSettings() { + return updateScopeNamespaceOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteScopeNamespace. */ + public UnaryCallSettings deleteScopeNamespaceSettings() { + return deleteScopeNamespaceSettings; + } + + /** Returns the object with the settings used for calls to deleteScopeNamespace. */ + public OperationCallSettings + deleteScopeNamespaceOperationSettings() { + return deleteScopeNamespaceOperationSettings; + } + + /** Returns the object with the settings used for calls to listScopeNamespaces. */ + public PagedCallSettings< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings() { + return listScopeNamespacesSettings; + } + + /** Returns the object with the settings used for calls to getScopeRBACRoleBinding. */ + public UnaryCallSettings + getScopeRBACRoleBindingSettings() { + return getScopeRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to createScopeRBACRoleBinding. */ + public UnaryCallSettings + createScopeRBACRoleBindingSettings() { + return createScopeRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to createScopeRBACRoleBinding. */ + public OperationCallSettings< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings() { + return createScopeRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to updateScopeRBACRoleBinding. */ + public UnaryCallSettings + updateScopeRBACRoleBindingSettings() { + return updateScopeRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to updateScopeRBACRoleBinding. */ + public OperationCallSettings< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings() { + return updateScopeRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteScopeRBACRoleBinding. */ + public UnaryCallSettings + deleteScopeRBACRoleBindingSettings() { + return deleteScopeRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to deleteScopeRBACRoleBinding. */ + public OperationCallSettings + deleteScopeRBACRoleBindingOperationSettings() { + return deleteScopeRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to listScopeRBACRoleBindings. */ + public PagedCallSettings< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings() { + return listScopeRBACRoleBindingsSettings; + } + + /** Returns the object with the settings used for calls to getScope. */ + public UnaryCallSettings getScopeSettings() { + return getScopeSettings; + } + + /** Returns the object with the settings used for calls to createScope. */ + public UnaryCallSettings createScopeSettings() { + return createScopeSettings; + } + + /** Returns the object with the settings used for calls to createScope. */ + public OperationCallSettings + createScopeOperationSettings() { + return createScopeOperationSettings; + } + + /** Returns the object with the settings used for calls to updateScope. */ + public UnaryCallSettings updateScopeSettings() { + return updateScopeSettings; + } + + /** Returns the object with the settings used for calls to updateScope. */ + public OperationCallSettings + updateScopeOperationSettings() { + return updateScopeOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteScope. */ + public UnaryCallSettings deleteScopeSettings() { + return deleteScopeSettings; + } + + /** Returns the object with the settings used for calls to deleteScope. */ + public OperationCallSettings + deleteScopeOperationSettings() { + return deleteScopeOperationSettings; + } + + /** Returns the object with the settings used for calls to listScopes. */ + public PagedCallSettings + listScopesSettings() { + return listScopesSettings; + } + + /** Returns the object with the settings used for calls to listPermittedScopes. */ + public PagedCallSettings< + ListPermittedScopesRequest, ListPermittedScopesResponse, ListPermittedScopesPagedResponse> + listPermittedScopesSettings() { + return listPermittedScopesSettings; + } + + /** Returns the object with the settings used for calls to getMembershipBinding. */ + public UnaryCallSettings + getMembershipBindingSettings() { + return getMembershipBindingSettings; + } + + /** Returns the object with the settings used for calls to createMembershipBinding. */ + public UnaryCallSettings + createMembershipBindingSettings() { + return createMembershipBindingSettings; + } + + /** Returns the object with the settings used for calls to createMembershipBinding. */ + public OperationCallSettings + createMembershipBindingOperationSettings() { + return createMembershipBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to updateMembershipBinding. */ + public UnaryCallSettings + updateMembershipBindingSettings() { + return updateMembershipBindingSettings; + } + + /** Returns the object with the settings used for calls to updateMembershipBinding. */ + public OperationCallSettings + updateMembershipBindingOperationSettings() { + return updateMembershipBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteMembershipBinding. */ + public UnaryCallSettings + deleteMembershipBindingSettings() { + return deleteMembershipBindingSettings; + } + + /** Returns the object with the settings used for calls to deleteMembershipBinding. */ + public OperationCallSettings + deleteMembershipBindingOperationSettings() { + return deleteMembershipBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to listMembershipBindings. */ + public PagedCallSettings< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings() { + return listMembershipBindingsSettings; + } + + /** Returns the object with the settings used for calls to getMembershipRBACRoleBinding. */ + public UnaryCallSettings + getMembershipRBACRoleBindingSettings() { + return getMembershipRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to createMembershipRBACRoleBinding. */ + public UnaryCallSettings + createMembershipRBACRoleBindingSettings() { + return createMembershipRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to createMembershipRBACRoleBinding. */ + public OperationCallSettings< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings() { + return createMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to updateMembershipRBACRoleBinding. */ + public UnaryCallSettings + updateMembershipRBACRoleBindingSettings() { + return updateMembershipRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to updateMembershipRBACRoleBinding. */ + public OperationCallSettings< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings() { + return updateMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteMembershipRBACRoleBinding. */ + public UnaryCallSettings + deleteMembershipRBACRoleBindingSettings() { + return deleteMembershipRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to deleteMembershipRBACRoleBinding. */ + public OperationCallSettings + deleteMembershipRBACRoleBindingOperationSettings() { + return deleteMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to listMembershipRBACRoleBindings. */ + public PagedCallSettings< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings() { + return listMembershipRBACRoleBindingsSettings; + } + + /** + * Returns the object with the settings used for calls to generateMembershipRBACRoleBindingYAML. + */ + public UnaryCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings() { + return generateMembershipRBACRoleBindingYAMLSettings; + } + + public GkeHubStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { @@ -496,6 +1488,7 @@ protected GkeHubStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); listMembershipsSettings = settingsBuilder.listMembershipsSettings().build(); + listBoundMembershipsSettings = settingsBuilder.listBoundMembershipsSettings().build(); listFeaturesSettings = settingsBuilder.listFeaturesSettings().build(); getMembershipSettings = settingsBuilder.getMembershipSettings().build(); getFeatureSettings = settingsBuilder.getFeatureSettings().build(); @@ -512,6 +1505,77 @@ protected GkeHubStubSettings(Builder settingsBuilder) throws IOException { updateFeatureSettings = settingsBuilder.updateFeatureSettings().build(); updateFeatureOperationSettings = settingsBuilder.updateFeatureOperationSettings().build(); generateConnectManifestSettings = settingsBuilder.generateConnectManifestSettings().build(); + createFleetSettings = settingsBuilder.createFleetSettings().build(); + createFleetOperationSettings = settingsBuilder.createFleetOperationSettings().build(); + getFleetSettings = settingsBuilder.getFleetSettings().build(); + updateFleetSettings = settingsBuilder.updateFleetSettings().build(); + updateFleetOperationSettings = settingsBuilder.updateFleetOperationSettings().build(); + deleteFleetSettings = settingsBuilder.deleteFleetSettings().build(); + deleteFleetOperationSettings = settingsBuilder.deleteFleetOperationSettings().build(); + listFleetsSettings = settingsBuilder.listFleetsSettings().build(); + getScopeNamespaceSettings = settingsBuilder.getScopeNamespaceSettings().build(); + createScopeNamespaceSettings = settingsBuilder.createScopeNamespaceSettings().build(); + createScopeNamespaceOperationSettings = + settingsBuilder.createScopeNamespaceOperationSettings().build(); + updateScopeNamespaceSettings = settingsBuilder.updateScopeNamespaceSettings().build(); + updateScopeNamespaceOperationSettings = + settingsBuilder.updateScopeNamespaceOperationSettings().build(); + deleteScopeNamespaceSettings = settingsBuilder.deleteScopeNamespaceSettings().build(); + deleteScopeNamespaceOperationSettings = + settingsBuilder.deleteScopeNamespaceOperationSettings().build(); + listScopeNamespacesSettings = settingsBuilder.listScopeNamespacesSettings().build(); + getScopeRBACRoleBindingSettings = settingsBuilder.getScopeRBACRoleBindingSettings().build(); + createScopeRBACRoleBindingSettings = + settingsBuilder.createScopeRBACRoleBindingSettings().build(); + createScopeRBACRoleBindingOperationSettings = + settingsBuilder.createScopeRBACRoleBindingOperationSettings().build(); + updateScopeRBACRoleBindingSettings = + settingsBuilder.updateScopeRBACRoleBindingSettings().build(); + updateScopeRBACRoleBindingOperationSettings = + settingsBuilder.updateScopeRBACRoleBindingOperationSettings().build(); + deleteScopeRBACRoleBindingSettings = + settingsBuilder.deleteScopeRBACRoleBindingSettings().build(); + deleteScopeRBACRoleBindingOperationSettings = + settingsBuilder.deleteScopeRBACRoleBindingOperationSettings().build(); + listScopeRBACRoleBindingsSettings = settingsBuilder.listScopeRBACRoleBindingsSettings().build(); + getScopeSettings = settingsBuilder.getScopeSettings().build(); + createScopeSettings = settingsBuilder.createScopeSettings().build(); + createScopeOperationSettings = settingsBuilder.createScopeOperationSettings().build(); + updateScopeSettings = settingsBuilder.updateScopeSettings().build(); + updateScopeOperationSettings = settingsBuilder.updateScopeOperationSettings().build(); + deleteScopeSettings = settingsBuilder.deleteScopeSettings().build(); + deleteScopeOperationSettings = settingsBuilder.deleteScopeOperationSettings().build(); + listScopesSettings = settingsBuilder.listScopesSettings().build(); + listPermittedScopesSettings = settingsBuilder.listPermittedScopesSettings().build(); + getMembershipBindingSettings = settingsBuilder.getMembershipBindingSettings().build(); + createMembershipBindingSettings = settingsBuilder.createMembershipBindingSettings().build(); + createMembershipBindingOperationSettings = + settingsBuilder.createMembershipBindingOperationSettings().build(); + updateMembershipBindingSettings = settingsBuilder.updateMembershipBindingSettings().build(); + updateMembershipBindingOperationSettings = + settingsBuilder.updateMembershipBindingOperationSettings().build(); + deleteMembershipBindingSettings = settingsBuilder.deleteMembershipBindingSettings().build(); + deleteMembershipBindingOperationSettings = + settingsBuilder.deleteMembershipBindingOperationSettings().build(); + listMembershipBindingsSettings = settingsBuilder.listMembershipBindingsSettings().build(); + getMembershipRBACRoleBindingSettings = + settingsBuilder.getMembershipRBACRoleBindingSettings().build(); + createMembershipRBACRoleBindingSettings = + settingsBuilder.createMembershipRBACRoleBindingSettings().build(); + createMembershipRBACRoleBindingOperationSettings = + settingsBuilder.createMembershipRBACRoleBindingOperationSettings().build(); + updateMembershipRBACRoleBindingSettings = + settingsBuilder.updateMembershipRBACRoleBindingSettings().build(); + updateMembershipRBACRoleBindingOperationSettings = + settingsBuilder.updateMembershipRBACRoleBindingOperationSettings().build(); + deleteMembershipRBACRoleBindingSettings = + settingsBuilder.deleteMembershipRBACRoleBindingSettings().build(); + deleteMembershipRBACRoleBindingOperationSettings = + settingsBuilder.deleteMembershipRBACRoleBindingOperationSettings().build(); + listMembershipRBACRoleBindingsSettings = + settingsBuilder.listMembershipRBACRoleBindingsSettings().build(); + generateMembershipRBACRoleBindingYAMLSettings = + settingsBuilder.generateMembershipRBACRoleBindingYAMLSettings().build(); } /** Builder for GkeHubStubSettings. */ @@ -520,6 +1584,11 @@ public static class Builder extends StubSettings.Builder listMembershipsSettings; + private final PagedCallSettings.Builder< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings; private final PagedCallSettings.Builder< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> listFeaturesSettings; @@ -551,6 +1620,129 @@ public static class Builder extends StubSettings.Builder generateConnectManifestSettings; + private final UnaryCallSettings.Builder createFleetSettings; + private final OperationCallSettings.Builder + createFleetOperationSettings; + private final UnaryCallSettings.Builder getFleetSettings; + private final UnaryCallSettings.Builder updateFleetSettings; + private final OperationCallSettings.Builder + updateFleetOperationSettings; + private final UnaryCallSettings.Builder deleteFleetSettings; + private final OperationCallSettings.Builder + deleteFleetOperationSettings; + private final PagedCallSettings.Builder< + ListFleetsRequest, ListFleetsResponse, ListFleetsPagedResponse> + listFleetsSettings; + private final UnaryCallSettings.Builder + getScopeNamespaceSettings; + private final UnaryCallSettings.Builder + createScopeNamespaceSettings; + private final OperationCallSettings.Builder< + CreateScopeNamespaceRequest, Namespace, OperationMetadata> + createScopeNamespaceOperationSettings; + private final UnaryCallSettings.Builder + updateScopeNamespaceSettings; + private final OperationCallSettings.Builder< + UpdateScopeNamespaceRequest, Namespace, OperationMetadata> + updateScopeNamespaceOperationSettings; + private final UnaryCallSettings.Builder + deleteScopeNamespaceSettings; + private final OperationCallSettings.Builder< + DeleteScopeNamespaceRequest, Empty, OperationMetadata> + deleteScopeNamespaceOperationSettings; + private final PagedCallSettings.Builder< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings; + private final UnaryCallSettings.Builder + getScopeRBACRoleBindingSettings; + private final UnaryCallSettings.Builder + createScopeRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings; + private final UnaryCallSettings.Builder + updateScopeRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings; + private final UnaryCallSettings.Builder + deleteScopeRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + DeleteScopeRBACRoleBindingRequest, Empty, OperationMetadata> + deleteScopeRBACRoleBindingOperationSettings; + private final PagedCallSettings.Builder< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings; + private final UnaryCallSettings.Builder getScopeSettings; + private final UnaryCallSettings.Builder createScopeSettings; + private final OperationCallSettings.Builder + createScopeOperationSettings; + private final UnaryCallSettings.Builder updateScopeSettings; + private final OperationCallSettings.Builder + updateScopeOperationSettings; + private final UnaryCallSettings.Builder deleteScopeSettings; + private final OperationCallSettings.Builder + deleteScopeOperationSettings; + private final PagedCallSettings.Builder< + ListScopesRequest, ListScopesResponse, ListScopesPagedResponse> + listScopesSettings; + private final PagedCallSettings.Builder< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + ListPermittedScopesPagedResponse> + listPermittedScopesSettings; + private final UnaryCallSettings.Builder + getMembershipBindingSettings; + private final UnaryCallSettings.Builder + createMembershipBindingSettings; + private final OperationCallSettings.Builder< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationSettings; + private final UnaryCallSettings.Builder + updateMembershipBindingSettings; + private final OperationCallSettings.Builder< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationSettings; + private final UnaryCallSettings.Builder + deleteMembershipBindingSettings; + private final OperationCallSettings.Builder< + DeleteMembershipBindingRequest, Empty, OperationMetadata> + deleteMembershipBindingOperationSettings; + private final PagedCallSettings.Builder< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings; + private final UnaryCallSettings.Builder + getMembershipRBACRoleBindingSettings; + private final UnaryCallSettings.Builder + createMembershipRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings; + private final UnaryCallSettings.Builder + updateMembershipRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings; + private final UnaryCallSettings.Builder + deleteMembershipRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + DeleteMembershipRBACRoleBindingRequest, Empty, OperationMetadata> + deleteMembershipRBACRoleBindingOperationSettings; + private final PagedCallSettings.Builder< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings; + private final UnaryCallSettings.Builder< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -590,6 +1782,8 @@ protected Builder(ClientContext clientContext) { super(clientContext); listMembershipsSettings = PagedCallSettings.newBuilder(LIST_MEMBERSHIPS_PAGE_STR_FACT); + listBoundMembershipsSettings = + PagedCallSettings.newBuilder(LIST_BOUND_MEMBERSHIPS_PAGE_STR_FACT); listFeaturesSettings = PagedCallSettings.newBuilder(LIST_FEATURES_PAGE_STR_FACT); getMembershipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -606,10 +1800,67 @@ protected Builder(ClientContext clientContext) { updateFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateFeatureOperationSettings = OperationCallSettings.newBuilder(); generateConnectManifestSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFleetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFleetOperationSettings = OperationCallSettings.newBuilder(); + getFleetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFleetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFleetOperationSettings = OperationCallSettings.newBuilder(); + deleteFleetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFleetOperationSettings = OperationCallSettings.newBuilder(); + listFleetsSettings = PagedCallSettings.newBuilder(LIST_FLEETS_PAGE_STR_FACT); + getScopeNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeNamespaceOperationSettings = OperationCallSettings.newBuilder(); + updateScopeNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateScopeNamespaceOperationSettings = OperationCallSettings.newBuilder(); + deleteScopeNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteScopeNamespaceOperationSettings = OperationCallSettings.newBuilder(); + listScopeNamespacesSettings = + PagedCallSettings.newBuilder(LIST_SCOPE_NAMESPACES_PAGE_STR_FACT); + getScopeRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + updateScopeRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateScopeRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + deleteScopeRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteScopeRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + listScopeRBACRoleBindingsSettings = + PagedCallSettings.newBuilder(LIST_SCOPE_R_B_A_C_ROLE_BINDINGS_PAGE_STR_FACT); + getScopeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeOperationSettings = OperationCallSettings.newBuilder(); + updateScopeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateScopeOperationSettings = OperationCallSettings.newBuilder(); + deleteScopeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteScopeOperationSettings = OperationCallSettings.newBuilder(); + listScopesSettings = PagedCallSettings.newBuilder(LIST_SCOPES_PAGE_STR_FACT); + listPermittedScopesSettings = + PagedCallSettings.newBuilder(LIST_PERMITTED_SCOPES_PAGE_STR_FACT); + getMembershipBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMembershipBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMembershipBindingOperationSettings = OperationCallSettings.newBuilder(); + updateMembershipBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMembershipBindingOperationSettings = OperationCallSettings.newBuilder(); + deleteMembershipBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMembershipBindingOperationSettings = OperationCallSettings.newBuilder(); + listMembershipBindingsSettings = + PagedCallSettings.newBuilder(LIST_MEMBERSHIP_BINDINGS_PAGE_STR_FACT); + getMembershipRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMembershipRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMembershipRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + updateMembershipRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMembershipRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + deleteMembershipRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMembershipRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + listMembershipRBACRoleBindingsSettings = + PagedCallSettings.newBuilder(LIST_MEMBERSHIP_R_B_A_C_ROLE_BINDINGS_PAGE_STR_FACT); + generateMembershipRBACRoleBindingYAMLSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listMembershipsSettings, + listBoundMembershipsSettings, listFeaturesSettings, getMembershipSettings, getFeatureSettings, @@ -619,7 +1870,39 @@ protected Builder(ClientContext clientContext) { deleteFeatureSettings, updateMembershipSettings, updateFeatureSettings, - generateConnectManifestSettings); + generateConnectManifestSettings, + createFleetSettings, + getFleetSettings, + updateFleetSettings, + deleteFleetSettings, + listFleetsSettings, + getScopeNamespaceSettings, + createScopeNamespaceSettings, + updateScopeNamespaceSettings, + deleteScopeNamespaceSettings, + listScopeNamespacesSettings, + getScopeRBACRoleBindingSettings, + createScopeRBACRoleBindingSettings, + updateScopeRBACRoleBindingSettings, + deleteScopeRBACRoleBindingSettings, + listScopeRBACRoleBindingsSettings, + getScopeSettings, + createScopeSettings, + updateScopeSettings, + deleteScopeSettings, + listScopesSettings, + listPermittedScopesSettings, + getMembershipBindingSettings, + createMembershipBindingSettings, + updateMembershipBindingSettings, + deleteMembershipBindingSettings, + listMembershipBindingsSettings, + getMembershipRBACRoleBindingSettings, + createMembershipRBACRoleBindingSettings, + updateMembershipRBACRoleBindingSettings, + deleteMembershipRBACRoleBindingSettings, + listMembershipRBACRoleBindingsSettings, + generateMembershipRBACRoleBindingYAMLSettings); initDefaults(this); } @@ -627,6 +1910,7 @@ protected Builder(GkeHubStubSettings settings) { super(settings); listMembershipsSettings = settings.listMembershipsSettings.toBuilder(); + listBoundMembershipsSettings = settings.listBoundMembershipsSettings.toBuilder(); listFeaturesSettings = settings.listFeaturesSettings.toBuilder(); getMembershipSettings = settings.getMembershipSettings.toBuilder(); getFeatureSettings = settings.getFeatureSettings.toBuilder(); @@ -643,10 +1927,79 @@ protected Builder(GkeHubStubSettings settings) { updateFeatureSettings = settings.updateFeatureSettings.toBuilder(); updateFeatureOperationSettings = settings.updateFeatureOperationSettings.toBuilder(); generateConnectManifestSettings = settings.generateConnectManifestSettings.toBuilder(); + createFleetSettings = settings.createFleetSettings.toBuilder(); + createFleetOperationSettings = settings.createFleetOperationSettings.toBuilder(); + getFleetSettings = settings.getFleetSettings.toBuilder(); + updateFleetSettings = settings.updateFleetSettings.toBuilder(); + updateFleetOperationSettings = settings.updateFleetOperationSettings.toBuilder(); + deleteFleetSettings = settings.deleteFleetSettings.toBuilder(); + deleteFleetOperationSettings = settings.deleteFleetOperationSettings.toBuilder(); + listFleetsSettings = settings.listFleetsSettings.toBuilder(); + getScopeNamespaceSettings = settings.getScopeNamespaceSettings.toBuilder(); + createScopeNamespaceSettings = settings.createScopeNamespaceSettings.toBuilder(); + createScopeNamespaceOperationSettings = + settings.createScopeNamespaceOperationSettings.toBuilder(); + updateScopeNamespaceSettings = settings.updateScopeNamespaceSettings.toBuilder(); + updateScopeNamespaceOperationSettings = + settings.updateScopeNamespaceOperationSettings.toBuilder(); + deleteScopeNamespaceSettings = settings.deleteScopeNamespaceSettings.toBuilder(); + deleteScopeNamespaceOperationSettings = + settings.deleteScopeNamespaceOperationSettings.toBuilder(); + listScopeNamespacesSettings = settings.listScopeNamespacesSettings.toBuilder(); + getScopeRBACRoleBindingSettings = settings.getScopeRBACRoleBindingSettings.toBuilder(); + createScopeRBACRoleBindingSettings = settings.createScopeRBACRoleBindingSettings.toBuilder(); + createScopeRBACRoleBindingOperationSettings = + settings.createScopeRBACRoleBindingOperationSettings.toBuilder(); + updateScopeRBACRoleBindingSettings = settings.updateScopeRBACRoleBindingSettings.toBuilder(); + updateScopeRBACRoleBindingOperationSettings = + settings.updateScopeRBACRoleBindingOperationSettings.toBuilder(); + deleteScopeRBACRoleBindingSettings = settings.deleteScopeRBACRoleBindingSettings.toBuilder(); + deleteScopeRBACRoleBindingOperationSettings = + settings.deleteScopeRBACRoleBindingOperationSettings.toBuilder(); + listScopeRBACRoleBindingsSettings = settings.listScopeRBACRoleBindingsSettings.toBuilder(); + getScopeSettings = settings.getScopeSettings.toBuilder(); + createScopeSettings = settings.createScopeSettings.toBuilder(); + createScopeOperationSettings = settings.createScopeOperationSettings.toBuilder(); + updateScopeSettings = settings.updateScopeSettings.toBuilder(); + updateScopeOperationSettings = settings.updateScopeOperationSettings.toBuilder(); + deleteScopeSettings = settings.deleteScopeSettings.toBuilder(); + deleteScopeOperationSettings = settings.deleteScopeOperationSettings.toBuilder(); + listScopesSettings = settings.listScopesSettings.toBuilder(); + listPermittedScopesSettings = settings.listPermittedScopesSettings.toBuilder(); + getMembershipBindingSettings = settings.getMembershipBindingSettings.toBuilder(); + createMembershipBindingSettings = settings.createMembershipBindingSettings.toBuilder(); + createMembershipBindingOperationSettings = + settings.createMembershipBindingOperationSettings.toBuilder(); + updateMembershipBindingSettings = settings.updateMembershipBindingSettings.toBuilder(); + updateMembershipBindingOperationSettings = + settings.updateMembershipBindingOperationSettings.toBuilder(); + deleteMembershipBindingSettings = settings.deleteMembershipBindingSettings.toBuilder(); + deleteMembershipBindingOperationSettings = + settings.deleteMembershipBindingOperationSettings.toBuilder(); + listMembershipBindingsSettings = settings.listMembershipBindingsSettings.toBuilder(); + getMembershipRBACRoleBindingSettings = + settings.getMembershipRBACRoleBindingSettings.toBuilder(); + createMembershipRBACRoleBindingSettings = + settings.createMembershipRBACRoleBindingSettings.toBuilder(); + createMembershipRBACRoleBindingOperationSettings = + settings.createMembershipRBACRoleBindingOperationSettings.toBuilder(); + updateMembershipRBACRoleBindingSettings = + settings.updateMembershipRBACRoleBindingSettings.toBuilder(); + updateMembershipRBACRoleBindingOperationSettings = + settings.updateMembershipRBACRoleBindingOperationSettings.toBuilder(); + deleteMembershipRBACRoleBindingSettings = + settings.deleteMembershipRBACRoleBindingSettings.toBuilder(); + deleteMembershipRBACRoleBindingOperationSettings = + settings.deleteMembershipRBACRoleBindingOperationSettings.toBuilder(); + listMembershipRBACRoleBindingsSettings = + settings.listMembershipRBACRoleBindingsSettings.toBuilder(); + generateMembershipRBACRoleBindingYAMLSettings = + settings.generateMembershipRBACRoleBindingYAMLSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listMembershipsSettings, + listBoundMembershipsSettings, listFeaturesSettings, getMembershipSettings, getFeatureSettings, @@ -656,7 +2009,39 @@ protected Builder(GkeHubStubSettings settings) { deleteFeatureSettings, updateMembershipSettings, updateFeatureSettings, - generateConnectManifestSettings); + generateConnectManifestSettings, + createFleetSettings, + getFleetSettings, + updateFleetSettings, + deleteFleetSettings, + listFleetsSettings, + getScopeNamespaceSettings, + createScopeNamespaceSettings, + updateScopeNamespaceSettings, + deleteScopeNamespaceSettings, + listScopeNamespacesSettings, + getScopeRBACRoleBindingSettings, + createScopeRBACRoleBindingSettings, + updateScopeRBACRoleBindingSettings, + deleteScopeRBACRoleBindingSettings, + listScopeRBACRoleBindingsSettings, + getScopeSettings, + createScopeSettings, + updateScopeSettings, + deleteScopeSettings, + listScopesSettings, + listPermittedScopesSettings, + getMembershipBindingSettings, + createMembershipBindingSettings, + updateMembershipBindingSettings, + deleteMembershipBindingSettings, + listMembershipBindingsSettings, + getMembershipRBACRoleBindingSettings, + createMembershipRBACRoleBindingSettings, + updateMembershipRBACRoleBindingSettings, + deleteMembershipRBACRoleBindingSettings, + listMembershipRBACRoleBindingsSettings, + generateMembershipRBACRoleBindingYAMLSettings); } private static Builder createDefault() { @@ -689,6 +2074,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listBoundMembershipsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listFeaturesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -715,40 +2105,629 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder - .deleteMembershipSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .deleteMembershipSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteFeatureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateMembershipSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateFeatureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .generateConnectManifestSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createFleetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getFleetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateFleetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteFleetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listFleetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getScopeNamespaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createScopeNamespaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateScopeNamespaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteScopeNamespaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listScopeNamespacesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getScopeRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createScopeRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateScopeRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteScopeRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listScopeRBACRoleBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getScopeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createScopeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateScopeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteScopeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listScopesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listPermittedScopesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getMembershipBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createMembershipBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateMembershipBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteMembershipBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listMembershipBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getMembershipRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createMembershipRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateMembershipRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteMembershipRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listMembershipRBACRoleBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .generateMembershipRBACRoleBindingYAMLSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createMembershipOperationSettings() + .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(Membership.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createFeatureOperationSettings() + .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(Feature.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteMembershipOperationSettings() + .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() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteFeatureOperationSettings() + .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() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateMembershipOperationSettings() + .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(Membership.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateFeatureOperationSettings() + .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(Feature.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createFleetOperationSettings() + .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(Fleet.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateFleetOperationSettings() + .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(Fleet.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteFleetOperationSettings() + .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() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createScopeNamespaceOperationSettings() + .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(Namespace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateScopeNamespaceOperationSettings() + .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(Namespace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteScopeNamespaceOperationSettings() + .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() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createScopeRBACRoleBindingOperationSettings() + .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(RBACRoleBinding.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateScopeRBACRoleBindingOperationSettings() + .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(RBACRoleBinding.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .deleteFeatureSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .deleteScopeRBACRoleBindingOperationSettings() + .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() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .updateMembershipSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .createScopeOperationSettings() + .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(Scope.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .updateFeatureSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .updateScopeOperationSettings() + .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(Scope.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .generateConnectManifestSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .deleteScopeOperationSettings() + .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() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .createMembershipOperationSettings() + .createMembershipBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Membership.class)) + ProtoOperationTransformers.ResponseTransformer.create(MembershipBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -764,15 +2743,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .createFeatureOperationSettings() + .updateMembershipBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Feature.class)) + ProtoOperationTransformers.ResponseTransformer.create(MembershipBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -788,10 +2767,10 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteMembershipOperationSettings() + .deleteMembershipBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) @@ -812,15 +2791,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteFeatureOperationSettings() + .createMembershipRBACRoleBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + 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)) + ProtoOperationTransformers.ResponseTransformer.create(RBACRoleBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -836,15 +2816,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateMembershipOperationSettings() + .updateMembershipRBACRoleBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Membership.class)) + ProtoOperationTransformers.ResponseTransformer.create(RBACRoleBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -860,15 +2841,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateFeatureOperationSettings() + .deleteMembershipRBACRoleBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Feature.class)) + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -908,6 +2890,15 @@ public Builder applyToAllUnaryMethods( return listMembershipsSettings; } + /** Returns the builder for the settings used for calls to listBoundMemberships. */ + public PagedCallSettings.Builder< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings() { + return listBoundMembershipsSettings; + } + /** Returns the builder for the settings used for calls to listFeatures. */ public PagedCallSettings.Builder< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> @@ -1001,6 +2992,325 @@ public UnaryCallSettings.Builder updateFeatureS return generateConnectManifestSettings; } + /** Returns the builder for the settings used for calls to createFleet. */ + public UnaryCallSettings.Builder createFleetSettings() { + return createFleetSettings; + } + + /** Returns the builder for the settings used for calls to createFleet. */ + public OperationCallSettings.Builder + createFleetOperationSettings() { + return createFleetOperationSettings; + } + + /** Returns the builder for the settings used for calls to getFleet. */ + public UnaryCallSettings.Builder getFleetSettings() { + return getFleetSettings; + } + + /** Returns the builder for the settings used for calls to updateFleet. */ + public UnaryCallSettings.Builder updateFleetSettings() { + return updateFleetSettings; + } + + /** Returns the builder for the settings used for calls to updateFleet. */ + public OperationCallSettings.Builder + updateFleetOperationSettings() { + return updateFleetOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteFleet. */ + public UnaryCallSettings.Builder deleteFleetSettings() { + return deleteFleetSettings; + } + + /** Returns the builder for the settings used for calls to deleteFleet. */ + public OperationCallSettings.Builder + deleteFleetOperationSettings() { + return deleteFleetOperationSettings; + } + + /** Returns the builder for the settings used for calls to listFleets. */ + public PagedCallSettings.Builder + listFleetsSettings() { + return listFleetsSettings; + } + + /** Returns the builder for the settings used for calls to getScopeNamespace. */ + public UnaryCallSettings.Builder + getScopeNamespaceSettings() { + return getScopeNamespaceSettings; + } + + /** Returns the builder for the settings used for calls to createScopeNamespace. */ + public UnaryCallSettings.Builder + createScopeNamespaceSettings() { + return createScopeNamespaceSettings; + } + + /** Returns the builder for the settings used for calls to createScopeNamespace. */ + public OperationCallSettings.Builder + createScopeNamespaceOperationSettings() { + return createScopeNamespaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateScopeNamespace. */ + public UnaryCallSettings.Builder + updateScopeNamespaceSettings() { + return updateScopeNamespaceSettings; + } + + /** Returns the builder for the settings used for calls to updateScopeNamespace. */ + public OperationCallSettings.Builder + updateScopeNamespaceOperationSettings() { + return updateScopeNamespaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteScopeNamespace. */ + public UnaryCallSettings.Builder + deleteScopeNamespaceSettings() { + return deleteScopeNamespaceSettings; + } + + /** Returns the builder for the settings used for calls to deleteScopeNamespace. */ + public OperationCallSettings.Builder + deleteScopeNamespaceOperationSettings() { + return deleteScopeNamespaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to listScopeNamespaces. */ + public PagedCallSettings.Builder< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings() { + return listScopeNamespacesSettings; + } + + /** Returns the builder for the settings used for calls to getScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + getScopeRBACRoleBindingSettings() { + return getScopeRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to createScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + createScopeRBACRoleBindingSettings() { + return createScopeRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to createScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings() { + return createScopeRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + updateScopeRBACRoleBindingSettings() { + return updateScopeRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to updateScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings() { + return updateScopeRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + deleteScopeRBACRoleBindingSettings() { + return deleteScopeRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to deleteScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + DeleteScopeRBACRoleBindingRequest, Empty, OperationMetadata> + deleteScopeRBACRoleBindingOperationSettings() { + return deleteScopeRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to listScopeRBACRoleBindings. */ + public PagedCallSettings.Builder< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings() { + return listScopeRBACRoleBindingsSettings; + } + + /** Returns the builder for the settings used for calls to getScope. */ + public UnaryCallSettings.Builder getScopeSettings() { + return getScopeSettings; + } + + /** Returns the builder for the settings used for calls to createScope. */ + public UnaryCallSettings.Builder createScopeSettings() { + return createScopeSettings; + } + + /** Returns the builder for the settings used for calls to createScope. */ + public OperationCallSettings.Builder + createScopeOperationSettings() { + return createScopeOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateScope. */ + public UnaryCallSettings.Builder updateScopeSettings() { + return updateScopeSettings; + } + + /** Returns the builder for the settings used for calls to updateScope. */ + public OperationCallSettings.Builder + updateScopeOperationSettings() { + return updateScopeOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteScope. */ + public UnaryCallSettings.Builder deleteScopeSettings() { + return deleteScopeSettings; + } + + /** Returns the builder for the settings used for calls to deleteScope. */ + public OperationCallSettings.Builder + deleteScopeOperationSettings() { + return deleteScopeOperationSettings; + } + + /** Returns the builder for the settings used for calls to listScopes. */ + public PagedCallSettings.Builder + listScopesSettings() { + return listScopesSettings; + } + + /** Returns the builder for the settings used for calls to listPermittedScopes. */ + public PagedCallSettings.Builder< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + ListPermittedScopesPagedResponse> + listPermittedScopesSettings() { + return listPermittedScopesSettings; + } + + /** Returns the builder for the settings used for calls to getMembershipBinding. */ + public UnaryCallSettings.Builder + getMembershipBindingSettings() { + return getMembershipBindingSettings; + } + + /** Returns the builder for the settings used for calls to createMembershipBinding. */ + public UnaryCallSettings.Builder + createMembershipBindingSettings() { + return createMembershipBindingSettings; + } + + /** Returns the builder for the settings used for calls to createMembershipBinding. */ + public OperationCallSettings.Builder< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationSettings() { + return createMembershipBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateMembershipBinding. */ + public UnaryCallSettings.Builder + updateMembershipBindingSettings() { + return updateMembershipBindingSettings; + } + + /** Returns the builder for the settings used for calls to updateMembershipBinding. */ + public OperationCallSettings.Builder< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationSettings() { + return updateMembershipBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteMembershipBinding. */ + public UnaryCallSettings.Builder + deleteMembershipBindingSettings() { + return deleteMembershipBindingSettings; + } + + /** Returns the builder for the settings used for calls to deleteMembershipBinding. */ + public OperationCallSettings.Builder + deleteMembershipBindingOperationSettings() { + return deleteMembershipBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to listMembershipBindings. */ + public PagedCallSettings.Builder< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings() { + return listMembershipBindingsSettings; + } + + /** Returns the builder for the settings used for calls to getMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + getMembershipRBACRoleBindingSettings() { + return getMembershipRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to createMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + createMembershipRBACRoleBindingSettings() { + return createMembershipRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to createMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings() { + return createMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + updateMembershipRBACRoleBindingSettings() { + return updateMembershipRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to updateMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings() { + return updateMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + deleteMembershipRBACRoleBindingSettings() { + return deleteMembershipRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to deleteMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + DeleteMembershipRBACRoleBindingRequest, Empty, OperationMetadata> + deleteMembershipRBACRoleBindingOperationSettings() { + return deleteMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to listMembershipRBACRoleBindings. */ + public PagedCallSettings.Builder< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings() { + return listMembershipRBACRoleBindingsSettings; + } + + /** + * Returns the builder for the settings used for calls to generateMembershipRBACRoleBindingYAML. + */ + public UnaryCallSettings.Builder< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings() { + return generateMembershipRBACRoleBindingYAMLSettings; + } + @Override public GkeHubStubSettings build() throws IOException { return new GkeHubStubSettings(this); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java index 02b1a4b3337b..101a1059328d 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1.stub; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -28,22 +36,69 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.CreateScopeRequest; import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.Fleet; import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; import com.google.cloud.gkehub.v1.ListFeaturesRequest; import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; import com.google.cloud.gkehub.v1.ListMembershipsRequest; import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.Namespace; import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.Scope; import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -73,6 +128,18 @@ public class GrpcGkeHubStub extends GkeHubStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listBoundMembershipsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListBoundMemberships") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBoundMembershipsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBoundMembershipsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listFeaturesMethodDescriptor = MethodDescriptor.newBuilder() @@ -184,10 +251,373 @@ public class GrpcGkeHubStub extends GkeHubStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor createFleetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateFleet") + .setRequestMarshaller(ProtoUtils.marshaller(CreateFleetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getFleetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetFleet") + .setRequestMarshaller(ProtoUtils.marshaller(GetFleetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Fleet.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateFleetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateFleet") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateFleetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteFleetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteFleet") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteFleetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listFleetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListFleets") + .setRequestMarshaller(ProtoUtils.marshaller(ListFleetsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListFleetsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getScopeNamespaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScopeNamespace") + .setRequestMarshaller( + ProtoUtils.marshaller(GetScopeNamespaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Namespace.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createScopeNamespaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScopeNamespace") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateScopeNamespaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateScopeNamespaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScopeNamespace") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateScopeNamespaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteScopeNamespaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScopeNamespace") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteScopeNamespaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listScopeNamespacesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopeNamespaces") + .setRequestMarshaller( + ProtoUtils.marshaller(ListScopeNamespacesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListScopeNamespacesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getScopeRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScopeRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetScopeRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RBACRoleBinding.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createScopeRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScopeRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateScopeRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateScopeRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScopeRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateScopeRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteScopeRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScopeRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteScopeRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsResponse> + listScopeRBACRoleBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopeRBACRoleBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListScopeRBACRoleBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListScopeRBACRoleBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getScopeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScope") + .setRequestMarshaller(ProtoUtils.marshaller(GetScopeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Scope.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createScopeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScope") + .setRequestMarshaller(ProtoUtils.marshaller(CreateScopeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateScopeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScope") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateScopeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteScopeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScope") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteScopeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listScopesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopes") + .setRequestMarshaller(ProtoUtils.marshaller(ListScopesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListScopesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listPermittedScopesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListPermittedScopes") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPermittedScopesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPermittedScopesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getMembershipBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetMembershipBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMembershipBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MembershipBinding.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMembershipBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateMembershipBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMembershipBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMembershipBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateMembershipBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateMembershipBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMembershipBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteMembershipBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteMembershipBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListMembershipBindingsRequest, ListMembershipBindingsResponse> + listMembershipBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListMembershipBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMembershipBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMembershipBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getMembershipRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetMembershipRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMembershipRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RBACRoleBinding.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMembershipRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateMembershipRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateMembershipRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMembershipRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateMembershipRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateMembershipRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMembershipRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteMembershipRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteMembershipRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListMembershipRBACRoleBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMembershipRBACRoleBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListMembershipRBACRoleBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkehub.v1.GkeHub/GenerateMembershipRBACRoleBindingYAML") + .setRequestMarshaller( + ProtoUtils.marshaller( + GenerateMembershipRBACRoleBindingYAMLRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + GenerateMembershipRBACRoleBindingYAMLResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable listMembershipsCallable; private final UnaryCallable listMembershipsPagedCallable; + private final UnaryCallable + listBoundMembershipsCallable; + private final UnaryCallable + listBoundMembershipsPagedCallable; private final UnaryCallable listFeaturesCallable; private final UnaryCallable listFeaturesPagedCallable; @@ -213,6 +643,115 @@ public class GrpcGkeHubStub extends GkeHubStub { updateFeatureOperationCallable; private final UnaryCallable generateConnectManifestCallable; + private final UnaryCallable createFleetCallable; + private final OperationCallable + createFleetOperationCallable; + private final UnaryCallable getFleetCallable; + private final UnaryCallable updateFleetCallable; + private final OperationCallable + updateFleetOperationCallable; + private final UnaryCallable deleteFleetCallable; + private final OperationCallable + deleteFleetOperationCallable; + private final UnaryCallable listFleetsCallable; + private final UnaryCallable listFleetsPagedCallable; + private final UnaryCallable getScopeNamespaceCallable; + private final UnaryCallable createScopeNamespaceCallable; + private final OperationCallable + createScopeNamespaceOperationCallable; + private final UnaryCallable updateScopeNamespaceCallable; + private final OperationCallable + updateScopeNamespaceOperationCallable; + private final UnaryCallable deleteScopeNamespaceCallable; + private final OperationCallable + deleteScopeNamespaceOperationCallable; + private final UnaryCallable + listScopeNamespacesCallable; + private final UnaryCallable + listScopeNamespacesPagedCallable; + private final UnaryCallable + getScopeRBACRoleBindingCallable; + private final UnaryCallable + createScopeRBACRoleBindingCallable; + private final OperationCallable< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + updateScopeRBACRoleBindingCallable; + private final OperationCallable< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + deleteScopeRBACRoleBindingCallable; + private final OperationCallable + deleteScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + listScopeRBACRoleBindingsCallable; + private final UnaryCallable< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsPagedCallable; + private final UnaryCallable getScopeCallable; + private final UnaryCallable createScopeCallable; + private final OperationCallable + createScopeOperationCallable; + private final UnaryCallable updateScopeCallable; + private final OperationCallable + updateScopeOperationCallable; + private final UnaryCallable deleteScopeCallable; + private final OperationCallable + deleteScopeOperationCallable; + private final UnaryCallable listScopesCallable; + private final UnaryCallable listScopesPagedCallable; + private final UnaryCallable + listPermittedScopesCallable; + private final UnaryCallable + listPermittedScopesPagedCallable; + private final UnaryCallable + getMembershipBindingCallable; + private final UnaryCallable + createMembershipBindingCallable; + private final OperationCallable< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationCallable; + private final UnaryCallable + updateMembershipBindingCallable; + private final OperationCallable< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationCallable; + private final UnaryCallable + deleteMembershipBindingCallable; + private final OperationCallable + deleteMembershipBindingOperationCallable; + private final UnaryCallable + listMembershipBindingsCallable; + private final UnaryCallable + listMembershipBindingsPagedCallable; + private final UnaryCallable + getMembershipRBACRoleBindingCallable; + private final UnaryCallable + createMembershipRBACRoleBindingCallable; + private final OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable + updateMembershipRBACRoleBindingCallable; + private final OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable + deleteMembershipRBACRoleBindingCallable; + private final OperationCallable + deleteMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable; + private final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable; + private final UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -264,6 +803,17 @@ protected GrpcGkeHubStub( return builder.build(); }) .build(); + GrpcCallSettings + listBoundMembershipsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBoundMembershipsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("scope_name", String.valueOf(request.getScopeName())); + return builder.build(); + }) + .build(); GrpcCallSettings listFeaturesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listFeaturesMethodDescriptor) @@ -366,83 +916,727 @@ protected GrpcGkeHubStub( return builder.build(); }) .build(); - - this.listMembershipsCallable = - callableFactory.createUnaryCallable( - listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); - this.listMembershipsPagedCallable = - callableFactory.createPagedCallable( - listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); - this.listFeaturesCallable = - callableFactory.createUnaryCallable( - listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); - this.listFeaturesPagedCallable = - callableFactory.createPagedCallable( - listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); - this.getMembershipCallable = - callableFactory.createUnaryCallable( - getMembershipTransportSettings, settings.getMembershipSettings(), clientContext); - this.getFeatureCallable = - callableFactory.createUnaryCallable( - getFeatureTransportSettings, settings.getFeatureSettings(), clientContext); - this.createMembershipCallable = - callableFactory.createUnaryCallable( - createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); - this.createMembershipOperationCallable = - callableFactory.createOperationCallable( - createMembershipTransportSettings, - settings.createMembershipOperationSettings(), - clientContext, - operationsStub); - this.createFeatureCallable = - callableFactory.createUnaryCallable( - createFeatureTransportSettings, settings.createFeatureSettings(), clientContext); - this.createFeatureOperationCallable = - callableFactory.createOperationCallable( - createFeatureTransportSettings, - settings.createFeatureOperationSettings(), - clientContext, - operationsStub); - this.deleteMembershipCallable = - callableFactory.createUnaryCallable( - deleteMembershipTransportSettings, settings.deleteMembershipSettings(), clientContext); - this.deleteMembershipOperationCallable = - callableFactory.createOperationCallable( - deleteMembershipTransportSettings, - settings.deleteMembershipOperationSettings(), - clientContext, - operationsStub); - this.deleteFeatureCallable = - callableFactory.createUnaryCallable( - deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext); - this.deleteFeatureOperationCallable = - callableFactory.createOperationCallable( - deleteFeatureTransportSettings, - settings.deleteFeatureOperationSettings(), - clientContext, - operationsStub); - this.updateMembershipCallable = - callableFactory.createUnaryCallable( - updateMembershipTransportSettings, settings.updateMembershipSettings(), clientContext); - this.updateMembershipOperationCallable = - callableFactory.createOperationCallable( - updateMembershipTransportSettings, - settings.updateMembershipOperationSettings(), - clientContext, - operationsStub); - this.updateFeatureCallable = - callableFactory.createUnaryCallable( - updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext); - this.updateFeatureOperationCallable = + GrpcCallSettings createFleetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFleetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getFleetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFleetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateFleetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFleetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("fleet.name", String.valueOf(request.getFleet().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteFleetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFleetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listFleetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFleetsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getScopeNamespaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getScopeNamespaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createScopeNamespaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createScopeNamespaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateScopeNamespaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateScopeNamespaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "scope_namespace.name", + String.valueOf(request.getScopeNamespace().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteScopeNamespaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeNamespaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listScopeNamespacesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listScopeNamespacesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getScopeRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getScopeRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createScopeRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createScopeRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateScopeRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateScopeRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rbacrolebinding.name", + String.valueOf(request.getRbacrolebinding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteScopeRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listScopeRBACRoleBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listScopeRBACRoleBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getScopeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getScopeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createScopeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createScopeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateScopeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateScopeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("scope.name", String.valueOf(request.getScope().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteScopeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listScopesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listScopesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listPermittedScopesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPermittedScopesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getMembershipBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMembershipBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createMembershipBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMembershipBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateMembershipBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "membership_binding.name", + String.valueOf(request.getMembershipBinding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMembershipBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listMembershipBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listMembershipBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getMembershipRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMembershipRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createMembershipRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMembershipRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateMembershipRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rbacrolebinding.name", + String.valueOf(request.getRbacrolebinding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMembershipRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listMembershipRBACRoleBindingsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMembershipRBACRoleBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(generateMembershipRBACRoleBindingYAMLMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.listMembershipsCallable = + callableFactory.createUnaryCallable( + listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); + this.listMembershipsPagedCallable = + callableFactory.createPagedCallable( + listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); + this.listBoundMembershipsCallable = + callableFactory.createUnaryCallable( + listBoundMembershipsTransportSettings, + settings.listBoundMembershipsSettings(), + clientContext); + this.listBoundMembershipsPagedCallable = + callableFactory.createPagedCallable( + listBoundMembershipsTransportSettings, + settings.listBoundMembershipsSettings(), + clientContext); + this.listFeaturesCallable = + callableFactory.createUnaryCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.listFeaturesPagedCallable = + callableFactory.createPagedCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.getMembershipCallable = + callableFactory.createUnaryCallable( + getMembershipTransportSettings, settings.getMembershipSettings(), clientContext); + this.getFeatureCallable = + callableFactory.createUnaryCallable( + getFeatureTransportSettings, settings.getFeatureSettings(), clientContext); + this.createMembershipCallable = + callableFactory.createUnaryCallable( + createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); + this.createMembershipOperationCallable = + callableFactory.createOperationCallable( + createMembershipTransportSettings, + settings.createMembershipOperationSettings(), + clientContext, + operationsStub); + this.createFeatureCallable = + callableFactory.createUnaryCallable( + createFeatureTransportSettings, settings.createFeatureSettings(), clientContext); + this.createFeatureOperationCallable = + callableFactory.createOperationCallable( + createFeatureTransportSettings, + settings.createFeatureOperationSettings(), + clientContext, + operationsStub); + this.deleteMembershipCallable = + callableFactory.createUnaryCallable( + deleteMembershipTransportSettings, settings.deleteMembershipSettings(), clientContext); + this.deleteMembershipOperationCallable = + callableFactory.createOperationCallable( + deleteMembershipTransportSettings, + settings.deleteMembershipOperationSettings(), + clientContext, + operationsStub); + this.deleteFeatureCallable = + callableFactory.createUnaryCallable( + deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext); + this.deleteFeatureOperationCallable = + callableFactory.createOperationCallable( + deleteFeatureTransportSettings, + settings.deleteFeatureOperationSettings(), + clientContext, + operationsStub); + this.updateMembershipCallable = + callableFactory.createUnaryCallable( + updateMembershipTransportSettings, settings.updateMembershipSettings(), clientContext); + this.updateMembershipOperationCallable = + callableFactory.createOperationCallable( + updateMembershipTransportSettings, + settings.updateMembershipOperationSettings(), + clientContext, + operationsStub); + this.updateFeatureCallable = + callableFactory.createUnaryCallable( + updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext); + this.updateFeatureOperationCallable = + callableFactory.createOperationCallable( + updateFeatureTransportSettings, + settings.updateFeatureOperationSettings(), + clientContext, + operationsStub); + this.generateConnectManifestCallable = + callableFactory.createUnaryCallable( + generateConnectManifestTransportSettings, + settings.generateConnectManifestSettings(), + clientContext); + this.createFleetCallable = + callableFactory.createUnaryCallable( + createFleetTransportSettings, settings.createFleetSettings(), clientContext); + this.createFleetOperationCallable = + callableFactory.createOperationCallable( + createFleetTransportSettings, + settings.createFleetOperationSettings(), + clientContext, + operationsStub); + this.getFleetCallable = + callableFactory.createUnaryCallable( + getFleetTransportSettings, settings.getFleetSettings(), clientContext); + this.updateFleetCallable = + callableFactory.createUnaryCallable( + updateFleetTransportSettings, settings.updateFleetSettings(), clientContext); + this.updateFleetOperationCallable = + callableFactory.createOperationCallable( + updateFleetTransportSettings, + settings.updateFleetOperationSettings(), + clientContext, + operationsStub); + this.deleteFleetCallable = + callableFactory.createUnaryCallable( + deleteFleetTransportSettings, settings.deleteFleetSettings(), clientContext); + this.deleteFleetOperationCallable = + callableFactory.createOperationCallable( + deleteFleetTransportSettings, + settings.deleteFleetOperationSettings(), + clientContext, + operationsStub); + this.listFleetsCallable = + callableFactory.createUnaryCallable( + listFleetsTransportSettings, settings.listFleetsSettings(), clientContext); + this.listFleetsPagedCallable = + callableFactory.createPagedCallable( + listFleetsTransportSettings, settings.listFleetsSettings(), clientContext); + this.getScopeNamespaceCallable = + callableFactory.createUnaryCallable( + getScopeNamespaceTransportSettings, + settings.getScopeNamespaceSettings(), + clientContext); + this.createScopeNamespaceCallable = + callableFactory.createUnaryCallable( + createScopeNamespaceTransportSettings, + settings.createScopeNamespaceSettings(), + clientContext); + this.createScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + createScopeNamespaceTransportSettings, + settings.createScopeNamespaceOperationSettings(), + clientContext, + operationsStub); + this.updateScopeNamespaceCallable = + callableFactory.createUnaryCallable( + updateScopeNamespaceTransportSettings, + settings.updateScopeNamespaceSettings(), + clientContext); + this.updateScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + updateScopeNamespaceTransportSettings, + settings.updateScopeNamespaceOperationSettings(), + clientContext, + operationsStub); + this.deleteScopeNamespaceCallable = + callableFactory.createUnaryCallable( + deleteScopeNamespaceTransportSettings, + settings.deleteScopeNamespaceSettings(), + clientContext); + this.deleteScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + deleteScopeNamespaceTransportSettings, + settings.deleteScopeNamespaceOperationSettings(), + clientContext, + operationsStub); + this.listScopeNamespacesCallable = + callableFactory.createUnaryCallable( + listScopeNamespacesTransportSettings, + settings.listScopeNamespacesSettings(), + clientContext); + this.listScopeNamespacesPagedCallable = + callableFactory.createPagedCallable( + listScopeNamespacesTransportSettings, + settings.listScopeNamespacesSettings(), + clientContext); + this.getScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + getScopeRBACRoleBindingTransportSettings, + settings.getScopeRBACRoleBindingSettings(), + clientContext); + this.createScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + createScopeRBACRoleBindingTransportSettings, + settings.createScopeRBACRoleBindingSettings(), + clientContext); + this.createScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + createScopeRBACRoleBindingTransportSettings, + settings.createScopeRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.updateScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + updateScopeRBACRoleBindingTransportSettings, + settings.updateScopeRBACRoleBindingSettings(), + clientContext); + this.updateScopeRBACRoleBindingOperationCallable = callableFactory.createOperationCallable( - updateFeatureTransportSettings, - settings.updateFeatureOperationSettings(), + updateScopeRBACRoleBindingTransportSettings, + settings.updateScopeRBACRoleBindingOperationSettings(), clientContext, operationsStub); - this.generateConnectManifestCallable = + this.deleteScopeRBACRoleBindingCallable = callableFactory.createUnaryCallable( - generateConnectManifestTransportSettings, - settings.generateConnectManifestSettings(), + deleteScopeRBACRoleBindingTransportSettings, + settings.deleteScopeRBACRoleBindingSettings(), + clientContext); + this.deleteScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + deleteScopeRBACRoleBindingTransportSettings, + settings.deleteScopeRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.listScopeRBACRoleBindingsCallable = + callableFactory.createUnaryCallable( + listScopeRBACRoleBindingsTransportSettings, + settings.listScopeRBACRoleBindingsSettings(), + clientContext); + this.listScopeRBACRoleBindingsPagedCallable = + callableFactory.createPagedCallable( + listScopeRBACRoleBindingsTransportSettings, + settings.listScopeRBACRoleBindingsSettings(), + clientContext); + this.getScopeCallable = + callableFactory.createUnaryCallable( + getScopeTransportSettings, settings.getScopeSettings(), clientContext); + this.createScopeCallable = + callableFactory.createUnaryCallable( + createScopeTransportSettings, settings.createScopeSettings(), clientContext); + this.createScopeOperationCallable = + callableFactory.createOperationCallable( + createScopeTransportSettings, + settings.createScopeOperationSettings(), + clientContext, + operationsStub); + this.updateScopeCallable = + callableFactory.createUnaryCallable( + updateScopeTransportSettings, settings.updateScopeSettings(), clientContext); + this.updateScopeOperationCallable = + callableFactory.createOperationCallable( + updateScopeTransportSettings, + settings.updateScopeOperationSettings(), + clientContext, + operationsStub); + this.deleteScopeCallable = + callableFactory.createUnaryCallable( + deleteScopeTransportSettings, settings.deleteScopeSettings(), clientContext); + this.deleteScopeOperationCallable = + callableFactory.createOperationCallable( + deleteScopeTransportSettings, + settings.deleteScopeOperationSettings(), + clientContext, + operationsStub); + this.listScopesCallable = + callableFactory.createUnaryCallable( + listScopesTransportSettings, settings.listScopesSettings(), clientContext); + this.listScopesPagedCallable = + callableFactory.createPagedCallable( + listScopesTransportSettings, settings.listScopesSettings(), clientContext); + this.listPermittedScopesCallable = + callableFactory.createUnaryCallable( + listPermittedScopesTransportSettings, + settings.listPermittedScopesSettings(), + clientContext); + this.listPermittedScopesPagedCallable = + callableFactory.createPagedCallable( + listPermittedScopesTransportSettings, + settings.listPermittedScopesSettings(), + clientContext); + this.getMembershipBindingCallable = + callableFactory.createUnaryCallable( + getMembershipBindingTransportSettings, + settings.getMembershipBindingSettings(), + clientContext); + this.createMembershipBindingCallable = + callableFactory.createUnaryCallable( + createMembershipBindingTransportSettings, + settings.createMembershipBindingSettings(), + clientContext); + this.createMembershipBindingOperationCallable = + callableFactory.createOperationCallable( + createMembershipBindingTransportSettings, + settings.createMembershipBindingOperationSettings(), + clientContext, + operationsStub); + this.updateMembershipBindingCallable = + callableFactory.createUnaryCallable( + updateMembershipBindingTransportSettings, + settings.updateMembershipBindingSettings(), + clientContext); + this.updateMembershipBindingOperationCallable = + callableFactory.createOperationCallable( + updateMembershipBindingTransportSettings, + settings.updateMembershipBindingOperationSettings(), + clientContext, + operationsStub); + this.deleteMembershipBindingCallable = + callableFactory.createUnaryCallable( + deleteMembershipBindingTransportSettings, + settings.deleteMembershipBindingSettings(), + clientContext); + this.deleteMembershipBindingOperationCallable = + callableFactory.createOperationCallable( + deleteMembershipBindingTransportSettings, + settings.deleteMembershipBindingOperationSettings(), + clientContext, + operationsStub); + this.listMembershipBindingsCallable = + callableFactory.createUnaryCallable( + listMembershipBindingsTransportSettings, + settings.listMembershipBindingsSettings(), + clientContext); + this.listMembershipBindingsPagedCallable = + callableFactory.createPagedCallable( + listMembershipBindingsTransportSettings, + settings.listMembershipBindingsSettings(), + clientContext); + this.getMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + getMembershipRBACRoleBindingTransportSettings, + settings.getMembershipRBACRoleBindingSettings(), + clientContext); + this.createMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + createMembershipRBACRoleBindingTransportSettings, + settings.createMembershipRBACRoleBindingSettings(), + clientContext); + this.createMembershipRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + createMembershipRBACRoleBindingTransportSettings, + settings.createMembershipRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.updateMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + updateMembershipRBACRoleBindingTransportSettings, + settings.updateMembershipRBACRoleBindingSettings(), + clientContext); + this.updateMembershipRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + updateMembershipRBACRoleBindingTransportSettings, + settings.updateMembershipRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.deleteMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + deleteMembershipRBACRoleBindingTransportSettings, + settings.deleteMembershipRBACRoleBindingSettings(), + clientContext); + this.deleteMembershipRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + deleteMembershipRBACRoleBindingTransportSettings, + settings.deleteMembershipRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.listMembershipRBACRoleBindingsCallable = + callableFactory.createUnaryCallable( + listMembershipRBACRoleBindingsTransportSettings, + settings.listMembershipRBACRoleBindingsSettings(), + clientContext); + this.listMembershipRBACRoleBindingsPagedCallable = + callableFactory.createPagedCallable( + listMembershipRBACRoleBindingsTransportSettings, + settings.listMembershipRBACRoleBindingsSettings(), + clientContext); + this.generateMembershipRBACRoleBindingYAMLCallable = + callableFactory.createUnaryCallable( + generateMembershipRBACRoleBindingYAMLTransportSettings, + settings.generateMembershipRBACRoleBindingYAMLSettings(), clientContext); this.backgroundResources = @@ -464,6 +1658,18 @@ public UnaryCallable listMember return listMembershipsPagedCallable; } + @Override + public UnaryCallable + listBoundMembershipsCallable() { + return listBoundMembershipsCallable; + } + + @Override + public UnaryCallable + listBoundMembershipsPagedCallable() { + return listBoundMembershipsPagedCallable; + } + @Override public UnaryCallable listFeaturesCallable() { return listFeaturesCallable; @@ -556,6 +1762,338 @@ public UnaryCallable updateFeatureCallable() { return generateConnectManifestCallable; } + @Override + public UnaryCallable createFleetCallable() { + return createFleetCallable; + } + + @Override + public OperationCallable + createFleetOperationCallable() { + return createFleetOperationCallable; + } + + @Override + public UnaryCallable getFleetCallable() { + return getFleetCallable; + } + + @Override + public UnaryCallable updateFleetCallable() { + return updateFleetCallable; + } + + @Override + public OperationCallable + updateFleetOperationCallable() { + return updateFleetOperationCallable; + } + + @Override + public UnaryCallable deleteFleetCallable() { + return deleteFleetCallable; + } + + @Override + public OperationCallable + deleteFleetOperationCallable() { + return deleteFleetOperationCallable; + } + + @Override + public UnaryCallable listFleetsCallable() { + return listFleetsCallable; + } + + @Override + public UnaryCallable listFleetsPagedCallable() { + return listFleetsPagedCallable; + } + + @Override + public UnaryCallable getScopeNamespaceCallable() { + return getScopeNamespaceCallable; + } + + @Override + public UnaryCallable createScopeNamespaceCallable() { + return createScopeNamespaceCallable; + } + + @Override + public OperationCallable + createScopeNamespaceOperationCallable() { + return createScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable updateScopeNamespaceCallable() { + return updateScopeNamespaceCallable; + } + + @Override + public OperationCallable + updateScopeNamespaceOperationCallable() { + return updateScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable deleteScopeNamespaceCallable() { + return deleteScopeNamespaceCallable; + } + + @Override + public OperationCallable + deleteScopeNamespaceOperationCallable() { + return deleteScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable + listScopeNamespacesCallable() { + return listScopeNamespacesCallable; + } + + @Override + public UnaryCallable + listScopeNamespacesPagedCallable() { + return listScopeNamespacesPagedCallable; + } + + @Override + public UnaryCallable + getScopeRBACRoleBindingCallable() { + return getScopeRBACRoleBindingCallable; + } + + @Override + public UnaryCallable + createScopeRBACRoleBindingCallable() { + return createScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + createScopeRBACRoleBindingOperationCallable() { + return createScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + updateScopeRBACRoleBindingCallable() { + return updateScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + updateScopeRBACRoleBindingOperationCallable() { + return updateScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteScopeRBACRoleBindingCallable() { + return deleteScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + deleteScopeRBACRoleBindingOperationCallable() { + return deleteScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + listScopeRBACRoleBindingsCallable() { + return listScopeRBACRoleBindingsCallable; + } + + @Override + public UnaryCallable + listScopeRBACRoleBindingsPagedCallable() { + return listScopeRBACRoleBindingsPagedCallable; + } + + @Override + public UnaryCallable getScopeCallable() { + return getScopeCallable; + } + + @Override + public UnaryCallable createScopeCallable() { + return createScopeCallable; + } + + @Override + public OperationCallable + createScopeOperationCallable() { + return createScopeOperationCallable; + } + + @Override + public UnaryCallable updateScopeCallable() { + return updateScopeCallable; + } + + @Override + public OperationCallable + updateScopeOperationCallable() { + return updateScopeOperationCallable; + } + + @Override + public UnaryCallable deleteScopeCallable() { + return deleteScopeCallable; + } + + @Override + public OperationCallable + deleteScopeOperationCallable() { + return deleteScopeOperationCallable; + } + + @Override + public UnaryCallable listScopesCallable() { + return listScopesCallable; + } + + @Override + public UnaryCallable listScopesPagedCallable() { + return listScopesPagedCallable; + } + + @Override + public UnaryCallable + listPermittedScopesCallable() { + return listPermittedScopesCallable; + } + + @Override + public UnaryCallable + listPermittedScopesPagedCallable() { + return listPermittedScopesPagedCallable; + } + + @Override + public UnaryCallable + getMembershipBindingCallable() { + return getMembershipBindingCallable; + } + + @Override + public UnaryCallable + createMembershipBindingCallable() { + return createMembershipBindingCallable; + } + + @Override + public OperationCallable + createMembershipBindingOperationCallable() { + return createMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + updateMembershipBindingCallable() { + return updateMembershipBindingCallable; + } + + @Override + public OperationCallable + updateMembershipBindingOperationCallable() { + return updateMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteMembershipBindingCallable() { + return deleteMembershipBindingCallable; + } + + @Override + public OperationCallable + deleteMembershipBindingOperationCallable() { + return deleteMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + listMembershipBindingsCallable() { + return listMembershipBindingsCallable; + } + + @Override + public UnaryCallable + listMembershipBindingsPagedCallable() { + return listMembershipBindingsPagedCallable; + } + + @Override + public UnaryCallable + getMembershipRBACRoleBindingCallable() { + return getMembershipRBACRoleBindingCallable; + } + + @Override + public UnaryCallable + createMembershipRBACRoleBindingCallable() { + return createMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable() { + return createMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + updateMembershipRBACRoleBindingCallable() { + return updateMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable() { + return updateMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteMembershipRBACRoleBindingCallable() { + return deleteMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable + deleteMembershipRBACRoleBindingOperationCallable() { + return deleteMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable() { + return listMembershipRBACRoleBindingsCallable; + } + + @Override + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable() { + return listMembershipRBACRoleBindingsPagedCallable; + } + + @Override + public UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable() { + return generateMembershipRBACRoleBindingYAMLCallable; + } + @Override public final void close() { try { diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java index ddf5edd0261f..05756aaec874 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1.stub; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.HttpRule; import com.google.api.core.InternalApi; @@ -36,22 +44,69 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.CreateScopeRequest; import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.Fleet; import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; import com.google.cloud.gkehub.v1.ListFeaturesRequest; import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; import com.google.cloud.gkehub.v1.ListMembershipsRequest; import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.Namespace; import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.Scope; import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -76,8 +131,13 @@ public class HttpJsonGkeHubStub extends GkeHubStub { TypeRegistry.newBuilder() .add(Empty.getDescriptor()) .add(OperationMetadata.getDescriptor()) + .add(Scope.getDescriptor()) + .add(Fleet.getDescriptor()) .add(Feature.getDescriptor()) + .add(MembershipBinding.getDescriptor()) + .add(Namespace.getDescriptor()) .add(Membership.getDescriptor()) + .add(RBACRoleBinding.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -118,6 +178,45 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .build()) .build(); + private static final ApiMethodDescriptor< + ListBoundMembershipsRequest, ListBoundMembershipsResponse> + listBoundMembershipsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListBoundMemberships") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{scopeName=projects/*/locations/*/scopes/*}:listMemberships", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "scopeName", request.getScopeName()); + 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(ListBoundMembershipsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listFeaturesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -144,6 +243,8 @@ public class HttpJsonGkeHubStub extends GkeHubStub { serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "returnPartialSuccess", request.getReturnPartialSuccess()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -211,6 +312,8 @@ public class HttpJsonGkeHubStub extends GkeHubStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "returnPartialSuccess", request.getReturnPartialSuccess()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -515,83 +618,1441 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .build()) .build(); - private final UnaryCallable - listMembershipsCallable; - private final UnaryCallable - listMembershipsPagedCallable; - private final UnaryCallable listFeaturesCallable; - private final UnaryCallable - listFeaturesPagedCallable; - private final UnaryCallable getMembershipCallable; - private final UnaryCallable getFeatureCallable; - private final UnaryCallable createMembershipCallable; - private final OperationCallable - createMembershipOperationCallable; - private final UnaryCallable createFeatureCallable; - private final OperationCallable - createFeatureOperationCallable; - private final UnaryCallable deleteMembershipCallable; - private final OperationCallable - deleteMembershipOperationCallable; - private final UnaryCallable deleteFeatureCallable; - private final OperationCallable - deleteFeatureOperationCallable; - private final UnaryCallable updateMembershipCallable; - private final OperationCallable - updateMembershipOperationCallable; - private final UnaryCallable updateFeatureCallable; - private final OperationCallable - updateFeatureOperationCallable; - private final UnaryCallable - generateConnectManifestCallable; + private static final ApiMethodDescriptor + createFleetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateFleet") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/fleets", + 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("fleet", request.getFleet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateFleetRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; + private static final ApiMethodDescriptor getFleetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetFleet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/fleets/*}", + 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(Fleet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); - public static final HttpJsonGkeHubStub create(GkeHubStubSettings settings) throws IOException { - return new HttpJsonGkeHubStub(settings, ClientContext.create(settings)); - } + private static final ApiMethodDescriptor + updateFleetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateFleet") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{fleet.name=projects/*/locations/*/fleets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "fleet.name", request.getFleet().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("fleet", request.getFleet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateFleetRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); - public static final HttpJsonGkeHubStub create(ClientContext clientContext) throws IOException { - return new HttpJsonGkeHubStub(GkeHubStubSettings.newHttpJsonBuilder().build(), clientContext); - } + private static final ApiMethodDescriptor + deleteFleetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteFleet") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/fleets/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteFleetRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); - public static final HttpJsonGkeHubStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonGkeHubStub( - GkeHubStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } + private static final ApiMethodDescriptor + listFleetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListFleets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/fleets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1/{parent=organizations/*/locations/*}/fleets") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + 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(ListFleetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); - /** - * Constructs an instance of HttpJsonGkeHubStub, 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 HttpJsonGkeHubStub(GkeHubStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonGkeHubCallableFactory()); - } + private static final ApiMethodDescriptor + getScopeNamespaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScopeNamespace") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*/namespaces/*}", + 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(Namespace.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); - /** - * Constructs an instance of HttpJsonGkeHubStub, 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 HttpJsonGkeHubStub( - GkeHubStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create( - clientContext, - callableFactory, - typeRegistry, - ImmutableMap.builder() - .put( - "google.longrunning.Operations.CancelOperation", + private static final ApiMethodDescriptor + createScopeNamespaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScopeNamespace") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/scopes/*}/namespaces", + 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, "scopeNamespaceId", request.getScopeNamespaceId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("scopeNamespace", request.getScopeNamespace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateScopeNamespaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateScopeNamespaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScopeNamespace") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{scopeNamespace.name=projects/*/locations/*/scopes/*/namespaces/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "scopeNamespace.name", + request.getScopeNamespace().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("scopeNamespace", request.getScopeNamespace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateScopeNamespaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteScopeNamespaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScopeNamespace") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*/namespaces/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteScopeNamespaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listScopeNamespacesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopeNamespaces") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/scopes/*}/namespaces", + 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, "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(ListScopeNamespacesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getScopeRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScopeRBACRoleBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*/rbacrolebindings/*}", + 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(RBACRoleBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createScopeRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScopeRBACRoleBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings", + 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, "rbacrolebindingId", request.getRbacrolebindingId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateScopeRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateScopeRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScopeRBACRoleBinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{rbacrolebinding.name=projects/*/locations/*/scopes/*/rbacrolebindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "rbacrolebinding.name", + request.getRbacrolebinding().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("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateScopeRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteScopeRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScopeRBACRoleBinding") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*/rbacrolebindings/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteScopeRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsResponse> + listScopeRBACRoleBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopeRBACRoleBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings", + 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, "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(ListScopeRBACRoleBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getScopeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScope") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*}", + 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(Scope.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createScopeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScope") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/scopes", + 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, "scopeId", request.getScopeId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("scope", request.getScope(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateScopeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateScopeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScope") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{scope.name=projects/*/locations/*/scopes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "scope.name", request.getScope().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("scope", request.getScope(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateScopeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteScopeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScope") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteScopeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listScopesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/scopes", + 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, "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(ListScopesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listPermittedScopesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListPermittedScopes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/scopes:listPermitted", + 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, "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(ListPermittedScopesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMembershipBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetMembershipBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/memberships/*/bindings/*}", + 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(MembershipBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createMembershipBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateMembershipBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/bindings", + 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, "membershipBindingId", request.getMembershipBindingId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "membershipBinding", request.getMembershipBinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateMembershipBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateMembershipBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateMembershipBinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{membershipBinding.name=projects/*/locations/*/memberships/*/bindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "membershipBinding.name", + request.getMembershipBinding().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( + "membershipBinding", request.getMembershipBinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateMembershipBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteMembershipBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteMembershipBinding") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/memberships/*/bindings/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteMembershipBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListMembershipBindingsRequest, ListMembershipBindingsResponse> + listMembershipBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListMembershipBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/bindings", + 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(ListMembershipBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMembershipRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetMembershipRBACRoleBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/memberships/*/rbacrolebindings/*}", + 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(RBACRoleBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createMembershipRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateMembershipRBACRoleBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings", + 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, "rbacrolebindingId", request.getRbacrolebindingId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateMembershipRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateMembershipRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateMembershipRBACRoleBinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{rbacrolebinding.name=projects/*/locations/*/memberships/*/rbacrolebindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "rbacrolebinding.name", + request.getRbacrolebinding().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("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateMembershipRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteMembershipRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteMembershipRBACRoleBinding") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/memberships/*/rbacrolebindings/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteMembershipRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListMembershipRBACRoleBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings", + 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, "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( + ListMembershipRBACRoleBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.gkehub.v1.GkeHub/GenerateMembershipRBACRoleBindingYAML") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + 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, "rbacrolebindingId", request.getRbacrolebindingId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + GenerateMembershipRBACRoleBindingYAMLResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listMembershipsCallable; + private final UnaryCallable + listMembershipsPagedCallable; + private final UnaryCallable + listBoundMembershipsCallable; + private final UnaryCallable + listBoundMembershipsPagedCallable; + private final UnaryCallable listFeaturesCallable; + private final UnaryCallable + listFeaturesPagedCallable; + private final UnaryCallable getMembershipCallable; + private final UnaryCallable getFeatureCallable; + private final UnaryCallable createMembershipCallable; + private final OperationCallable + createMembershipOperationCallable; + private final UnaryCallable createFeatureCallable; + private final OperationCallable + createFeatureOperationCallable; + private final UnaryCallable deleteMembershipCallable; + private final OperationCallable + deleteMembershipOperationCallable; + private final UnaryCallable deleteFeatureCallable; + private final OperationCallable + deleteFeatureOperationCallable; + private final UnaryCallable updateMembershipCallable; + private final OperationCallable + updateMembershipOperationCallable; + private final UnaryCallable updateFeatureCallable; + private final OperationCallable + updateFeatureOperationCallable; + private final UnaryCallable + generateConnectManifestCallable; + private final UnaryCallable createFleetCallable; + private final OperationCallable + createFleetOperationCallable; + private final UnaryCallable getFleetCallable; + private final UnaryCallable updateFleetCallable; + private final OperationCallable + updateFleetOperationCallable; + private final UnaryCallable deleteFleetCallable; + private final OperationCallable + deleteFleetOperationCallable; + private final UnaryCallable listFleetsCallable; + private final UnaryCallable listFleetsPagedCallable; + private final UnaryCallable getScopeNamespaceCallable; + private final UnaryCallable createScopeNamespaceCallable; + private final OperationCallable + createScopeNamespaceOperationCallable; + private final UnaryCallable updateScopeNamespaceCallable; + private final OperationCallable + updateScopeNamespaceOperationCallable; + private final UnaryCallable deleteScopeNamespaceCallable; + private final OperationCallable + deleteScopeNamespaceOperationCallable; + private final UnaryCallable + listScopeNamespacesCallable; + private final UnaryCallable + listScopeNamespacesPagedCallable; + private final UnaryCallable + getScopeRBACRoleBindingCallable; + private final UnaryCallable + createScopeRBACRoleBindingCallable; + private final OperationCallable< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + updateScopeRBACRoleBindingCallable; + private final OperationCallable< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + deleteScopeRBACRoleBindingCallable; + private final OperationCallable + deleteScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + listScopeRBACRoleBindingsCallable; + private final UnaryCallable< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsPagedCallable; + private final UnaryCallable getScopeCallable; + private final UnaryCallable createScopeCallable; + private final OperationCallable + createScopeOperationCallable; + private final UnaryCallable updateScopeCallable; + private final OperationCallable + updateScopeOperationCallable; + private final UnaryCallable deleteScopeCallable; + private final OperationCallable + deleteScopeOperationCallable; + private final UnaryCallable listScopesCallable; + private final UnaryCallable listScopesPagedCallable; + private final UnaryCallable + listPermittedScopesCallable; + private final UnaryCallable + listPermittedScopesPagedCallable; + private final UnaryCallable + getMembershipBindingCallable; + private final UnaryCallable + createMembershipBindingCallable; + private final OperationCallable< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationCallable; + private final UnaryCallable + updateMembershipBindingCallable; + private final OperationCallable< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationCallable; + private final UnaryCallable + deleteMembershipBindingCallable; + private final OperationCallable + deleteMembershipBindingOperationCallable; + private final UnaryCallable + listMembershipBindingsCallable; + private final UnaryCallable + listMembershipBindingsPagedCallable; + private final UnaryCallable + getMembershipRBACRoleBindingCallable; + private final UnaryCallable + createMembershipRBACRoleBindingCallable; + private final OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable + updateMembershipRBACRoleBindingCallable; + private final OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable + deleteMembershipRBACRoleBindingCallable; + private final OperationCallable + deleteMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable; + private final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable; + private final UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonGkeHubStub create(GkeHubStubSettings settings) throws IOException { + return new HttpJsonGkeHubStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonGkeHubStub create(ClientContext clientContext) throws IOException { + return new HttpJsonGkeHubStub(GkeHubStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonGkeHubStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonGkeHubStub( + GkeHubStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonGkeHubStub, 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 HttpJsonGkeHubStub(GkeHubStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonGkeHubCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonGkeHubStub, 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 HttpJsonGkeHubStub( + GkeHubStubSettings 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("/v1/{name=projects/*/locations/*/operations/*}:cancel") .build()) @@ -624,6 +2085,19 @@ protected HttpJsonGkeHubStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listBoundMembershipsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listBoundMembershipsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("scope_name", String.valueOf(request.getScopeName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listFeaturesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listFeaturesMethodDescriptor) @@ -664,13 +2138,272 @@ protected HttpJsonGkeHubStub( .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createFeatureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFeatureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteMembershipTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteFeatureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFeatureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateMembershipTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateFeatureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFeatureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + generateConnectManifestTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(generateConnectManifestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createFleetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFleetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getFleetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFleetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateFleetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFleetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("fleet.name", String.valueOf(request.getFleet().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteFleetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFleetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listFleetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listFleetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getScopeNamespaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getScopeNamespaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createScopeNamespaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createScopeNamespaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateScopeNamespaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateScopeNamespaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "scope_namespace.name", + String.valueOf(request.getScopeNamespace().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteScopeNamespaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeNamespaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listScopeNamespacesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listScopeNamespacesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getScopeRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getScopeRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createScopeRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createScopeRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateScopeRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateScopeRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rbacrolebinding.name", + String.valueOf(request.getRbacrolebinding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteScopeRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listScopeRBACRoleBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listScopeRBACRoleBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getScopeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getScopeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); - HttpJsonCallSettings createFeatureTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createFeatureMethodDescriptor) + HttpJsonCallSettings createScopeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createScopeMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -679,31 +2412,20 @@ protected HttpJsonGkeHubStub( return builder.build(); }) .build(); - HttpJsonCallSettings deleteMembershipTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteMembershipMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteFeatureTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteFeatureMethodDescriptor) + HttpJsonCallSettings updateScopeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateScopeMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("scope.name", String.valueOf(request.getScope().getName())); return builder.build(); }) .build(); - HttpJsonCallSettings updateMembershipTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateMembershipMethodDescriptor) + HttpJsonCallSettings deleteScopeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -712,22 +2434,135 @@ protected HttpJsonGkeHubStub( return builder.build(); }) .build(); - HttpJsonCallSettings updateFeatureTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateFeatureMethodDescriptor) + HttpJsonCallSettings listScopesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listScopesMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); - HttpJsonCallSettings - generateConnectManifestTransportSettings = + HttpJsonCallSettings + listPermittedScopesTransportSettings = HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(generateConnectManifestMethodDescriptor) + .newBuilder() + .setMethodDescriptor(listPermittedScopesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getMembershipBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMembershipBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createMembershipBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createMembershipBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateMembershipBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "membership_binding.name", + String.valueOf(request.getMembershipBinding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteMembershipBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listMembershipBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listMembershipBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getMembershipRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMembershipRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createMembershipRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createMembershipRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateMembershipRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rbacrolebinding.name", + String.valueOf(request.getRbacrolebinding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteMembershipRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipRBACRoleBindingMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -736,83 +2571,404 @@ protected HttpJsonGkeHubStub( return builder.build(); }) .build(); + HttpJsonCallSettings< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listMembershipRBACRoleBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateMembershipRBACRoleBindingYAMLMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.listMembershipsCallable = callableFactory.createUnaryCallable( - listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); - this.listMembershipsPagedCallable = + listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); + this.listMembershipsPagedCallable = + callableFactory.createPagedCallable( + listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); + this.listBoundMembershipsCallable = + callableFactory.createUnaryCallable( + listBoundMembershipsTransportSettings, + settings.listBoundMembershipsSettings(), + clientContext); + this.listBoundMembershipsPagedCallable = + callableFactory.createPagedCallable( + listBoundMembershipsTransportSettings, + settings.listBoundMembershipsSettings(), + clientContext); + this.listFeaturesCallable = + callableFactory.createUnaryCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.listFeaturesPagedCallable = + callableFactory.createPagedCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.getMembershipCallable = + callableFactory.createUnaryCallable( + getMembershipTransportSettings, settings.getMembershipSettings(), clientContext); + this.getFeatureCallable = + callableFactory.createUnaryCallable( + getFeatureTransportSettings, settings.getFeatureSettings(), clientContext); + this.createMembershipCallable = + callableFactory.createUnaryCallable( + createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); + this.createMembershipOperationCallable = + callableFactory.createOperationCallable( + createMembershipTransportSettings, + settings.createMembershipOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createFeatureCallable = + callableFactory.createUnaryCallable( + createFeatureTransportSettings, settings.createFeatureSettings(), clientContext); + this.createFeatureOperationCallable = + callableFactory.createOperationCallable( + createFeatureTransportSettings, + settings.createFeatureOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteMembershipCallable = + callableFactory.createUnaryCallable( + deleteMembershipTransportSettings, settings.deleteMembershipSettings(), clientContext); + this.deleteMembershipOperationCallable = + callableFactory.createOperationCallable( + deleteMembershipTransportSettings, + settings.deleteMembershipOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteFeatureCallable = + callableFactory.createUnaryCallable( + deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext); + this.deleteFeatureOperationCallable = + callableFactory.createOperationCallable( + deleteFeatureTransportSettings, + settings.deleteFeatureOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateMembershipCallable = + callableFactory.createUnaryCallable( + updateMembershipTransportSettings, settings.updateMembershipSettings(), clientContext); + this.updateMembershipOperationCallable = + callableFactory.createOperationCallable( + updateMembershipTransportSettings, + settings.updateMembershipOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateFeatureCallable = + callableFactory.createUnaryCallable( + updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext); + this.updateFeatureOperationCallable = + callableFactory.createOperationCallable( + updateFeatureTransportSettings, + settings.updateFeatureOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateConnectManifestCallable = + callableFactory.createUnaryCallable( + generateConnectManifestTransportSettings, + settings.generateConnectManifestSettings(), + clientContext); + this.createFleetCallable = + callableFactory.createUnaryCallable( + createFleetTransportSettings, settings.createFleetSettings(), clientContext); + this.createFleetOperationCallable = + callableFactory.createOperationCallable( + createFleetTransportSettings, + settings.createFleetOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getFleetCallable = + callableFactory.createUnaryCallable( + getFleetTransportSettings, settings.getFleetSettings(), clientContext); + this.updateFleetCallable = + callableFactory.createUnaryCallable( + updateFleetTransportSettings, settings.updateFleetSettings(), clientContext); + this.updateFleetOperationCallable = + callableFactory.createOperationCallable( + updateFleetTransportSettings, + settings.updateFleetOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteFleetCallable = + callableFactory.createUnaryCallable( + deleteFleetTransportSettings, settings.deleteFleetSettings(), clientContext); + this.deleteFleetOperationCallable = + callableFactory.createOperationCallable( + deleteFleetTransportSettings, + settings.deleteFleetOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listFleetsCallable = + callableFactory.createUnaryCallable( + listFleetsTransportSettings, settings.listFleetsSettings(), clientContext); + this.listFleetsPagedCallable = + callableFactory.createPagedCallable( + listFleetsTransportSettings, settings.listFleetsSettings(), clientContext); + this.getScopeNamespaceCallable = + callableFactory.createUnaryCallable( + getScopeNamespaceTransportSettings, + settings.getScopeNamespaceSettings(), + clientContext); + this.createScopeNamespaceCallable = + callableFactory.createUnaryCallable( + createScopeNamespaceTransportSettings, + settings.createScopeNamespaceSettings(), + clientContext); + this.createScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + createScopeNamespaceTransportSettings, + settings.createScopeNamespaceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateScopeNamespaceCallable = + callableFactory.createUnaryCallable( + updateScopeNamespaceTransportSettings, + settings.updateScopeNamespaceSettings(), + clientContext); + this.updateScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + updateScopeNamespaceTransportSettings, + settings.updateScopeNamespaceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteScopeNamespaceCallable = + callableFactory.createUnaryCallable( + deleteScopeNamespaceTransportSettings, + settings.deleteScopeNamespaceSettings(), + clientContext); + this.deleteScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + deleteScopeNamespaceTransportSettings, + settings.deleteScopeNamespaceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listScopeNamespacesCallable = + callableFactory.createUnaryCallable( + listScopeNamespacesTransportSettings, + settings.listScopeNamespacesSettings(), + clientContext); + this.listScopeNamespacesPagedCallable = + callableFactory.createPagedCallable( + listScopeNamespacesTransportSettings, + settings.listScopeNamespacesSettings(), + clientContext); + this.getScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + getScopeRBACRoleBindingTransportSettings, + settings.getScopeRBACRoleBindingSettings(), + clientContext); + this.createScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + createScopeRBACRoleBindingTransportSettings, + settings.createScopeRBACRoleBindingSettings(), + clientContext); + this.createScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + createScopeRBACRoleBindingTransportSettings, + settings.createScopeRBACRoleBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + updateScopeRBACRoleBindingTransportSettings, + settings.updateScopeRBACRoleBindingSettings(), + clientContext); + this.updateScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + updateScopeRBACRoleBindingTransportSettings, + settings.updateScopeRBACRoleBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + deleteScopeRBACRoleBindingTransportSettings, + settings.deleteScopeRBACRoleBindingSettings(), + clientContext); + this.deleteScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + deleteScopeRBACRoleBindingTransportSettings, + settings.deleteScopeRBACRoleBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listScopeRBACRoleBindingsCallable = + callableFactory.createUnaryCallable( + listScopeRBACRoleBindingsTransportSettings, + settings.listScopeRBACRoleBindingsSettings(), + clientContext); + this.listScopeRBACRoleBindingsPagedCallable = callableFactory.createPagedCallable( - listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); - this.listFeaturesCallable = + listScopeRBACRoleBindingsTransportSettings, + settings.listScopeRBACRoleBindingsSettings(), + clientContext); + this.getScopeCallable = callableFactory.createUnaryCallable( - listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); - this.listFeaturesPagedCallable = + getScopeTransportSettings, settings.getScopeSettings(), clientContext); + this.createScopeCallable = + callableFactory.createUnaryCallable( + createScopeTransportSettings, settings.createScopeSettings(), clientContext); + this.createScopeOperationCallable = + callableFactory.createOperationCallable( + createScopeTransportSettings, + settings.createScopeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateScopeCallable = + callableFactory.createUnaryCallable( + updateScopeTransportSettings, settings.updateScopeSettings(), clientContext); + this.updateScopeOperationCallable = + callableFactory.createOperationCallable( + updateScopeTransportSettings, + settings.updateScopeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteScopeCallable = + callableFactory.createUnaryCallable( + deleteScopeTransportSettings, settings.deleteScopeSettings(), clientContext); + this.deleteScopeOperationCallable = + callableFactory.createOperationCallable( + deleteScopeTransportSettings, + settings.deleteScopeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listScopesCallable = + callableFactory.createUnaryCallable( + listScopesTransportSettings, settings.listScopesSettings(), clientContext); + this.listScopesPagedCallable = callableFactory.createPagedCallable( - listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); - this.getMembershipCallable = + listScopesTransportSettings, settings.listScopesSettings(), clientContext); + this.listPermittedScopesCallable = callableFactory.createUnaryCallable( - getMembershipTransportSettings, settings.getMembershipSettings(), clientContext); - this.getFeatureCallable = + listPermittedScopesTransportSettings, + settings.listPermittedScopesSettings(), + clientContext); + this.listPermittedScopesPagedCallable = + callableFactory.createPagedCallable( + listPermittedScopesTransportSettings, + settings.listPermittedScopesSettings(), + clientContext); + this.getMembershipBindingCallable = callableFactory.createUnaryCallable( - getFeatureTransportSettings, settings.getFeatureSettings(), clientContext); - this.createMembershipCallable = + getMembershipBindingTransportSettings, + settings.getMembershipBindingSettings(), + clientContext); + this.createMembershipBindingCallable = callableFactory.createUnaryCallable( - createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); - this.createMembershipOperationCallable = + createMembershipBindingTransportSettings, + settings.createMembershipBindingSettings(), + clientContext); + this.createMembershipBindingOperationCallable = callableFactory.createOperationCallable( - createMembershipTransportSettings, - settings.createMembershipOperationSettings(), + createMembershipBindingTransportSettings, + settings.createMembershipBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.createFeatureCallable = + this.updateMembershipBindingCallable = callableFactory.createUnaryCallable( - createFeatureTransportSettings, settings.createFeatureSettings(), clientContext); - this.createFeatureOperationCallable = + updateMembershipBindingTransportSettings, + settings.updateMembershipBindingSettings(), + clientContext); + this.updateMembershipBindingOperationCallable = callableFactory.createOperationCallable( - createFeatureTransportSettings, - settings.createFeatureOperationSettings(), + updateMembershipBindingTransportSettings, + settings.updateMembershipBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.deleteMembershipCallable = + this.deleteMembershipBindingCallable = callableFactory.createUnaryCallable( - deleteMembershipTransportSettings, settings.deleteMembershipSettings(), clientContext); - this.deleteMembershipOperationCallable = + deleteMembershipBindingTransportSettings, + settings.deleteMembershipBindingSettings(), + clientContext); + this.deleteMembershipBindingOperationCallable = callableFactory.createOperationCallable( - deleteMembershipTransportSettings, - settings.deleteMembershipOperationSettings(), + deleteMembershipBindingTransportSettings, + settings.deleteMembershipBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.deleteFeatureCallable = + this.listMembershipBindingsCallable = callableFactory.createUnaryCallable( - deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext); - this.deleteFeatureOperationCallable = + listMembershipBindingsTransportSettings, + settings.listMembershipBindingsSettings(), + clientContext); + this.listMembershipBindingsPagedCallable = + callableFactory.createPagedCallable( + listMembershipBindingsTransportSettings, + settings.listMembershipBindingsSettings(), + clientContext); + this.getMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + getMembershipRBACRoleBindingTransportSettings, + settings.getMembershipRBACRoleBindingSettings(), + clientContext); + this.createMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + createMembershipRBACRoleBindingTransportSettings, + settings.createMembershipRBACRoleBindingSettings(), + clientContext); + this.createMembershipRBACRoleBindingOperationCallable = callableFactory.createOperationCallable( - deleteFeatureTransportSettings, - settings.deleteFeatureOperationSettings(), + createMembershipRBACRoleBindingTransportSettings, + settings.createMembershipRBACRoleBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.updateMembershipCallable = + this.updateMembershipRBACRoleBindingCallable = callableFactory.createUnaryCallable( - updateMembershipTransportSettings, settings.updateMembershipSettings(), clientContext); - this.updateMembershipOperationCallable = + updateMembershipRBACRoleBindingTransportSettings, + settings.updateMembershipRBACRoleBindingSettings(), + clientContext); + this.updateMembershipRBACRoleBindingOperationCallable = callableFactory.createOperationCallable( - updateMembershipTransportSettings, - settings.updateMembershipOperationSettings(), + updateMembershipRBACRoleBindingTransportSettings, + settings.updateMembershipRBACRoleBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.updateFeatureCallable = + this.deleteMembershipRBACRoleBindingCallable = callableFactory.createUnaryCallable( - updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext); - this.updateFeatureOperationCallable = + deleteMembershipRBACRoleBindingTransportSettings, + settings.deleteMembershipRBACRoleBindingSettings(), + clientContext); + this.deleteMembershipRBACRoleBindingOperationCallable = callableFactory.createOperationCallable( - updateFeatureTransportSettings, - settings.updateFeatureOperationSettings(), + deleteMembershipRBACRoleBindingTransportSettings, + settings.deleteMembershipRBACRoleBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.generateConnectManifestCallable = + this.listMembershipRBACRoleBindingsCallable = callableFactory.createUnaryCallable( - generateConnectManifestTransportSettings, - settings.generateConnectManifestSettings(), + listMembershipRBACRoleBindingsTransportSettings, + settings.listMembershipRBACRoleBindingsSettings(), + clientContext); + this.listMembershipRBACRoleBindingsPagedCallable = + callableFactory.createPagedCallable( + listMembershipRBACRoleBindingsTransportSettings, + settings.listMembershipRBACRoleBindingsSettings(), + clientContext); + this.generateMembershipRBACRoleBindingYAMLCallable = + callableFactory.createUnaryCallable( + generateMembershipRBACRoleBindingYAMLTransportSettings, + settings.generateMembershipRBACRoleBindingYAMLSettings(), clientContext); this.backgroundResources = @@ -823,6 +2979,7 @@ protected HttpJsonGkeHubStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(listMembershipsMethodDescriptor); + methodDescriptors.add(listBoundMembershipsMethodDescriptor); methodDescriptors.add(listFeaturesMethodDescriptor); methodDescriptors.add(getMembershipMethodDescriptor); methodDescriptors.add(getFeatureMethodDescriptor); @@ -833,6 +2990,38 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateMembershipMethodDescriptor); methodDescriptors.add(updateFeatureMethodDescriptor); methodDescriptors.add(generateConnectManifestMethodDescriptor); + methodDescriptors.add(createFleetMethodDescriptor); + methodDescriptors.add(getFleetMethodDescriptor); + methodDescriptors.add(updateFleetMethodDescriptor); + methodDescriptors.add(deleteFleetMethodDescriptor); + methodDescriptors.add(listFleetsMethodDescriptor); + methodDescriptors.add(getScopeNamespaceMethodDescriptor); + methodDescriptors.add(createScopeNamespaceMethodDescriptor); + methodDescriptors.add(updateScopeNamespaceMethodDescriptor); + methodDescriptors.add(deleteScopeNamespaceMethodDescriptor); + methodDescriptors.add(listScopeNamespacesMethodDescriptor); + methodDescriptors.add(getScopeRBACRoleBindingMethodDescriptor); + methodDescriptors.add(createScopeRBACRoleBindingMethodDescriptor); + methodDescriptors.add(updateScopeRBACRoleBindingMethodDescriptor); + methodDescriptors.add(deleteScopeRBACRoleBindingMethodDescriptor); + methodDescriptors.add(listScopeRBACRoleBindingsMethodDescriptor); + methodDescriptors.add(getScopeMethodDescriptor); + methodDescriptors.add(createScopeMethodDescriptor); + methodDescriptors.add(updateScopeMethodDescriptor); + methodDescriptors.add(deleteScopeMethodDescriptor); + methodDescriptors.add(listScopesMethodDescriptor); + methodDescriptors.add(listPermittedScopesMethodDescriptor); + methodDescriptors.add(getMembershipBindingMethodDescriptor); + methodDescriptors.add(createMembershipBindingMethodDescriptor); + methodDescriptors.add(updateMembershipBindingMethodDescriptor); + methodDescriptors.add(deleteMembershipBindingMethodDescriptor); + methodDescriptors.add(listMembershipBindingsMethodDescriptor); + methodDescriptors.add(getMembershipRBACRoleBindingMethodDescriptor); + methodDescriptors.add(createMembershipRBACRoleBindingMethodDescriptor); + methodDescriptors.add(updateMembershipRBACRoleBindingMethodDescriptor); + methodDescriptors.add(deleteMembershipRBACRoleBindingMethodDescriptor); + methodDescriptors.add(listMembershipRBACRoleBindingsMethodDescriptor); + methodDescriptors.add(generateMembershipRBACRoleBindingYAMLMethodDescriptor); return methodDescriptors; } @@ -851,6 +3040,18 @@ public UnaryCallable listMember return listMembershipsPagedCallable; } + @Override + public UnaryCallable + listBoundMembershipsCallable() { + return listBoundMembershipsCallable; + } + + @Override + public UnaryCallable + listBoundMembershipsPagedCallable() { + return listBoundMembershipsPagedCallable; + } + @Override public UnaryCallable listFeaturesCallable() { return listFeaturesCallable; @@ -943,6 +3144,338 @@ public UnaryCallable updateFeatureCallable() { return generateConnectManifestCallable; } + @Override + public UnaryCallable createFleetCallable() { + return createFleetCallable; + } + + @Override + public OperationCallable + createFleetOperationCallable() { + return createFleetOperationCallable; + } + + @Override + public UnaryCallable getFleetCallable() { + return getFleetCallable; + } + + @Override + public UnaryCallable updateFleetCallable() { + return updateFleetCallable; + } + + @Override + public OperationCallable + updateFleetOperationCallable() { + return updateFleetOperationCallable; + } + + @Override + public UnaryCallable deleteFleetCallable() { + return deleteFleetCallable; + } + + @Override + public OperationCallable + deleteFleetOperationCallable() { + return deleteFleetOperationCallable; + } + + @Override + public UnaryCallable listFleetsCallable() { + return listFleetsCallable; + } + + @Override + public UnaryCallable listFleetsPagedCallable() { + return listFleetsPagedCallable; + } + + @Override + public UnaryCallable getScopeNamespaceCallable() { + return getScopeNamespaceCallable; + } + + @Override + public UnaryCallable createScopeNamespaceCallable() { + return createScopeNamespaceCallable; + } + + @Override + public OperationCallable + createScopeNamespaceOperationCallable() { + return createScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable updateScopeNamespaceCallable() { + return updateScopeNamespaceCallable; + } + + @Override + public OperationCallable + updateScopeNamespaceOperationCallable() { + return updateScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable deleteScopeNamespaceCallable() { + return deleteScopeNamespaceCallable; + } + + @Override + public OperationCallable + deleteScopeNamespaceOperationCallable() { + return deleteScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable + listScopeNamespacesCallable() { + return listScopeNamespacesCallable; + } + + @Override + public UnaryCallable + listScopeNamespacesPagedCallable() { + return listScopeNamespacesPagedCallable; + } + + @Override + public UnaryCallable + getScopeRBACRoleBindingCallable() { + return getScopeRBACRoleBindingCallable; + } + + @Override + public UnaryCallable + createScopeRBACRoleBindingCallable() { + return createScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + createScopeRBACRoleBindingOperationCallable() { + return createScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + updateScopeRBACRoleBindingCallable() { + return updateScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + updateScopeRBACRoleBindingOperationCallable() { + return updateScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteScopeRBACRoleBindingCallable() { + return deleteScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + deleteScopeRBACRoleBindingOperationCallable() { + return deleteScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + listScopeRBACRoleBindingsCallable() { + return listScopeRBACRoleBindingsCallable; + } + + @Override + public UnaryCallable + listScopeRBACRoleBindingsPagedCallable() { + return listScopeRBACRoleBindingsPagedCallable; + } + + @Override + public UnaryCallable getScopeCallable() { + return getScopeCallable; + } + + @Override + public UnaryCallable createScopeCallable() { + return createScopeCallable; + } + + @Override + public OperationCallable + createScopeOperationCallable() { + return createScopeOperationCallable; + } + + @Override + public UnaryCallable updateScopeCallable() { + return updateScopeCallable; + } + + @Override + public OperationCallable + updateScopeOperationCallable() { + return updateScopeOperationCallable; + } + + @Override + public UnaryCallable deleteScopeCallable() { + return deleteScopeCallable; + } + + @Override + public OperationCallable + deleteScopeOperationCallable() { + return deleteScopeOperationCallable; + } + + @Override + public UnaryCallable listScopesCallable() { + return listScopesCallable; + } + + @Override + public UnaryCallable listScopesPagedCallable() { + return listScopesPagedCallable; + } + + @Override + public UnaryCallable + listPermittedScopesCallable() { + return listPermittedScopesCallable; + } + + @Override + public UnaryCallable + listPermittedScopesPagedCallable() { + return listPermittedScopesPagedCallable; + } + + @Override + public UnaryCallable + getMembershipBindingCallable() { + return getMembershipBindingCallable; + } + + @Override + public UnaryCallable + createMembershipBindingCallable() { + return createMembershipBindingCallable; + } + + @Override + public OperationCallable + createMembershipBindingOperationCallable() { + return createMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + updateMembershipBindingCallable() { + return updateMembershipBindingCallable; + } + + @Override + public OperationCallable + updateMembershipBindingOperationCallable() { + return updateMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteMembershipBindingCallable() { + return deleteMembershipBindingCallable; + } + + @Override + public OperationCallable + deleteMembershipBindingOperationCallable() { + return deleteMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + listMembershipBindingsCallable() { + return listMembershipBindingsCallable; + } + + @Override + public UnaryCallable + listMembershipBindingsPagedCallable() { + return listMembershipBindingsPagedCallable; + } + + @Override + public UnaryCallable + getMembershipRBACRoleBindingCallable() { + return getMembershipRBACRoleBindingCallable; + } + + @Override + public UnaryCallable + createMembershipRBACRoleBindingCallable() { + return createMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable() { + return createMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + updateMembershipRBACRoleBindingCallable() { + return updateMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable() { + return updateMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteMembershipRBACRoleBindingCallable() { + return deleteMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable + deleteMembershipRBACRoleBindingOperationCallable() { + return deleteMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable() { + return listMembershipRBACRoleBindingsCallable; + } + + @Override + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable() { + return listMembershipRBACRoleBindingsPagedCallable; + } + + @Override + public UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable() { + return generateMembershipRBACRoleBindingYAMLCallable; + } + @Override public final void close() { try { 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 4d7789d3b538..aae20ece403d 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 @@ -890,6 +890,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1.Authority", "queryAllDeclaredConstructors": true, @@ -908,6 +944,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig$EvaluationMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig$PolicyBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig$PolicyBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1.CommonFeatureSpec", "queryAllDeclaredConstructors": true, @@ -944,6 +1025,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig$ComplianceStandard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig$ComplianceStandard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1.ConnectAgentResource", "queryAllDeclaredConstructors": true, @@ -980,6 +1106,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.v1.CreateFleetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateFleetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateMembershipBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateMembershipBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1.CreateMembershipRequest", "queryAllDeclaredConstructors": true, @@ -999,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.DeleteFeatureRequest", + "name": "com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.DeleteFeatureRequest$Builder", + "name": "com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.DeleteMembershipRequest", + "name": "com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.DeleteMembershipRequest$Builder", + "name": "com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.Feature", + "name": "com.google.cloud.gkehub.v1.CreateScopeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.Feature$Builder", + "name": "com.google.cloud.gkehub.v1.CreateScopeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureResourceState", + "name": "com.google.cloud.gkehub.v1.DefaultClusterConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureResourceState$Builder", + "name": "com.google.cloud.gkehub.v1.DefaultClusterConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureResourceState$State", + "name": "com.google.cloud.gkehub.v1.DeleteFeatureRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureState", + "name": "com.google.cloud.gkehub.v1.DeleteFeatureRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureState$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteFleetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureState$Code", + "name": "com.google.cloud.gkehub.v1.DeleteFleetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestRequest", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestRequest$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestResponse", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestResponse$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GetFeatureRequest", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GetFeatureRequest$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GetMembershipRequest", + "name": "com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GetMembershipRequest$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GkeCluster", + "name": "com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GkeCluster$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.KubernetesMetadata", + "name": "com.google.cloud.gkehub.v1.DeleteScopeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.KubernetesMetadata$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteScopeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.KubernetesResource", + "name": "com.google.cloud.gkehub.v1.Feature", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.KubernetesResource$Builder", + "name": "com.google.cloud.gkehub.v1.Feature$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListFeaturesRequest", + "name": "com.google.cloud.gkehub.v1.FeatureResourceState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListFeaturesRequest$Builder", + "name": "com.google.cloud.gkehub.v1.FeatureResourceState$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListFeaturesResponse", + "name": "com.google.cloud.gkehub.v1.FeatureResourceState$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListFeaturesResponse$Builder", + "name": "com.google.cloud.gkehub.v1.FeatureState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListMembershipsRequest", + "name": "com.google.cloud.gkehub.v1.FeatureState$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListMembershipsRequest$Builder", + "name": "com.google.cloud.gkehub.v1.FeatureState$Code", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListMembershipsResponse", + "name": "com.google.cloud.gkehub.v1.Fleet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListMembershipsResponse$Builder", + "name": "com.google.cloud.gkehub.v1.Fleet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.Membership", + "name": "com.google.cloud.gkehub.v1.FleetLifecycleState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.Membership$Builder", + "name": "com.google.cloud.gkehub.v1.FleetLifecycleState$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipEndpoint", + "name": "com.google.cloud.gkehub.v1.FleetLifecycleState$Code", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipEndpoint$Builder", + "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipFeatureSpec", + "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipFeatureSpec$Builder", + "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipFeatureState", + "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipFeatureState$Builder", + "name": "com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipState", + "name": "com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipState$Builder", + "name": "com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipState$Code", + "name": "com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MonitoringConfig", + "name": "com.google.cloud.gkehub.v1.GetFeatureRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MonitoringConfig$Builder", + "name": "com.google.cloud.gkehub.v1.GetFeatureRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.OperationMetadata", + "name": "com.google.cloud.gkehub.v1.GetFleetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.OperationMetadata$Builder", + "name": "com.google.cloud.gkehub.v1.GetFleetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ResourceManifest", + "name": "com.google.cloud.gkehub.v1.GetMembershipBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ResourceManifest$Builder", + "name": "com.google.cloud.gkehub.v1.GetMembershipBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ResourceOptions", + "name": "com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ResourceOptions$Builder", + "name": "com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.TypeMeta", + "name": "com.google.cloud.gkehub.v1.GetMembershipRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.TypeMeta$Builder", + "name": "com.google.cloud.gkehub.v1.GetMembershipRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.UpdateFeatureRequest", + "name": "com.google.cloud.gkehub.v1.GetScopeNamespaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.UpdateFeatureRequest$Builder", + "name": "com.google.cloud.gkehub.v1.GetScopeNamespaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.UpdateMembershipRequest", + "name": "com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1701,1051 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.UpdateMembershipRequest$Builder", + "name": "com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.GetScopeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.GetScopeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.GkeCluster", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.GkeCluster$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.KubernetesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.KubernetesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.KubernetesResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.KubernetesResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListBoundMembershipsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListBoundMembershipsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListBoundMembershipsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListBoundMembershipsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFeaturesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFeaturesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFeaturesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFeaturesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFleetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFleetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFleetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFleetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListPermittedScopesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListPermittedScopesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListPermittedScopesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListPermittedScopesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeNamespacesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeNamespacesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeNamespacesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeNamespacesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Membership", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Membership$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBindingLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBindingLifecycleState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBindingLifecycleState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipEndpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipEndpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipFeatureSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipFeatureSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipFeatureState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipFeatureState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MonitoringConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MonitoringConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Namespace", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Namespace$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.NamespaceLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.NamespaceLifecycleState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.NamespaceLifecycleState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding$Role", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding$Role$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding$Role$PredefinedRoles", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ResourceManifest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ResourceManifest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ResourceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ResourceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Scope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Scope$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeFeatureSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeFeatureSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeFeatureState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeFeatureState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeLifecycleState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeLifecycleState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.SecurityPostureConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.SecurityPostureConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.SecurityPostureConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.SecurityPostureConfig$VulnerabilityMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.TypeMeta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.TypeMeta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateFeatureRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateFeatureRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateFleetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateFleetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, diff --git a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientHttpJsonTest.java b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientHttpJsonTest.java index 621702241fb6..b8225bc74564 100644 --- a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientHttpJsonTest.java +++ b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientHttpJsonTest.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -184,6 +192,106 @@ public void listMembershipsExceptionTest2() throws Exception { } } + @Test + public void listBoundMembershipsTest() throws Exception { + Membership responsesElement = Membership.newBuilder().build(); + ListBoundMembershipsResponse expectedResponse = + ListBoundMembershipsResponse.newBuilder() + .setNextPageToken("") + .addAllMemberships(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListBoundMembershipsPagedResponse pagedListResponse = client.listBoundMemberships(scopeName); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipsList().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 listBoundMembershipsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listBoundMemberships(scopeName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBoundMembershipsTest2() throws Exception { + Membership responsesElement = Membership.newBuilder().build(); + ListBoundMembershipsResponse expectedResponse = + ListBoundMembershipsResponse.newBuilder() + .setNextPageToken("") + .addAllMemberships(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String scopeName = "projects/project-6565/locations/location-6565/scopes/scope-6565"; + + ListBoundMembershipsPagedResponse pagedListResponse = client.listBoundMemberships(scopeName); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipsList().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 listBoundMembershipsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String scopeName = "projects/project-6565/locations/location-6565/scopes/scope-6565"; + client.listBoundMemberships(scopeName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listFeaturesTest() throws Exception { Feature responsesElement = Feature.newBuilder().build(); @@ -408,6 +516,9 @@ public void getFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -461,6 +572,9 @@ public void getFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -642,6 +756,9 @@ public void createFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -704,6 +821,9 @@ public void createFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1074,6 +1194,9 @@ public void updateFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1136,6 +1259,9 @@ public void updateFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1245,4 +1371,3475 @@ public void generateConnectManifestExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void createFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Fleet fleet = Fleet.newBuilder().build(); + + Fleet actualResponse = client.createFleetAsync(parent, fleet).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 createFleetExceptionTest() 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]"); + Fleet fleet = Fleet.newBuilder().build(); + client.createFleetAsync(parent, fleet).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createFleetTest2() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Fleet fleet = Fleet.newBuilder().build(); + + Fleet actualResponse = client.createFleetAsync(parent, fleet).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 createFleetExceptionTest2() 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"; + Fleet fleet = Fleet.newBuilder().build(); + client.createFleetAsync(parent, fleet).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + + Fleet actualResponse = client.getFleet(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 getFleetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + client.getFleet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFleetTest2() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6427/locations/location-6427/fleets/fleet-6427"; + + Fleet actualResponse = client.getFleet(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 getFleetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6427/locations/location-6427/fleets/fleet-6427"; + client.getFleet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Fleet fleet = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Fleet actualResponse = client.updateFleetAsync(fleet, 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 updateFleetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Fleet fleet = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFleetAsync(fleet, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteFleetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + + client.deleteFleetAsync(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 deleteFleetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + client.deleteFleetAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteFleetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6427/locations/location-6427/fleets/fleet-6427"; + + client.deleteFleetAsync(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 deleteFleetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6427/locations/location-6427/fleets/fleet-6427"; + client.deleteFleetAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listFleetsTest() throws Exception { + Fleet responsesElement = Fleet.newBuilder().build(); + ListFleetsResponse expectedResponse = + ListFleetsResponse.newBuilder() + .setNextPageToken("") + .addAllFleets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFleetsPagedResponse pagedListResponse = client.listFleets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFleetsList().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 listFleetsExceptionTest() 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.listFleets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFleetsTest2() throws Exception { + Fleet responsesElement = Fleet.newBuilder().build(); + ListFleetsResponse expectedResponse = + ListFleetsResponse.newBuilder() + .setNextPageToken("") + .addAllFleets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListFleetsPagedResponse pagedListResponse = client.listFleets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFleetsList().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 listFleetsExceptionTest2() 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.listFleets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + + Namespace actualResponse = client.getScopeNamespace(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 getScopeNamespaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + client.getScopeNamespace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeNamespaceTest2() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7315/locations/location-7315/scopes/scope-7315/namespaces/namespace-7315"; + + Namespace actualResponse = client.getScopeNamespace(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 getScopeNamespaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7315/locations/location-7315/scopes/scope-7315/namespaces/namespace-7315"; + client.getScopeNamespace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + + Namespace actualResponse = + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).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 createScopeNamespaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createScopeNamespaceTest2() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + + Namespace actualResponse = + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).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 createScopeNamespaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Namespace scopeNamespace = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Namespace actualResponse = client.updateScopeNamespaceAsync(scopeNamespace, 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 updateScopeNamespaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Namespace scopeNamespace = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeNamespaceAsync(scopeNamespace, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeNamespaceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + + client.deleteScopeNamespaceAsync(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 deleteScopeNamespaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + client.deleteScopeNamespaceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeNamespaceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7315/locations/location-7315/scopes/scope-7315/namespaces/namespace-7315"; + + client.deleteScopeNamespaceAsync(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 deleteScopeNamespaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7315/locations/location-7315/scopes/scope-7315/namespaces/namespace-7315"; + client.deleteScopeNamespaceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listScopeNamespacesTest() throws Exception { + Namespace responsesElement = Namespace.newBuilder().build(); + ListScopeNamespacesResponse expectedResponse = + ListScopeNamespacesResponse.newBuilder() + .setNextPageToken("") + .addAllScopeNamespaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListScopeNamespacesPagedResponse pagedListResponse = client.listScopeNamespaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopeNamespacesList().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 listScopeNamespacesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listScopeNamespaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeNamespacesTest2() throws Exception { + Namespace responsesElement = Namespace.newBuilder().build(); + ListScopeNamespacesResponse expectedResponse = + ListScopeNamespacesResponse.newBuilder() + .setNextPageToken("") + .addAllScopeNamespaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + + ListScopeNamespacesPagedResponse pagedListResponse = client.listScopeNamespaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopeNamespacesList().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 listScopeNamespacesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + client.listScopeNamespaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + + RBACRoleBinding actualResponse = client.getScopeRBACRoleBinding(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 getScopeRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + client.getScopeRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9375/locations/location-9375/scopes/scope-9375/rbacrolebindings/rbacrolebinding-9375"; + + RBACRoleBinding actualResponse = client.getScopeRBACRoleBinding(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 getScopeRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9375/locations/location-9375/scopes/scope-9375/rbacrolebindings/rbacrolebinding-9375"; + client.getScopeRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).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 createScopeRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createScopeRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).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 createScopeRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createScopeRBACRoleBindingTest3() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).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 createScopeRBACRoleBindingExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RBACRoleBinding rbacrolebinding = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RBACRoleBinding actualResponse = + client.updateScopeRBACRoleBindingAsync(rbacrolebinding, 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 updateScopeRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBinding rbacrolebinding = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeRBACRoleBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + + client.deleteScopeRBACRoleBindingAsync(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 deleteScopeRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + client.deleteScopeRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeRBACRoleBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9375/locations/location-9375/scopes/scope-9375/rbacrolebindings/rbacrolebinding-9375"; + + client.deleteScopeRBACRoleBindingAsync(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 deleteScopeRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9375/locations/location-9375/scopes/scope-9375/rbacrolebindings/rbacrolebinding-9375"; + client.deleteScopeRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listScopeRBACRoleBindingsTest() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().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 listScopeRBACRoleBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeRBACRoleBindingsTest2() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().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 listScopeRBACRoleBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeRBACRoleBindingsTest3() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().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 listScopeRBACRoleBindingsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + Scope actualResponse = client.getScope(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 getScopeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.getScope(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeTest2() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6287/locations/location-6287/scopes/scope-6287"; + + Scope actualResponse = client.getScope(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 getScopeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6287/locations/location-6287/scopes/scope-6287"; + client.getScope(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + + Scope actualResponse = client.createScopeAsync(parent, scope, scopeId).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 createScopeExceptionTest() 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]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + client.createScopeAsync(parent, scope, scopeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createScopeTest2() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + + Scope actualResponse = client.createScopeAsync(parent, scope, scopeId).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 createScopeExceptionTest2() 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"; + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + client.createScopeAsync(parent, scope, scopeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Scope scope = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Scope actualResponse = client.updateScopeAsync(scope, 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 updateScopeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Scope scope = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeAsync(scope, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + client.deleteScopeAsync(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 deleteScopeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.deleteScopeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6287/locations/location-6287/scopes/scope-6287"; + + client.deleteScopeAsync(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 deleteScopeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6287/locations/location-6287/scopes/scope-6287"; + client.deleteScopeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listScopesTest() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListScopesResponse expectedResponse = + ListScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListScopesPagedResponse pagedListResponse = client.listScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().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 listScopesExceptionTest() 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.listScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopesTest2() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListScopesResponse expectedResponse = + ListScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListScopesPagedResponse pagedListResponse = client.listScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().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 listScopesExceptionTest2() 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.listScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPermittedScopesTest() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListPermittedScopesResponse expectedResponse = + ListPermittedScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPermittedScopesPagedResponse pagedListResponse = client.listPermittedScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().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 listPermittedScopesExceptionTest() 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.listPermittedScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPermittedScopesTest2() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListPermittedScopesResponse expectedResponse = + ListPermittedScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListPermittedScopesPagedResponse pagedListResponse = client.listPermittedScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().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 listPermittedScopesExceptionTest2() 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.listPermittedScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + MembershipBindingName name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + + MembershipBinding actualResponse = client.getMembershipBinding(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 getMembershipBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + client.getMembershipBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipBindingTest2() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8571/locations/location-8571/memberships/membership-8571/bindings/binding-8571"; + + MembershipBinding actualResponse = client.getMembershipBinding(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 getMembershipBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8571/locations/location-8571/memberships/membership-8571/bindings/binding-8571"; + client.getMembershipBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + + MembershipBinding actualResponse = + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).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 createMembershipBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createMembershipBindingTest2() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + + MembershipBinding actualResponse = + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).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 createMembershipBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipBinding membershipBinding = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MembershipBinding actualResponse = + client.updateMembershipBindingAsync(membershipBinding, 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 updateMembershipBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipBinding membershipBinding = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMembershipBindingAsync(membershipBinding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteMembershipBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipBindingName name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + + client.deleteMembershipBindingAsync(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 deleteMembershipBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + client.deleteMembershipBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteMembershipBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8571/locations/location-8571/memberships/membership-8571/bindings/binding-8571"; + + client.deleteMembershipBindingAsync(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 deleteMembershipBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8571/locations/location-8571/memberships/membership-8571/bindings/binding-8571"; + client.deleteMembershipBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listMembershipBindingsTest() throws Exception { + MembershipBinding responsesElement = MembershipBinding.newBuilder().build(); + ListMembershipBindingsResponse expectedResponse = + ListMembershipBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllMembershipBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListMembershipBindingsPagedResponse pagedListResponse = client.listMembershipBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipBindingsList().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 listMembershipBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listMembershipBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipBindingsTest2() throws Exception { + MembershipBinding responsesElement = MembershipBinding.newBuilder().build(); + ListMembershipBindingsResponse expectedResponse = + ListMembershipBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllMembershipBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + + ListMembershipBindingsPagedResponse pagedListResponse = client.listMembershipBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipBindingsList().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 listMembershipBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + client.listMembershipBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + + RBACRoleBinding actualResponse = client.getMembershipRBACRoleBinding(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 getMembershipRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + client.getMembershipRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8531/locations/location-8531/memberships/membership-8531/rbacrolebindings/rbacrolebinding-8531"; + + RBACRoleBinding actualResponse = client.getMembershipRBACRoleBinding(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 getMembershipRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8531/locations/location-8531/memberships/membership-8531/rbacrolebindings/rbacrolebinding-8531"; + client.getMembershipRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .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 createMembershipRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createMembershipRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .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 createMembershipRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createMembershipRBACRoleBindingTest3() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .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 createMembershipRBACRoleBindingExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RBACRoleBinding rbacrolebinding = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RBACRoleBinding actualResponse = + client.updateMembershipRBACRoleBindingAsync(rbacrolebinding, 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 updateMembershipRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBinding rbacrolebinding = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteMembershipRBACRoleBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + + client.deleteMembershipRBACRoleBindingAsync(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 deleteMembershipRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + client.deleteMembershipRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteMembershipRBACRoleBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8531/locations/location-8531/memberships/membership-8531/rbacrolebindings/rbacrolebinding-8531"; + + client.deleteMembershipRBACRoleBindingAsync(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 deleteMembershipRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8531/locations/location-8531/memberships/membership-8531/rbacrolebindings/rbacrolebinding-8531"; + client.deleteMembershipRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listMembershipRBACRoleBindingsTest() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().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 listMembershipRBACRoleBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipRBACRoleBindingsTest2() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().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 listMembershipRBACRoleBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipRBACRoleBindingsTest3() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().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 listMembershipRBACRoleBindingsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateMembershipRBACRoleBindingYAMLTest() throws Exception { + GenerateMembershipRBACRoleBindingYAMLResponse expectedResponse = + GenerateMembershipRBACRoleBindingYAMLResponse.newBuilder() + .setRoleBindingsYaml("roleBindingsYaml-926355989") + .build(); + mockService.addResponse(expectedResponse); + + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + + GenerateMembershipRBACRoleBindingYAMLResponse actualResponse = + client.generateMembershipRBACRoleBindingYAML(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 generateMembershipRBACRoleBindingYAMLExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + client.generateMembershipRBACRoleBindingYAML(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java index c4e129b2e461..da3840edc167 100644 --- a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java +++ b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -177,6 +185,96 @@ public void listMembershipsExceptionTest2() throws Exception { } } + @Test + public void listBoundMembershipsTest() throws Exception { + Membership responsesElement = Membership.newBuilder().build(); + ListBoundMembershipsResponse expectedResponse = + ListBoundMembershipsResponse.newBuilder() + .setNextPageToken("") + .addAllMemberships(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListBoundMembershipsPagedResponse pagedListResponse = client.listBoundMemberships(scopeName); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBoundMembershipsRequest actualRequest = + ((ListBoundMembershipsRequest) actualRequests.get(0)); + + Assert.assertEquals(scopeName.toString(), actualRequest.getScopeName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBoundMembershipsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listBoundMemberships(scopeName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBoundMembershipsTest2() throws Exception { + Membership responsesElement = Membership.newBuilder().build(); + ListBoundMembershipsResponse expectedResponse = + ListBoundMembershipsResponse.newBuilder() + .setNextPageToken("") + .addAllMemberships(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String scopeName = "scopeName2071519999"; + + ListBoundMembershipsPagedResponse pagedListResponse = client.listBoundMemberships(scopeName); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBoundMembershipsRequest actualRequest = + ((ListBoundMembershipsRequest) actualRequests.get(0)); + + Assert.assertEquals(scopeName, actualRequest.getScopeName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBoundMembershipsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String scopeName = "scopeName2071519999"; + client.listBoundMemberships(scopeName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listFeaturesTest() throws Exception { Feature responsesElement = Feature.newBuilder().build(); @@ -377,6 +475,9 @@ public void getFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); mockGkeHub.addResponse(expectedResponse); @@ -424,6 +525,9 @@ public void getFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); mockGkeHub.addResponse(expectedResponse); @@ -597,6 +701,9 @@ public void createFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -658,6 +765,9 @@ public void createFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1013,6 +1123,9 @@ public void updateFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1074,6 +1187,9 @@ public void updateFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1184,4 +1300,3114 @@ public void generateConnectManifestExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void createFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Fleet fleet = Fleet.newBuilder().build(); + + Fleet actualResponse = client.createFleetAsync(parent, fleet).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFleetRequest actualRequest = ((CreateFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(fleet, actualRequest.getFleet()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFleetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Fleet fleet = Fleet.newBuilder().build(); + client.createFleetAsync(parent, fleet).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 createFleetTest2() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + Fleet fleet = Fleet.newBuilder().build(); + + Fleet actualResponse = client.createFleetAsync(parent, fleet).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFleetRequest actualRequest = ((CreateFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(fleet, actualRequest.getFleet()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFleetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + Fleet fleet = Fleet.newBuilder().build(); + client.createFleetAsync(parent, fleet).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 getFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + + Fleet actualResponse = client.getFleet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFleetRequest actualRequest = ((GetFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFleetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + client.getFleet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFleetTest2() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + Fleet actualResponse = client.getFleet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFleetRequest actualRequest = ((GetFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFleetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getFleet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + Fleet fleet = Fleet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Fleet actualResponse = client.updateFleetAsync(fleet, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFleetRequest actualRequest = ((UpdateFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(fleet, actualRequest.getFleet()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFleetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + Fleet fleet = Fleet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFleetAsync(fleet, 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 deleteFleetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + + client.deleteFleetAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFleetRequest actualRequest = ((DeleteFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFleetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + client.deleteFleetAsync(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 deleteFleetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteFleetAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFleetRequest actualRequest = ((DeleteFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFleetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteFleetAsync(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 listFleetsTest() throws Exception { + Fleet responsesElement = Fleet.newBuilder().build(); + ListFleetsResponse expectedResponse = + ListFleetsResponse.newBuilder() + .setNextPageToken("") + .addAllFleets(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFleetsPagedResponse pagedListResponse = client.listFleets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFleetsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFleetsRequest actualRequest = ((ListFleetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFleetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFleets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFleetsTest2() throws Exception { + Fleet responsesElement = Fleet.newBuilder().build(); + ListFleetsResponse expectedResponse = + ListFleetsResponse.newBuilder() + .setNextPageToken("") + .addAllFleets(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFleetsPagedResponse pagedListResponse = client.listFleets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFleetsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFleetsRequest actualRequest = ((ListFleetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFleetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFleets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + + Namespace actualResponse = client.getScopeNamespace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeNamespaceRequest actualRequest = ((GetScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeNamespaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + client.getScopeNamespace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeNamespaceTest2() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + Namespace actualResponse = client.getScopeNamespace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeNamespaceRequest actualRequest = ((GetScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeNamespaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getScopeNamespace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + + Namespace actualResponse = + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeNamespaceRequest actualRequest = + ((CreateScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(scopeNamespace, actualRequest.getScopeNamespace()); + Assert.assertEquals(scopeNamespaceId, actualRequest.getScopeNamespaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeNamespaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).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 createScopeNamespaceTest2() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + + Namespace actualResponse = + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeNamespaceRequest actualRequest = + ((CreateScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(scopeNamespace, actualRequest.getScopeNamespace()); + Assert.assertEquals(scopeNamespaceId, actualRequest.getScopeNamespaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeNamespaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).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 updateScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + Namespace scopeNamespace = Namespace.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Namespace actualResponse = client.updateScopeNamespaceAsync(scopeNamespace, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateScopeNamespaceRequest actualRequest = + ((UpdateScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(scopeNamespace, actualRequest.getScopeNamespace()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateScopeNamespaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + Namespace scopeNamespace = Namespace.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeNamespaceAsync(scopeNamespace, 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 deleteScopeNamespaceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + + client.deleteScopeNamespaceAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeNamespaceRequest actualRequest = + ((DeleteScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeNamespaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + client.deleteScopeNamespaceAsync(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 deleteScopeNamespaceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteScopeNamespaceAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeNamespaceRequest actualRequest = + ((DeleteScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeNamespaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteScopeNamespaceAsync(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 listScopeNamespacesTest() throws Exception { + Namespace responsesElement = Namespace.newBuilder().build(); + ListScopeNamespacesResponse expectedResponse = + ListScopeNamespacesResponse.newBuilder() + .setNextPageToken("") + .addAllScopeNamespaces(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListScopeNamespacesPagedResponse pagedListResponse = client.listScopeNamespaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopeNamespacesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeNamespacesRequest actualRequest = ((ListScopeNamespacesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeNamespacesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listScopeNamespaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeNamespacesTest2() throws Exception { + Namespace responsesElement = Namespace.newBuilder().build(); + ListScopeNamespacesResponse expectedResponse = + ListScopeNamespacesResponse.newBuilder() + .setNextPageToken("") + .addAllScopeNamespaces(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListScopeNamespacesPagedResponse pagedListResponse = client.listScopeNamespaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopeNamespacesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeNamespacesRequest actualRequest = ((ListScopeNamespacesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeNamespacesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listScopeNamespaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + + RBACRoleBinding actualResponse = client.getScopeRBACRoleBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeRBACRoleBindingRequest actualRequest = + ((GetScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + client.getScopeRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + RBACRoleBinding actualResponse = client.getScopeRBACRoleBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeRBACRoleBindingRequest actualRequest = + ((GetScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getScopeRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRBACRoleBindingRequest actualRequest = + ((CreateScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).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 createScopeRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRBACRoleBindingRequest actualRequest = + ((CreateScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).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 createScopeRBACRoleBindingTest3() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRBACRoleBindingRequest actualRequest = + ((CreateScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeRBACRoleBindingExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).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 updateScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RBACRoleBinding actualResponse = + client.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateScopeRBACRoleBindingRequest actualRequest = + ((UpdateScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateScopeRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeRBACRoleBindingAsync(rbacrolebinding, 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 deleteScopeRBACRoleBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + + client.deleteScopeRBACRoleBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeRBACRoleBindingRequest actualRequest = + ((DeleteScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + client.deleteScopeRBACRoleBindingAsync(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 deleteScopeRBACRoleBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteScopeRBACRoleBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeRBACRoleBindingRequest actualRequest = + ((DeleteScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteScopeRBACRoleBindingAsync(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 listScopeRBACRoleBindingsTest() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeRBACRoleBindingsRequest actualRequest = + ((ListScopeRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeRBACRoleBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeRBACRoleBindingsTest2() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeRBACRoleBindingsRequest actualRequest = + ((ListScopeRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeRBACRoleBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeRBACRoleBindingsTest3() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeRBACRoleBindingsRequest actualRequest = + ((ListScopeRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeRBACRoleBindingsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + Scope actualResponse = client.getScope(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeRequest actualRequest = ((GetScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.getScope(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeTest2() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + Scope actualResponse = client.getScope(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeRequest actualRequest = ((GetScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getScope(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + + Scope actualResponse = client.createScopeAsync(parent, scope, scopeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRequest actualRequest = ((CreateScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(scope, actualRequest.getScope()); + Assert.assertEquals(scopeId, actualRequest.getScopeId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + client.createScopeAsync(parent, scope, scopeId).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 createScopeTest2() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + + Scope actualResponse = client.createScopeAsync(parent, scope, scopeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRequest actualRequest = ((CreateScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(scope, actualRequest.getScope()); + Assert.assertEquals(scopeId, actualRequest.getScopeId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + client.createScopeAsync(parent, scope, scopeId).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 updateScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + Scope scope = Scope.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Scope actualResponse = client.updateScopeAsync(scope, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateScopeRequest actualRequest = ((UpdateScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(scope, actualRequest.getScope()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateScopeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + Scope scope = Scope.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeAsync(scope, 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 deleteScopeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + client.deleteScopeAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeRequest actualRequest = ((DeleteScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.deleteScopeAsync(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 deleteScopeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteScopeAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeRequest actualRequest = ((DeleteScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteScopeAsync(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 listScopesTest() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListScopesResponse expectedResponse = + ListScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListScopesPagedResponse pagedListResponse = client.listScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopesRequest actualRequest = ((ListScopesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopesTest2() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListScopesResponse expectedResponse = + ListScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListScopesPagedResponse pagedListResponse = client.listScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopesRequest actualRequest = ((ListScopesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPermittedScopesTest() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListPermittedScopesResponse expectedResponse = + ListPermittedScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPermittedScopesPagedResponse pagedListResponse = client.listPermittedScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPermittedScopesRequest actualRequest = ((ListPermittedScopesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPermittedScopesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPermittedScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPermittedScopesTest2() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListPermittedScopesResponse expectedResponse = + ListPermittedScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPermittedScopesPagedResponse pagedListResponse = client.listPermittedScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPermittedScopesRequest actualRequest = ((ListPermittedScopesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPermittedScopesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPermittedScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + MembershipBindingName name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + + MembershipBinding actualResponse = client.getMembershipBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMembershipBindingRequest actualRequest = + ((GetMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMembershipBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + client.getMembershipBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipBindingTest2() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + MembershipBinding actualResponse = client.getMembershipBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMembershipBindingRequest actualRequest = + ((GetMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMembershipBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getMembershipBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + + MembershipBinding actualResponse = + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipBindingRequest actualRequest = + ((CreateMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(membershipBinding, actualRequest.getMembershipBinding()); + Assert.assertEquals(membershipBindingId, actualRequest.getMembershipBindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).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 createMembershipBindingTest2() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + + MembershipBinding actualResponse = + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipBindingRequest actualRequest = + ((CreateMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(membershipBinding, actualRequest.getMembershipBinding()); + Assert.assertEquals(membershipBindingId, actualRequest.getMembershipBindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).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 updateMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MembershipBinding actualResponse = + client.updateMembershipBindingAsync(membershipBinding, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMembershipBindingRequest actualRequest = + ((UpdateMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(membershipBinding, actualRequest.getMembershipBinding()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMembershipBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMembershipBindingAsync(membershipBinding, 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 deleteMembershipBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipBindingName name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + + client.deleteMembershipBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMembershipBindingRequest actualRequest = + ((DeleteMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMembershipBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + client.deleteMembershipBindingAsync(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 deleteMembershipBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMembershipBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMembershipBindingRequest actualRequest = + ((DeleteMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMembershipBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteMembershipBindingAsync(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 listMembershipBindingsTest() throws Exception { + MembershipBinding responsesElement = MembershipBinding.newBuilder().build(); + ListMembershipBindingsResponse expectedResponse = + ListMembershipBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllMembershipBindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListMembershipBindingsPagedResponse pagedListResponse = client.listMembershipBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipBindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipBindingsRequest actualRequest = + ((ListMembershipBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listMembershipBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipBindingsTest2() throws Exception { + MembershipBinding responsesElement = MembershipBinding.newBuilder().build(); + ListMembershipBindingsResponse expectedResponse = + ListMembershipBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllMembershipBindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMembershipBindingsPagedResponse pagedListResponse = client.listMembershipBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipBindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipBindingsRequest actualRequest = + ((ListMembershipBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMembershipBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + + RBACRoleBinding actualResponse = client.getMembershipRBACRoleBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMembershipRBACRoleBindingRequest actualRequest = + ((GetMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMembershipRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + client.getMembershipRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + RBACRoleBinding actualResponse = client.getMembershipRBACRoleBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMembershipRBACRoleBindingRequest actualRequest = + ((GetMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMembershipRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getMembershipRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipRBACRoleBindingRequest actualRequest = + ((CreateMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).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 createMembershipRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipRBACRoleBindingRequest actualRequest = + ((CreateMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).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 createMembershipRBACRoleBindingTest3() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipRBACRoleBindingRequest actualRequest = + ((CreateMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipRBACRoleBindingExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).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 updateMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RBACRoleBinding actualResponse = + client.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMembershipRBACRoleBindingRequest actualRequest = + ((UpdateMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMembershipRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMembershipRBACRoleBindingAsync(rbacrolebinding, 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 deleteMembershipRBACRoleBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + + client.deleteMembershipRBACRoleBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMembershipRBACRoleBindingRequest actualRequest = + ((DeleteMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMembershipRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + client.deleteMembershipRBACRoleBindingAsync(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 deleteMembershipRBACRoleBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMembershipRBACRoleBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMembershipRBACRoleBindingRequest actualRequest = + ((DeleteMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMembershipRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteMembershipRBACRoleBindingAsync(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 listMembershipRBACRoleBindingsTest() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipRBACRoleBindingsRequest actualRequest = + ((ListMembershipRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipRBACRoleBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipRBACRoleBindingsTest2() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipRBACRoleBindingsRequest actualRequest = + ((ListMembershipRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipRBACRoleBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipRBACRoleBindingsTest3() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipRBACRoleBindingsRequest actualRequest = + ((ListMembershipRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipRBACRoleBindingsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateMembershipRBACRoleBindingYAMLTest() throws Exception { + GenerateMembershipRBACRoleBindingYAMLResponse expectedResponse = + GenerateMembershipRBACRoleBindingYAMLResponse.newBuilder() + .setRoleBindingsYaml("roleBindingsYaml-926355989") + .build(); + mockGkeHub.addResponse(expectedResponse); + + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + + GenerateMembershipRBACRoleBindingYAMLResponse actualResponse = + client.generateMembershipRBACRoleBindingYAML(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateMembershipRBACRoleBindingYAMLRequest actualRequest = + ((GenerateMembershipRBACRoleBindingYAMLRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRbacrolebindingId(), actualRequest.getRbacrolebindingId()); + Assert.assertEquals(request.getRbacrolebinding(), actualRequest.getRbacrolebinding()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateMembershipRBACRoleBindingYAMLExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + client.generateMembershipRBACRoleBindingYAML(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java index 7d5bb8f51ff8..beb2cd587946 100644 --- a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java +++ b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java @@ -80,6 +80,29 @@ public void listMemberships( } } + @Override + public void listBoundMemberships( + ListBoundMembershipsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBoundMembershipsResponse) { + requests.add(request); + responseObserver.onNext(((ListBoundMembershipsResponse) 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 ListBoundMemberships, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListBoundMembershipsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listFeatures( ListFeaturesRequest request, StreamObserver responseObserver) { @@ -290,4 +313,694 @@ public void generateConnectManifest( Exception.class.getName()))); } } + + @Override + public void createFleet(CreateFleetRequest 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 CreateFleet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFleet(GetFleetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Fleet) { + requests.add(request); + responseObserver.onNext(((Fleet) 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 GetFleet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Fleet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFleet(UpdateFleetRequest 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 UpdateFleet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFleet(DeleteFleetRequest 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 DeleteFleet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFleets( + ListFleetsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFleetsResponse) { + requests.add(request); + responseObserver.onNext(((ListFleetsResponse) 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 ListFleets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFleetsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getScopeNamespace( + GetScopeNamespaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Namespace) { + requests.add(request); + responseObserver.onNext(((Namespace) 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 GetScopeNamespace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Namespace.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createScopeNamespace( + CreateScopeNamespaceRequest 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 CreateScopeNamespace, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateScopeNamespace( + UpdateScopeNamespaceRequest 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 UpdateScopeNamespace, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteScopeNamespace( + DeleteScopeNamespaceRequest 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 DeleteScopeNamespace, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listScopeNamespaces( + ListScopeNamespacesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListScopeNamespacesResponse) { + requests.add(request); + responseObserver.onNext(((ListScopeNamespacesResponse) 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 ListScopeNamespaces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListScopeNamespacesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getScopeRBACRoleBinding( + GetScopeRBACRoleBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RBACRoleBinding) { + requests.add(request); + responseObserver.onNext(((RBACRoleBinding) 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 GetScopeRBACRoleBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + RBACRoleBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createScopeRBACRoleBinding( + CreateScopeRBACRoleBindingRequest 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 CreateScopeRBACRoleBinding, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateScopeRBACRoleBinding( + UpdateScopeRBACRoleBindingRequest 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 UpdateScopeRBACRoleBinding, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteScopeRBACRoleBinding( + DeleteScopeRBACRoleBindingRequest 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 DeleteScopeRBACRoleBinding, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listScopeRBACRoleBindings( + ListScopeRBACRoleBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListScopeRBACRoleBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListScopeRBACRoleBindingsResponse) 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 ListScopeRBACRoleBindings, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListScopeRBACRoleBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getScope(GetScopeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Scope) { + requests.add(request); + responseObserver.onNext(((Scope) 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 GetScope, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Scope.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createScope(CreateScopeRequest 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 CreateScope, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateScope(UpdateScopeRequest 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 UpdateScope, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteScope(DeleteScopeRequest 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 DeleteScope, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listScopes( + ListScopesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListScopesResponse) { + requests.add(request); + responseObserver.onNext(((ListScopesResponse) 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 ListScopes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListScopesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPermittedScopes( + ListPermittedScopesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPermittedScopesResponse) { + requests.add(request); + responseObserver.onNext(((ListPermittedScopesResponse) 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 ListPermittedScopes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPermittedScopesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMembershipBinding( + GetMembershipBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MembershipBinding) { + requests.add(request); + responseObserver.onNext(((MembershipBinding) 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 GetMembershipBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + MembershipBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMembershipBinding( + CreateMembershipBindingRequest 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 CreateMembershipBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMembershipBinding( + UpdateMembershipBindingRequest 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 UpdateMembershipBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMembershipBinding( + DeleteMembershipBindingRequest 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 DeleteMembershipBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMembershipBindings( + ListMembershipBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMembershipBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListMembershipBindingsResponse) 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 ListMembershipBindings, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListMembershipBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMembershipRBACRoleBinding( + GetMembershipRBACRoleBindingRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RBACRoleBinding) { + requests.add(request); + responseObserver.onNext(((RBACRoleBinding) 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 GetMembershipRBACRoleBinding, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + RBACRoleBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMembershipRBACRoleBinding( + CreateMembershipRBACRoleBindingRequest 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 CreateMembershipRBACRoleBinding," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMembershipRBACRoleBinding( + UpdateMembershipRBACRoleBindingRequest 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 UpdateMembershipRBACRoleBinding," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMembershipRBACRoleBinding( + DeleteMembershipRBACRoleBindingRequest 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 DeleteMembershipRBACRoleBinding," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMembershipRBACRoleBindings( + ListMembershipRBACRoleBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMembershipRBACRoleBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListMembershipRBACRoleBindingsResponse) 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 ListMembershipRBACRoleBindings," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMembershipRBACRoleBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateMembershipRBACRoleBindingYAML( + GenerateMembershipRBACRoleBindingYAMLRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateMembershipRBACRoleBindingYAMLResponse) { + requests.add(request); + responseObserver.onNext(((GenerateMembershipRBACRoleBindingYAMLResponse) 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 GenerateMembershipRBACRoleBindingYAML," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateMembershipRBACRoleBindingYAMLResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java b/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java index b48349bed38e..abe69704ca90 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java +++ b/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java @@ -90,6 +90,54 @@ private GkeHubGrpc() {} return getListMembershipsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse> + getListBoundMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBoundMemberships", + requestType = com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse> + getListBoundMembershipsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse> + getListBoundMembershipsMethod; + if ((getListBoundMembershipsMethod = GkeHubGrpc.getListBoundMembershipsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListBoundMembershipsMethod = GkeHubGrpc.getListBoundMembershipsMethod) == null) { + GkeHubGrpc.getListBoundMembershipsMethod = + getListBoundMembershipsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBoundMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListBoundMemberships")) + .build(); + } + } + } + return getListBoundMembershipsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.gkehub.v1.ListFeaturesRequest, com.google.cloud.gkehub.v1.ListFeaturesResponse> @@ -514,152 +562,3734 @@ private GkeHubGrpc() {} return getGenerateConnectManifestMethod; } - /** Creates a new async stub that supports all call types for the service */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateFleetRequest, com.google.longrunning.Operation> + getCreateFleetMethod; - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static GkeHubBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingV2Stub(channel, callOptions); - } - }; - return GkeHubBlockingV2Stub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFleet", + requestType = com.google.cloud.gkehub.v1.CreateFleetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateFleetRequest, com.google.longrunning.Operation> + getCreateFleetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateFleetRequest, com.google.longrunning.Operation> + getCreateFleetMethod; + if ((getCreateFleetMethod = GkeHubGrpc.getCreateFleetMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateFleetMethod = GkeHubGrpc.getCreateFleetMethod) == null) { + GkeHubGrpc.getCreateFleetMethod = + getCreateFleetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFleet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateFleetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFleet")) + .build(); + } + } + } + return getCreateFleetMethod; } - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetFleetRequest, com.google.cloud.gkehub.v1.Fleet> + getGetFleetMethod; - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFleet", + requestType = com.google.cloud.gkehub.v1.GetFleetRequest.class, + responseType = com.google.cloud.gkehub.v1.Fleet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetFleetRequest, com.google.cloud.gkehub.v1.Fleet> + getGetFleetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetFleetRequest, com.google.cloud.gkehub.v1.Fleet> + getGetFleetMethod; + if ((getGetFleetMethod = GkeHubGrpc.getGetFleetMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetFleetMethod = GkeHubGrpc.getGetFleetMethod) == null) { + GkeHubGrpc.getGetFleetMethod = + getGetFleetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFleet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetFleetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Fleet.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFleet")) + .build(); + } + } + } + return getGetFleetMethod; } - /** - * - * - *
              -   * The GKE Hub service handles the registration of many Kubernetes clusters to
              -   * Google Cloud, and the management of multi-cluster features over those
              -   * clusters.
              -   * The GKE Hub service operates on the following resources:
              -   * * [Membership][google.cloud.gkehub.v1.Membership]
              -   * * [Feature][google.cloud.gkehub.v1.Feature]
              -   * GKE Hub is currently available in the global region and all regions in
              -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              -   * available in global region while membership is global region and all the
              -   * regions.
              -   * **Membership management may be non-trivial:** it is recommended to use one
              -   * of the Google-provided client libraries or tools where possible when working
              -   * with Membership resources.
              -   * 
              - */ - public interface AsyncService { + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateFleetRequest, com.google.longrunning.Operation> + getUpdateFleetMethod; - /** - * - * - *
              -     * Lists Memberships in a given project and location.
              -     * 
              - */ - default void listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMembershipsMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFleet", + requestType = com.google.cloud.gkehub.v1.UpdateFleetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateFleetRequest, com.google.longrunning.Operation> + getUpdateFleetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateFleetRequest, com.google.longrunning.Operation> + getUpdateFleetMethod; + if ((getUpdateFleetMethod = GkeHubGrpc.getUpdateFleetMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateFleetMethod = GkeHubGrpc.getUpdateFleetMethod) == null) { + GkeHubGrpc.getUpdateFleetMethod = + getUpdateFleetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFleet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateFleetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFleet")) + .build(); + } + } } + return getUpdateFleetMethod; + } - /** - * - * - *
              -     * Lists Features in a given project and location.
              -     * 
              - */ - default void listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFeaturesMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteFleetRequest, com.google.longrunning.Operation> + getDeleteFleetMethod; - /** - * - * - *
              -     * Gets the details of a Membership.
              -     * 
              - */ - default void getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMembershipMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFleet", + requestType = com.google.cloud.gkehub.v1.DeleteFleetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteFleetRequest, com.google.longrunning.Operation> + getDeleteFleetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteFleetRequest, com.google.longrunning.Operation> + getDeleteFleetMethod; + if ((getDeleteFleetMethod = GkeHubGrpc.getDeleteFleetMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteFleetMethod = GkeHubGrpc.getDeleteFleetMethod) == null) { + GkeHubGrpc.getDeleteFleetMethod = + getDeleteFleetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFleet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteFleetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFleet")) + .build(); + } + } } + return getDeleteFleetMethod; + } - /** - * - * - *
              -     * Gets details of a single Feature.
              -     * 
              - */ - default void getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListFleetsRequest, + com.google.cloud.gkehub.v1.ListFleetsResponse> + getListFleetsMethod; - /** - * - * - *
              -     * Creates a new Membership.
              -     * **This is currently only supported for GKE clusters on Google Cloud**.
              -     * To register other clusters, follow the instructions at
              -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              -     * 
              - */ - default void createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMembershipMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFleets", + requestType = com.google.cloud.gkehub.v1.ListFleetsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListFleetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListFleetsRequest, + com.google.cloud.gkehub.v1.ListFleetsResponse> + getListFleetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListFleetsRequest, + com.google.cloud.gkehub.v1.ListFleetsResponse> + getListFleetsMethod; + if ((getListFleetsMethod = GkeHubGrpc.getListFleetsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListFleetsMethod = GkeHubGrpc.getListFleetsMethod) == null) { + GkeHubGrpc.getListFleetsMethod = + getListFleetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFleets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListFleetsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListFleetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFleets")) + .build(); + } + } + } + return getListFleetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest, com.google.cloud.gkehub.v1.Namespace> + getGetScopeNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScopeNamespace", + requestType = com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.class, + responseType = com.google.cloud.gkehub.v1.Namespace.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest, com.google.cloud.gkehub.v1.Namespace> + getGetScopeNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest, + com.google.cloud.gkehub.v1.Namespace> + getGetScopeNamespaceMethod; + if ((getGetScopeNamespaceMethod = GkeHubGrpc.getGetScopeNamespaceMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetScopeNamespaceMethod = GkeHubGrpc.getGetScopeNamespaceMethod) == null) { + GkeHubGrpc.getGetScopeNamespaceMethod = + getGetScopeNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScopeNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Namespace.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetScopeNamespace")) + .build(); + } + } + } + return getGetScopeNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest, com.google.longrunning.Operation> + getCreateScopeNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScopeNamespace", + requestType = com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest, com.google.longrunning.Operation> + getCreateScopeNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest, + com.google.longrunning.Operation> + getCreateScopeNamespaceMethod; + if ((getCreateScopeNamespaceMethod = GkeHubGrpc.getCreateScopeNamespaceMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateScopeNamespaceMethod = GkeHubGrpc.getCreateScopeNamespaceMethod) == null) { + GkeHubGrpc.getCreateScopeNamespaceMethod = + getCreateScopeNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateScopeNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("CreateScopeNamespace")) + .build(); + } + } + } + return getCreateScopeNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest, com.google.longrunning.Operation> + getUpdateScopeNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScopeNamespace", + requestType = com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest, com.google.longrunning.Operation> + getUpdateScopeNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest, + com.google.longrunning.Operation> + getUpdateScopeNamespaceMethod; + if ((getUpdateScopeNamespaceMethod = GkeHubGrpc.getUpdateScopeNamespaceMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateScopeNamespaceMethod = GkeHubGrpc.getUpdateScopeNamespaceMethod) == null) { + GkeHubGrpc.getUpdateScopeNamespaceMethod = + getUpdateScopeNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateScopeNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("UpdateScopeNamespace")) + .build(); + } + } + } + return getUpdateScopeNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest, com.google.longrunning.Operation> + getDeleteScopeNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScopeNamespace", + requestType = com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest, com.google.longrunning.Operation> + getDeleteScopeNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest, + com.google.longrunning.Operation> + getDeleteScopeNamespaceMethod; + if ((getDeleteScopeNamespaceMethod = GkeHubGrpc.getDeleteScopeNamespaceMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteScopeNamespaceMethod = GkeHubGrpc.getDeleteScopeNamespaceMethod) == null) { + GkeHubGrpc.getDeleteScopeNamespaceMethod = + getDeleteScopeNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteScopeNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("DeleteScopeNamespace")) + .build(); + } + } + } + return getDeleteScopeNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse> + getListScopeNamespacesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScopeNamespaces", + requestType = com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.class, + responseType = com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse> + getListScopeNamespacesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse> + getListScopeNamespacesMethod; + if ((getListScopeNamespacesMethod = GkeHubGrpc.getListScopeNamespacesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListScopeNamespacesMethod = GkeHubGrpc.getListScopeNamespacesMethod) == null) { + GkeHubGrpc.getListScopeNamespacesMethod = + getListScopeNamespacesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListScopeNamespaces")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListScopeNamespaces")) + .build(); + } + } + } + return getListScopeNamespacesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetScopeRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScopeRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.class, + responseType = com.google.cloud.gkehub.v1.RBACRoleBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetScopeRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetScopeRBACRoleBindingMethod; + if ((getGetScopeRBACRoleBindingMethod = GkeHubGrpc.getGetScopeRBACRoleBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetScopeRBACRoleBindingMethod = GkeHubGrpc.getGetScopeRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getGetScopeRBACRoleBindingMethod = + getGetScopeRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetScopeRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("GetScopeRBACRoleBinding")) + .build(); + } + } + } + return getGetScopeRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateScopeRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScopeRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateScopeRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateScopeRBACRoleBindingMethod; + if ((getCreateScopeRBACRoleBindingMethod = GkeHubGrpc.getCreateScopeRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateScopeRBACRoleBindingMethod = GkeHubGrpc.getCreateScopeRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getCreateScopeRBACRoleBindingMethod = + getCreateScopeRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateScopeRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("CreateScopeRBACRoleBinding")) + .build(); + } + } + } + return getCreateScopeRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateScopeRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScopeRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateScopeRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateScopeRBACRoleBindingMethod; + if ((getUpdateScopeRBACRoleBindingMethod = GkeHubGrpc.getUpdateScopeRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateScopeRBACRoleBindingMethod = GkeHubGrpc.getUpdateScopeRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getUpdateScopeRBACRoleBindingMethod = + getUpdateScopeRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateScopeRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("UpdateScopeRBACRoleBinding")) + .build(); + } + } + } + return getUpdateScopeRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteScopeRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScopeRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteScopeRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteScopeRBACRoleBindingMethod; + if ((getDeleteScopeRBACRoleBindingMethod = GkeHubGrpc.getDeleteScopeRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteScopeRBACRoleBindingMethod = GkeHubGrpc.getDeleteScopeRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getDeleteScopeRBACRoleBindingMethod = + getDeleteScopeRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteScopeRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("DeleteScopeRBACRoleBinding")) + .build(); + } + } + } + return getDeleteScopeRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse> + getListScopeRBACRoleBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScopeRBACRoleBindings", + requestType = com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse> + getListScopeRBACRoleBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse> + getListScopeRBACRoleBindingsMethod; + if ((getListScopeRBACRoleBindingsMethod = GkeHubGrpc.getListScopeRBACRoleBindingsMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getListScopeRBACRoleBindingsMethod = GkeHubGrpc.getListScopeRBACRoleBindingsMethod) + == null) { + GkeHubGrpc.getListScopeRBACRoleBindingsMethod = + getListScopeRBACRoleBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListScopeRBACRoleBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListScopeRBACRoleBindings")) + .build(); + } + } + } + return getListScopeRBACRoleBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRequest, com.google.cloud.gkehub.v1.Scope> + getGetScopeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScope", + requestType = com.google.cloud.gkehub.v1.GetScopeRequest.class, + responseType = com.google.cloud.gkehub.v1.Scope.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRequest, com.google.cloud.gkehub.v1.Scope> + getGetScopeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRequest, com.google.cloud.gkehub.v1.Scope> + getGetScopeMethod; + if ((getGetScopeMethod = GkeHubGrpc.getGetScopeMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetScopeMethod = GkeHubGrpc.getGetScopeMethod) == null) { + GkeHubGrpc.getGetScopeMethod = + getGetScopeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScope")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetScopeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Scope.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetScope")) + .build(); + } + } + } + return getGetScopeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRequest, com.google.longrunning.Operation> + getCreateScopeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScope", + requestType = com.google.cloud.gkehub.v1.CreateScopeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRequest, com.google.longrunning.Operation> + getCreateScopeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRequest, com.google.longrunning.Operation> + getCreateScopeMethod; + if ((getCreateScopeMethod = GkeHubGrpc.getCreateScopeMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateScopeMethod = GkeHubGrpc.getCreateScopeMethod) == null) { + GkeHubGrpc.getCreateScopeMethod = + getCreateScopeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScope")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateScopeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateScope")) + .build(); + } + } + } + return getCreateScopeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRequest, com.google.longrunning.Operation> + getUpdateScopeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScope", + requestType = com.google.cloud.gkehub.v1.UpdateScopeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRequest, com.google.longrunning.Operation> + getUpdateScopeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRequest, com.google.longrunning.Operation> + getUpdateScopeMethod; + if ((getUpdateScopeMethod = GkeHubGrpc.getUpdateScopeMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateScopeMethod = GkeHubGrpc.getUpdateScopeMethod) == null) { + GkeHubGrpc.getUpdateScopeMethod = + getUpdateScopeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScope")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateScopeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateScope")) + .build(); + } + } + } + return getUpdateScopeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRequest, com.google.longrunning.Operation> + getDeleteScopeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScope", + requestType = com.google.cloud.gkehub.v1.DeleteScopeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRequest, com.google.longrunning.Operation> + getDeleteScopeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRequest, com.google.longrunning.Operation> + getDeleteScopeMethod; + if ((getDeleteScopeMethod = GkeHubGrpc.getDeleteScopeMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteScopeMethod = GkeHubGrpc.getDeleteScopeMethod) == null) { + GkeHubGrpc.getDeleteScopeMethod = + getDeleteScopeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScope")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteScopeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteScope")) + .build(); + } + } + } + return getDeleteScopeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopesRequest, + com.google.cloud.gkehub.v1.ListScopesResponse> + getListScopesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScopes", + requestType = com.google.cloud.gkehub.v1.ListScopesRequest.class, + responseType = com.google.cloud.gkehub.v1.ListScopesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopesRequest, + com.google.cloud.gkehub.v1.ListScopesResponse> + getListScopesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopesRequest, + com.google.cloud.gkehub.v1.ListScopesResponse> + getListScopesMethod; + if ((getListScopesMethod = GkeHubGrpc.getListScopesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListScopesMethod = GkeHubGrpc.getListScopesMethod) == null) { + GkeHubGrpc.getListScopesMethod = + getListScopesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScopes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopesResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListScopes")) + .build(); + } + } + } + return getListScopesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListPermittedScopesRequest, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse> + getListPermittedScopesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPermittedScopes", + requestType = com.google.cloud.gkehub.v1.ListPermittedScopesRequest.class, + responseType = com.google.cloud.gkehub.v1.ListPermittedScopesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListPermittedScopesRequest, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse> + getListPermittedScopesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListPermittedScopesRequest, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse> + getListPermittedScopesMethod; + if ((getListPermittedScopesMethod = GkeHubGrpc.getListPermittedScopesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListPermittedScopesMethod = GkeHubGrpc.getListPermittedScopesMethod) == null) { + GkeHubGrpc.getListPermittedScopesMethod = + getListPermittedScopesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPermittedScopes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListPermittedScopesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListPermittedScopes")) + .build(); + } + } + } + return getListPermittedScopesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipBindingRequest, + com.google.cloud.gkehub.v1.MembershipBinding> + getGetMembershipBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembershipBinding", + requestType = com.google.cloud.gkehub.v1.GetMembershipBindingRequest.class, + responseType = com.google.cloud.gkehub.v1.MembershipBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipBindingRequest, + com.google.cloud.gkehub.v1.MembershipBinding> + getGetMembershipBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipBindingRequest, + com.google.cloud.gkehub.v1.MembershipBinding> + getGetMembershipBindingMethod; + if ((getGetMembershipBindingMethod = GkeHubGrpc.getGetMembershipBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetMembershipBindingMethod = GkeHubGrpc.getGetMembershipBindingMethod) == null) { + GkeHubGrpc.getGetMembershipBindingMethod = + getGetMembershipBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMembershipBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("GetMembershipBinding")) + .build(); + } + } + } + return getGetMembershipBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembershipBinding", + requestType = com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipBindingMethod; + if ((getCreateMembershipBindingMethod = GkeHubGrpc.getCreateMembershipBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateMembershipBindingMethod = GkeHubGrpc.getCreateMembershipBindingMethod) + == null) { + GkeHubGrpc.getCreateMembershipBindingMethod = + getCreateMembershipBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMembershipBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("CreateMembershipBinding")) + .build(); + } + } + } + return getCreateMembershipBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembershipBinding", + requestType = com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipBindingMethod; + if ((getUpdateMembershipBindingMethod = GkeHubGrpc.getUpdateMembershipBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateMembershipBindingMethod = GkeHubGrpc.getUpdateMembershipBindingMethod) + == null) { + GkeHubGrpc.getUpdateMembershipBindingMethod = + getUpdateMembershipBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMembershipBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("UpdateMembershipBinding")) + .build(); + } + } + } + return getUpdateMembershipBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembershipBinding", + requestType = com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipBindingMethod; + if ((getDeleteMembershipBindingMethod = GkeHubGrpc.getDeleteMembershipBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteMembershipBindingMethod = GkeHubGrpc.getDeleteMembershipBindingMethod) + == null) { + GkeHubGrpc.getDeleteMembershipBindingMethod = + getDeleteMembershipBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMembershipBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("DeleteMembershipBinding")) + .build(); + } + } + } + return getDeleteMembershipBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse> + getListMembershipBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMembershipBindings", + requestType = com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse> + getListMembershipBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse> + getListMembershipBindingsMethod; + if ((getListMembershipBindingsMethod = GkeHubGrpc.getListMembershipBindingsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListMembershipBindingsMethod = GkeHubGrpc.getListMembershipBindingsMethod) + == null) { + GkeHubGrpc.getListMembershipBindingsMethod = + getListMembershipBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMembershipBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListMembershipBindings")) + .build(); + } + } + } + return getListMembershipBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetMembershipRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembershipRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.class, + responseType = com.google.cloud.gkehub.v1.RBACRoleBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetMembershipRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetMembershipRBACRoleBindingMethod; + if ((getGetMembershipRBACRoleBindingMethod = GkeHubGrpc.getGetMembershipRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetMembershipRBACRoleBindingMethod = + GkeHubGrpc.getGetMembershipRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getGetMembershipRBACRoleBindingMethod = + getGetMembershipRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMembershipRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("GetMembershipRBACRoleBinding")) + .build(); + } + } + } + return getGetMembershipRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembershipRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipRBACRoleBindingMethod; + if ((getCreateMembershipRBACRoleBindingMethod = + GkeHubGrpc.getCreateMembershipRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateMembershipRBACRoleBindingMethod = + GkeHubGrpc.getCreateMembershipRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getCreateMembershipRBACRoleBindingMethod = + getCreateMembershipRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMembershipRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("CreateMembershipRBACRoleBinding")) + .build(); + } + } + } + return getCreateMembershipRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembershipRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipRBACRoleBindingMethod; + if ((getUpdateMembershipRBACRoleBindingMethod = + GkeHubGrpc.getUpdateMembershipRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateMembershipRBACRoleBindingMethod = + GkeHubGrpc.getUpdateMembershipRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getUpdateMembershipRBACRoleBindingMethod = + getUpdateMembershipRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMembershipRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("UpdateMembershipRBACRoleBinding")) + .build(); + } + } + } + return getUpdateMembershipRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembershipRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipRBACRoleBindingMethod; + if ((getDeleteMembershipRBACRoleBindingMethod = + GkeHubGrpc.getDeleteMembershipRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteMembershipRBACRoleBindingMethod = + GkeHubGrpc.getDeleteMembershipRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getDeleteMembershipRBACRoleBindingMethod = + getDeleteMembershipRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMembershipRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("DeleteMembershipRBACRoleBinding")) + .build(); + } + } + } + return getDeleteMembershipRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + getListMembershipRBACRoleBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMembershipRBACRoleBindings", + requestType = com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + getListMembershipRBACRoleBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + getListMembershipRBACRoleBindingsMethod; + if ((getListMembershipRBACRoleBindingsMethod = + GkeHubGrpc.getListMembershipRBACRoleBindingsMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getListMembershipRBACRoleBindingsMethod = + GkeHubGrpc.getListMembershipRBACRoleBindingsMethod) + == null) { + GkeHubGrpc.getListMembershipRBACRoleBindingsMethod = + getListMembershipRBACRoleBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMembershipRBACRoleBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListMembershipRBACRoleBindings")) + .build(); + } + } + } + return getListMembershipRBACRoleBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + getGenerateMembershipRBACRoleBindingYAMLMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateMembershipRBACRoleBindingYAML", + requestType = com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.class, + responseType = com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + getGenerateMembershipRBACRoleBindingYAMLMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + getGenerateMembershipRBACRoleBindingYAMLMethod; + if ((getGenerateMembershipRBACRoleBindingYAMLMethod = + GkeHubGrpc.getGenerateMembershipRBACRoleBindingYAMLMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getGenerateMembershipRBACRoleBindingYAMLMethod = + GkeHubGrpc.getGenerateMembershipRBACRoleBindingYAMLMethod) + == null) { + GkeHubGrpc.getGenerateMembershipRBACRoleBindingYAMLMethod = + getGenerateMembershipRBACRoleBindingYAMLMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GenerateMembershipRBACRoleBindingYAML")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1 + .GenerateMembershipRBACRoleBindingYAMLRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1 + .GenerateMembershipRBACRoleBindingYAMLResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier( + "GenerateMembershipRBACRoleBindingYAML")) + .build(); + } + } + } + return getGenerateMembershipRBACRoleBindingYAMLMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static GkeHubBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingV2Stub(channel, callOptions); + } + }; + return GkeHubBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + * + * + *
              +   * The GKE Hub service handles the registration of many Kubernetes clusters to
              +   * Google Cloud, and the management of multi-cluster features over those
              +   * clusters.
              +   * The GKE Hub service operates on the following resources:
              +   * * [Membership][google.cloud.gkehub.v1.Membership]
              +   * * [Feature][google.cloud.gkehub.v1.Feature]
              +   * GKE Hub is currently available in the global region and all regions in
              +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              +   * available in global region while membership is global region and all the
              +   * regions.
              +   * **Membership management may be non-trivial:** it is recommended to use one
              +   * of the Google-provided client libraries or tools where possible when working
              +   * with Membership resources.
              +   * 
              + */ + public interface AsyncService { + + /** + * + * + *
              +     * Lists Memberships in a given project and location.
              +     * 
              + */ + default void listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembershipsMethod(), responseObserver); + } + + /** + * + * + *
              +     * Lists Memberships bound to a Scope. The response includes relevant
              +     * Memberships from all regions.
              +     * 
              + */ + default void listBoundMemberships( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBoundMembershipsMethod(), responseObserver); + } + + /** + * + * + *
              +     * Lists Features in a given project and location.
              +     * 
              + */ + default void listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFeaturesMethod(), responseObserver); + } + + /** + * + * + *
              +     * Gets the details of a Membership.
              +     * 
              + */ + default void getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMembershipMethod(), responseObserver); + } + + /** + * + * + *
              +     * Gets details of a single Feature.
              +     * 
              + */ + default void getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); + } + + /** + * + * + *
              +     * Creates a new Membership.
              +     * **This is currently only supported for GKE clusters on Google Cloud**.
              +     * To register other clusters, follow the instructions at
              +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              +     * 
              + */ + default void createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMembershipMethod(), responseObserver); + } + + /** + * + * + *
              +     * Adds a new Feature.
              +     * 
              + */ + default void createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFeatureMethod(), responseObserver); + } + + /** + * + * + *
              +     * Removes a Membership.
              +     * **This is currently only supported for GKE clusters on Google Cloud**.
              +     * To unregister other clusters, follow the instructions at
              +     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
              +     * 
              + */ + default void deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMembershipMethod(), responseObserver); + } + + /** + * + * + *
              +     * Removes a Feature.
              +     * 
              + */ + default void deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFeatureMethod(), responseObserver); + } + + /** + * + * + *
              +     * Updates an existing Membership.
              +     * 
              + */ + default void updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMembershipMethod(), responseObserver); + } + + /** + * + * + *
              +     * Updates an existing Feature.
              +     * 
              + */ + default void updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFeatureMethod(), responseObserver); + } + + /** + * + * + *
              +     * Generates the manifest for deployment of the GKE connect agent.
              +     * **This method is used internally by Google-provided libraries.**
              +     * Most clients should not need to call this method directly.
              +     * 
              + */ + default void generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateConnectManifestMethod(), responseObserver); + } + + /** + * + * + *
              +     * Creates a fleet.
              +     * 
              + */ + default void createFleet( + com.google.cloud.gkehub.v1.CreateFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFleetMethod(), responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a fleet.
              +     * 
              + */ + default void getFleet( + com.google.cloud.gkehub.v1.GetFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFleetMethod(), responseObserver); + } + + /** + * + * + *
              +     * Updates a fleet.
              +     * 
              + */ + default void updateFleet( + com.google.cloud.gkehub.v1.UpdateFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFleetMethod(), responseObserver); + } + + /** + * + * + *
              +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
              +     * 
              + */ + default void deleteFleet( + com.google.cloud.gkehub.v1.DeleteFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFleetMethod(), responseObserver); + } + + /** + * + * + *
              +     * Returns all fleets within an organization or a project that the caller has
              +     * access to.
              +     * 
              + */ + default void listFleets( + com.google.cloud.gkehub.v1.ListFleetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFleetsMethod(), responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a fleet namespace.
              +     * 
              + */ + default void getScopeNamespace( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetScopeNamespaceMethod(), responseObserver); + } + + /** + * + * + *
              +     * Creates a fleet namespace.
              +     * 
              + */ + default void createScopeNamespace( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScopeNamespaceMethod(), responseObserver); + } + + /** + * + * + *
              +     * Updates a fleet namespace.
              +     * 
              + */ + default void updateScopeNamespace( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateScopeNamespaceMethod(), responseObserver); + } + + /** + * + * + *
              +     * Deletes a fleet namespace.
              +     * 
              + */ + default void deleteScopeNamespace( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScopeNamespaceMethod(), responseObserver); + } + + /** + * + * + *
              +     * Lists fleet namespaces.
              +     * 
              + */ + default void listScopeNamespaces( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScopeNamespacesMethod(), responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a Scope RBACRoleBinding.
              +     * 
              + */ + default void getScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetScopeRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Creates a Scope RBACRoleBinding.
              +     * 
              + */ + default void createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScopeRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Updates a Scope RBACRoleBinding.
              +     * 
              + */ + default void updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateScopeRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Deletes a Scope RBACRoleBinding.
              +     * 
              + */ + default void deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScopeRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Lists all Scope RBACRoleBindings.
              +     * 
              + */ + default void listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScopeRBACRoleBindingsMethod(), responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a Scope.
              +     * 
              + */ + default void getScope( + com.google.cloud.gkehub.v1.GetScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScopeMethod(), responseObserver); + } + + /** + * + * + *
              +     * Creates a Scope.
              +     * 
              + */ + default void createScope( + com.google.cloud.gkehub.v1.CreateScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScopeMethod(), responseObserver); + } + + /** + * + * + *
              +     * Updates a scopes.
              +     * 
              + */ + default void updateScope( + com.google.cloud.gkehub.v1.UpdateScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateScopeMethod(), responseObserver); + } + + /** + * + * + *
              +     * Deletes a Scope.
              +     * 
              + */ + default void deleteScope( + com.google.cloud.gkehub.v1.DeleteScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScopeMethod(), responseObserver); + } + + /** + * + * + *
              +     * Lists Scopes.
              +     * 
              + */ + default void listScopes( + com.google.cloud.gkehub.v1.ListScopesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScopesMethod(), responseObserver); + } + + /** + * + * + *
              +     * Lists permitted Scopes.
              +     * 
              + */ + default void listPermittedScopes( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPermittedScopesMethod(), responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a MembershipBinding.
              +     * 
              + */ + default void getMembershipBinding( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMembershipBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Creates a MembershipBinding.
              +     * 
              + */ + default void createMembershipBinding( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMembershipBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Updates a MembershipBinding.
              +     * 
              + */ + default void updateMembershipBinding( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMembershipBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Deletes a MembershipBinding.
              +     * 
              + */ + default void deleteMembershipBinding( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMembershipBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Lists MembershipBindings.
              +     * 
              + */ + default void listMembershipBindings( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembershipBindingsMethod(), responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a Membership RBACRoleBinding.
              +     * 
              + */ + default void getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMembershipRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Creates a Membership RBACRoleBinding.
              +     * 
              + */ + default void createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMembershipRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Updates a Membership RBACRoleBinding.
              +     * 
              + */ + default void updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMembershipRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Deletes a Membership RBACRoleBinding.
              +     * 
              + */ + default void deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMembershipRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
              +     * Lists all Membership RBACRoleBindings.
              +     * 
              + */ + default void listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembershipRBACRoleBindingsMethod(), responseObserver); + } + + /** + * + * + *
              +     * Generates a YAML of the  RBAC policies for the specified
              +     * RoleBinding and its associated impersonation resources.
              +     * 
              + */ + default void generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateMembershipRBACRoleBindingYAMLMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service GkeHub. + * + *
              +   * The GKE Hub service handles the registration of many Kubernetes clusters to
              +   * Google Cloud, and the management of multi-cluster features over those
              +   * clusters.
              +   * The GKE Hub service operates on the following resources:
              +   * * [Membership][google.cloud.gkehub.v1.Membership]
              +   * * [Feature][google.cloud.gkehub.v1.Feature]
              +   * GKE Hub is currently available in the global region and all regions in
              +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              +   * available in global region while membership is global region and all the
              +   * regions.
              +   * **Membership management may be non-trivial:** it is recommended to use one
              +   * of the Google-provided client libraries or tools where possible when working
              +   * with Membership resources.
              +   * 
              + */ + public abstract static class GkeHubImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return GkeHubGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service GkeHub. + * + *
              +   * The GKE Hub service handles the registration of many Kubernetes clusters to
              +   * Google Cloud, and the management of multi-cluster features over those
              +   * clusters.
              +   * The GKE Hub service operates on the following resources:
              +   * * [Membership][google.cloud.gkehub.v1.Membership]
              +   * * [Feature][google.cloud.gkehub.v1.Feature]
              +   * GKE Hub is currently available in the global region and all regions in
              +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              +   * available in global region while membership is global region and all the
              +   * regions.
              +   * **Membership management may be non-trivial:** it is recommended to use one
              +   * of the Google-provided client libraries or tools where possible when working
              +   * with Membership resources.
              +   * 
              + */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + * + * + *
              +     * Lists Memberships in a given project and location.
              +     * 
              + */ + public void listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Lists Memberships bound to a Scope. The response includes relevant
              +     * Memberships from all regions.
              +     * 
              + */ + public void listBoundMemberships( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBoundMembershipsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Lists Features in a given project and location.
              +     * 
              + */ + public void listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Gets the details of a Membership.
              +     * 
              + */ + public void getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Gets details of a single Feature.
              +     * 
              + */ + public void getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
              +     * Creates a new Membership.
              +     * **This is currently only supported for GKE clusters on Google Cloud**.
              +     * To register other clusters, follow the instructions at
              +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              +     * 
              + */ + public void createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Adds a new Feature.
              +     * 
              + */ + public void createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Removes a Membership.
              +     * **This is currently only supported for GKE clusters on Google Cloud**.
              +     * To unregister other clusters, follow the instructions at
              +     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
              +     * 
              + */ + public void deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Removes a Feature.
              +     * 
              + */ + public void deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Updates an existing Membership.
              +     * 
              + */ + public void updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Updates an existing Feature.
              +     * 
              + */ + public void updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Generates the manifest for deployment of the GKE connect agent.
              +     * **This method is used internally by Google-provided libraries.**
              +     * Most clients should not need to call this method directly.
              +     * 
              + */ + public void generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Creates a fleet.
              +     * 
              + */ + public void createFleet( + com.google.cloud.gkehub.v1.CreateFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFleetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a fleet.
              +     * 
              + */ + public void getFleet( + com.google.cloud.gkehub.v1.GetFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFleetMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
              +     * Updates a fleet.
              +     * 
              + */ + public void updateFleet( + com.google.cloud.gkehub.v1.UpdateFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFleetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
              +     * 
              + */ + public void deleteFleet( + com.google.cloud.gkehub.v1.DeleteFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFleetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Returns all fleets within an organization or a project that the caller has
              +     * access to.
              +     * 
              + */ + public void listFleets( + com.google.cloud.gkehub.v1.ListFleetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFleetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a fleet namespace.
              +     * 
              + */ + public void getScopeNamespace( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScopeNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Creates a fleet namespace.
              +     * 
              + */ + public void createScopeNamespace( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScopeNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Updates a fleet namespace.
              +     * 
              + */ + public void updateScopeNamespace( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScopeNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Deletes a fleet namespace.
              +     * 
              + */ + public void deleteScopeNamespace( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScopeNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Lists fleet namespaces.
              +     * 
              + */ + public void listScopeNamespaces( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScopeNamespacesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a Scope RBACRoleBinding.
              +     * 
              + */ + public void getScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScopeRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Creates a Scope RBACRoleBinding.
              +     * 
              + */ + public void createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScopeRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Updates a Scope RBACRoleBinding.
              +     * 
              + */ + public void updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScopeRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Deletes a Scope RBACRoleBinding.
              +     * 
              + */ + public void deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScopeRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Lists all Scope RBACRoleBindings.
              +     * 
              + */ + public void listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScopeRBACRoleBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a Scope.
              +     * 
              + */ + public void getScope( + com.google.cloud.gkehub.v1.GetScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScopeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
              +     * Creates a Scope.
              +     * 
              + */ + public void createScope( + com.google.cloud.gkehub.v1.CreateScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScopeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Updates a scopes.
              +     * 
              + */ + public void updateScope( + com.google.cloud.gkehub.v1.UpdateScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScopeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Deletes a Scope.
              +     * 
              + */ + public void deleteScope( + com.google.cloud.gkehub.v1.DeleteScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScopeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Lists Scopes.
              +     * 
              + */ + public void listScopes( + com.google.cloud.gkehub.v1.ListScopesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScopesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
              +     * Lists permitted Scopes.
              +     * 
              + */ + public void listPermittedScopes( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPermittedScopesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a MembershipBinding.
              +     * 
              + */ + public void getMembershipBinding( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Creates a MembershipBinding.
              +     * 
              + */ + public void createMembershipBinding( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Updates a MembershipBinding.
              +     * 
              + */ + public void updateMembershipBinding( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Deletes a MembershipBinding.
              +     * 
              + */ + public void deleteMembershipBinding( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Lists MembershipBindings.
              +     * 
              + */ + public void listMembershipBindings( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Returns the details of a Membership RBACRoleBinding.
              +     * 
              + */ + public void getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Creates a Membership RBACRoleBinding.
              +     * 
              + */ + public void createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Updates a Membership RBACRoleBinding.
              +     * 
              + */ + public void updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Deletes a Membership RBACRoleBinding.
              +     * 
              + */ + public void deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Lists all Membership RBACRoleBindings.
              +     * 
              + */ + public void listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipRBACRoleBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Generates a YAML of the  RBAC policies for the specified
              +     * RoleBinding and its associated impersonation resources.
              +     * 
              + */ + public void generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateMembershipRBACRoleBindingYAMLMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service GkeHub. + * + *
              +   * The GKE Hub service handles the registration of many Kubernetes clusters to
              +   * Google Cloud, and the management of multi-cluster features over those
              +   * clusters.
              +   * The GKE Hub service operates on the following resources:
              +   * * [Membership][google.cloud.gkehub.v1.Membership]
              +   * * [Feature][google.cloud.gkehub.v1.Feature]
              +   * GKE Hub is currently available in the global region and all regions in
              +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              +   * available in global region while membership is global region and all the
              +   * regions.
              +   * **Membership management may be non-trivial:** it is recommended to use one
              +   * of the Google-provided client libraries or tools where possible when working
              +   * with Membership resources.
              +   * 
              + */ + public static final class GkeHubBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
              +     * Lists Memberships in a given project and location.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists Memberships bound to a Scope. The response includes relevant
              +     * Memberships from all regions.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse listBoundMemberships( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBoundMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists Features in a given project and location.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Gets the details of a Membership.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Membership getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Gets details of a single Feature.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Feature getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a new Membership.
              +     * **This is currently only supported for GKE clusters on Google Cloud**.
              +     * To register other clusters, follow the instructions at
              +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              +     * 
              + */ + public com.google.longrunning.Operation createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Adds a new Feature.
              +     * 
              + */ + public com.google.longrunning.Operation createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Removes a Membership.
              +     * **This is currently only supported for GKE clusters on Google Cloud**.
              +     * To unregister other clusters, follow the instructions at
              +     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
              +     * 
              + */ + public com.google.longrunning.Operation deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Removes a Feature.
              +     * 
              + */ + public com.google.longrunning.Operation deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates an existing Membership.
              +     * 
              + */ + public com.google.longrunning.Operation updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates an existing Feature.
              +     * 
              + */ + public com.google.longrunning.Operation updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Generates the manifest for deployment of the GKE connect agent.
              +     * **This method is used internally by Google-provided libraries.**
              +     * Most clients should not need to call this method directly.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a fleet.
              +     * 
              + */ + public com.google.longrunning.Operation createFleet( + com.google.cloud.gkehub.v1.CreateFleetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a fleet.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Fleet getFleet( + com.google.cloud.gkehub.v1.GetFleetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a fleet.
              +     * 
              + */ + public com.google.longrunning.Operation updateFleet( + com.google.cloud.gkehub.v1.UpdateFleetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
              +     * 
              + */ + public com.google.longrunning.Operation deleteFleet( + com.google.cloud.gkehub.v1.DeleteFleetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns all fleets within an organization or a project that the caller has
              +     * access to.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListFleetsResponse listFleets( + com.google.cloud.gkehub.v1.ListFleetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFleetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a fleet namespace.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a fleet namespace.
              +     * 
              + */ + public com.google.longrunning.Operation createScopeNamespace( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a fleet namespace.
              +     * 
              + */ + public com.google.longrunning.Operation updateScopeNamespace( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Deletes a fleet namespace.
              +     * 
              + */ + public com.google.longrunning.Operation deleteScopeNamespace( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists fleet namespaces.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse listScopeNamespaces( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListScopeNamespacesMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a Scope RBACRoleBinding.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a Scope RBACRoleBinding.
              +     * 
              + */ + public com.google.longrunning.Operation createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a Scope RBACRoleBinding.
              +     * 
              + */ + public com.google.longrunning.Operation updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Deletes a Scope RBACRoleBinding.
              +     * 
              + */ + public com.google.longrunning.Operation deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists all Scope RBACRoleBindings.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListScopeRBACRoleBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a Scope.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Scope getScope( + com.google.cloud.gkehub.v1.GetScopeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a Scope.
              +     * 
              + */ + public com.google.longrunning.Operation createScope( + com.google.cloud.gkehub.v1.CreateScopeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a scopes.
              +     * 
              + */ + public com.google.longrunning.Operation updateScope( + com.google.cloud.gkehub.v1.UpdateScopeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Deletes a Scope.
              +     * 
              + */ + public com.google.longrunning.Operation deleteScope( + com.google.cloud.gkehub.v1.DeleteScopeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists Scopes.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListScopesResponse listScopes( + com.google.cloud.gkehub.v1.ListScopesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListScopesMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists permitted Scopes.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse listPermittedScopes( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListPermittedScopesMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a MembershipBinding.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMembershipBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a MembershipBinding.
              +     * 
              + */ + public com.google.longrunning.Operation createMembershipBinding( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMembershipBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a MembershipBinding.
              +     * 
              + */ + public com.google.longrunning.Operation updateMembershipBinding( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMembershipBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Deletes a MembershipBinding.
              +     * 
              + */ + public com.google.longrunning.Operation deleteMembershipBinding( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMembershipBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists MembershipBindings.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse listMembershipBindings( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMembershipBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a Membership RBACRoleBinding.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMembershipRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a Membership RBACRoleBinding.
              +     * 
              + */ + public com.google.longrunning.Operation createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMembershipRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a Membership RBACRoleBinding.
              +     * 
              + */ + public com.google.longrunning.Operation updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMembershipRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Deletes a Membership RBACRoleBinding.
              +     * 
              + */ + public com.google.longrunning.Operation deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMembershipRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists all Membership RBACRoleBindings.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMembershipRBACRoleBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Generates a YAML of the  RBAC policies for the specified
              +     * RoleBinding and its associated impersonation resources.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getGenerateMembershipRBACRoleBindingYAMLMethod(), + getCallOptions(), + request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service GkeHub. + * + *
              +   * The GKE Hub service handles the registration of many Kubernetes clusters to
              +   * Google Cloud, and the management of multi-cluster features over those
              +   * clusters.
              +   * The GKE Hub service operates on the following resources:
              +   * * [Membership][google.cloud.gkehub.v1.Membership]
              +   * * [Feature][google.cloud.gkehub.v1.Feature]
              +   * GKE Hub is currently available in the global region and all regions in
              +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              +   * available in global region while membership is global region and all the
              +   * regions.
              +   * **Membership management may be non-trivial:** it is recommended to use one
              +   * of the Google-provided client libraries or tools where possible when working
              +   * with Membership resources.
              +   * 
              + */ + public static final class GkeHubBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + * + * + *
              +     * Lists Memberships in a given project and location.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists Memberships bound to a Scope. The response includes relevant
              +     * Memberships from all regions.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse listBoundMemberships( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBoundMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists Features in a given project and location.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Gets the details of a Membership.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Membership getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Gets details of a single Feature.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Feature getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a new Membership.
              +     * **This is currently only supported for GKE clusters on Google Cloud**.
              +     * To register other clusters, follow the instructions at
              +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              +     * 
              + */ + public com.google.longrunning.Operation createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); } /** @@ -669,11 +4299,10 @@ default void createMembership( * Adds a new Feature. * */ - default void createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFeatureMethod(), responseObserver); + public com.google.longrunning.Operation createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); } /** @@ -686,11 +4315,10 @@ default void createFeature( * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. * */ - default void deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteMembershipMethod(), responseObserver); + public com.google.longrunning.Operation deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); } /** @@ -700,11 +4328,10 @@ default void deleteMembership( * Removes a Feature. * */ - default void deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFeatureMethod(), responseObserver); + public com.google.longrunning.Operation deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); } /** @@ -714,11 +4341,10 @@ default void deleteFeature( * Updates an existing Membership. * */ - default void updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateMembershipMethod(), responseObserver); + public com.google.longrunning.Operation updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); } /** @@ -728,11 +4354,10 @@ default void updateMembership( * Updates an existing Feature. * */ - default void updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFeatureMethod(), responseObserver); + public com.google.longrunning.Operation updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); } /** @@ -744,259 +4369,438 @@ default void updateFeature( * Most clients should not need to call this method directly. * */ - default void generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateConnectManifestMethod(), responseObserver); + public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); } - } - /** - * Base class for the server implementation of the service GkeHub. - * - *
              -   * The GKE Hub service handles the registration of many Kubernetes clusters to
              -   * Google Cloud, and the management of multi-cluster features over those
              -   * clusters.
              -   * The GKE Hub service operates on the following resources:
              -   * * [Membership][google.cloud.gkehub.v1.Membership]
              -   * * [Feature][google.cloud.gkehub.v1.Feature]
              -   * GKE Hub is currently available in the global region and all regions in
              -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              -   * available in global region while membership is global region and all the
              -   * regions.
              -   * **Membership management may be non-trivial:** it is recommended to use one
              -   * of the Google-provided client libraries or tools where possible when working
              -   * with Membership resources.
              -   * 
              - */ - public abstract static class GkeHubImplBase implements io.grpc.BindableService, AsyncService { + /** + * + * + *
              +     * Creates a fleet.
              +     * 
              + */ + public com.google.longrunning.Operation createFleet( + com.google.cloud.gkehub.v1.CreateFleetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a fleet.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Fleet getFleet( + com.google.cloud.gkehub.v1.GetFleetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a fleet.
              +     * 
              + */ + public com.google.longrunning.Operation updateFleet( + com.google.cloud.gkehub.v1.UpdateFleetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
              +     * 
              + */ + public com.google.longrunning.Operation deleteFleet( + com.google.cloud.gkehub.v1.DeleteFleetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns all fleets within an organization or a project that the caller has
              +     * access to.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListFleetsResponse listFleets( + com.google.cloud.gkehub.v1.ListFleetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFleetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a fleet namespace.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a fleet namespace.
              +     * 
              + */ + public com.google.longrunning.Operation createScopeNamespace( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a fleet namespace.
              +     * 
              + */ + public com.google.longrunning.Operation updateScopeNamespace( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Deletes a fleet namespace.
              +     * 
              + */ + public com.google.longrunning.Operation deleteScopeNamespace( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists fleet namespaces.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse listScopeNamespaces( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScopeNamespacesMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a Scope RBACRoleBinding.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a Scope RBACRoleBinding.
              +     * 
              + */ + public com.google.longrunning.Operation createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a Scope RBACRoleBinding.
              +     * 
              + */ + public com.google.longrunning.Operation updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Deletes a Scope RBACRoleBinding.
              +     * 
              + */ + public com.google.longrunning.Operation deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists all Scope RBACRoleBindings.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScopeRBACRoleBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns the details of a Scope.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.Scope getScope( + com.google.cloud.gkehub.v1.GetScopeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Creates a Scope.
              +     * 
              + */ + public com.google.longrunning.Operation createScope( + com.google.cloud.gkehub.v1.CreateScopeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates a scopes.
              +     * 
              + */ + public com.google.longrunning.Operation updateScope( + com.google.cloud.gkehub.v1.UpdateScopeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScopeMethod(), getCallOptions(), request); + } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return GkeHubGrpc.bindService(this); + /** + * + * + *
              +     * Deletes a Scope.
              +     * 
              + */ + public com.google.longrunning.Operation deleteScope( + com.google.cloud.gkehub.v1.DeleteScopeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScopeMethod(), getCallOptions(), request); } - } - /** - * A stub to allow clients to do asynchronous rpc calls to service GkeHub. - * - *
              -   * The GKE Hub service handles the registration of many Kubernetes clusters to
              -   * Google Cloud, and the management of multi-cluster features over those
              -   * clusters.
              -   * The GKE Hub service operates on the following resources:
              -   * * [Membership][google.cloud.gkehub.v1.Membership]
              -   * * [Feature][google.cloud.gkehub.v1.Feature]
              -   * GKE Hub is currently available in the global region and all regions in
              -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              -   * available in global region while membership is global region and all the
              -   * regions.
              -   * **Membership management may be non-trivial:** it is recommended to use one
              -   * of the Google-provided client libraries or tools where possible when working
              -   * with Membership resources.
              -   * 
              - */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + /** + * + * + *
              +     * Lists Scopes.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListScopesResponse listScopes( + com.google.cloud.gkehub.v1.ListScopesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScopesMethod(), getCallOptions(), request); } - @java.lang.Override - protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); + /** + * + * + *
              +     * Lists permitted Scopes.
              +     * 
              + */ + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse listPermittedScopes( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPermittedScopesMethod(), getCallOptions(), request); } /** * * *
              -     * Lists Memberships in a given project and location.
              +     * Returns the details of a MembershipBinding.
                    * 
              */ - public void listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipBindingMethod(), getCallOptions(), request); } /** * * *
              -     * Lists Features in a given project and location.
              +     * Creates a MembershipBinding.
                    * 
              */ - public void listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createMembershipBinding( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipBindingMethod(), getCallOptions(), request); } /** * * *
              -     * Gets the details of a Membership.
              +     * Updates a MembershipBinding.
                    * 
              */ - public void getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateMembershipBinding( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipBindingMethod(), getCallOptions(), request); } /** * * *
              -     * Gets details of a single Feature.
              +     * Deletes a MembershipBinding.
                    * 
              */ - public void getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + public com.google.longrunning.Operation deleteMembershipBinding( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipBindingMethod(), getCallOptions(), request); } /** * * *
              -     * Creates a new Membership.
              -     * **This is currently only supported for GKE clusters on Google Cloud**.
              -     * To register other clusters, follow the instructions at
              -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              +     * Lists MembershipBindings.
                    * 
              */ - public void createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse listMembershipBindings( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipBindingsMethod(), getCallOptions(), request); } /** * * *
              -     * Adds a new Feature.
              +     * Returns the details of a Membership RBACRoleBinding.
                    * 
              */ - public void createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.RBACRoleBinding getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipRBACRoleBindingMethod(), getCallOptions(), request); } /** * * *
              -     * Removes a Membership.
              -     * **This is currently only supported for GKE clusters on Google Cloud**.
              -     * To unregister other clusters, follow the instructions at
              -     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
              +     * Creates a Membership RBACRoleBinding.
                    * 
              */ - public void deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipRBACRoleBindingMethod(), getCallOptions(), request); } /** * * *
              -     * Removes a Feature.
              +     * Updates a Membership RBACRoleBinding.
                    * 
              */ - public void deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipRBACRoleBindingMethod(), getCallOptions(), request); } /** * * *
              -     * Updates an existing Membership.
              +     * Deletes a Membership RBACRoleBinding.
                    * 
              */ - public void updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipRBACRoleBindingMethod(), getCallOptions(), request); } /** * * *
              -     * Updates an existing Feature.
              +     * Lists all Membership RBACRoleBindings.
                    * 
              */ - public void updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipRBACRoleBindingsMethod(), getCallOptions(), request); } /** * * *
              -     * Generates the manifest for deployment of the GKE connect agent.
              -     * **This method is used internally by Google-provided libraries.**
              -     * Most clients should not need to call this method directly.
              +     * Generates a YAML of the  RBAC policies for the specified
              +     * RoleBinding and its associated impersonation resources.
                    * 
              */ - public void generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGenerateMembershipRBACRoleBindingYAMLMethod(), + getCallOptions(), + request); } } /** - * A stub to allow clients to do synchronous rpc calls to service GkeHub. + * A stub to allow clients to do ListenableFuture-style rpc calls to service GkeHub. * *
                  * The GKE Hub service handles the registration of many Kubernetes clusters to
              @@ -1014,548 +4818,675 @@ public void generateConnectManifest(
                  * with Membership resources.
                  * 
              */ - public static final class GkeHubBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class GkeHubFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected GkeHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingV2Stub(channel, callOptions); + protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + * + * + *
              +     * Lists Memberships in a given project and location.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListMembershipsResponse> + listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Lists Memberships bound to a Scope. The response includes relevant
              +     * Memberships from all regions.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse> + listBoundMemberships(com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBoundMembershipsMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Lists Features in a given project and location.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListFeaturesResponse> + listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Gets the details of a Membership.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Gets details of a single Feature.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Creates a new Membership.
              +     * **This is currently only supported for GKE clusters on Google Cloud**.
              +     * To register other clusters, follow the instructions at
              +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); } /** * * *
              -     * Lists Memberships in a given project and location.
              +     * Adds a new Feature.
                    * 
              */ - public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); } /** * * *
              -     * Lists Features in a given project and location.
              +     * Removes a Membership.
              +     * **This is currently only supported for GKE clusters on Google Cloud**.
              +     * To unregister other clusters, follow the instructions at
              +     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
                    * 
              */ - public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); } /** * * *
              -     * Gets the details of a Membership.
              +     * Removes a Feature.
                    * 
              */ - public com.google.cloud.gkehub.v1.Membership getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); } /** * * *
              -     * Gets details of a single Feature.
              +     * Updates an existing Membership.
                    * 
              */ - public com.google.cloud.gkehub.v1.Feature getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); } /** * * *
              -     * Creates a new Membership.
              -     * **This is currently only supported for GKE clusters on Google Cloud**.
              -     * To register other clusters, follow the instructions at
              -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              +     * Updates an existing Feature.
                    * 
              */ - public com.google.longrunning.Operation createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); } /** * * *
              -     * Adds a new Feature.
              +     * Generates the manifest for deployment of the GKE connect agent.
              +     * **This method is used internally by Google-provided libraries.**
              +     * Most clients should not need to call this method directly.
                    * 
              */ - public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> + generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); } /** * * *
              -     * Removes a Membership.
              -     * **This is currently only supported for GKE clusters on Google Cloud**.
              -     * To unregister other clusters, follow the instructions at
              -     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
              +     * Creates a fleet.
                    * 
              */ - public com.google.longrunning.Operation deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createFleet(com.google.cloud.gkehub.v1.CreateFleetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFleetMethod(), getCallOptions()), request); } /** * * *
              -     * Removes a Feature.
              +     * Returns the details of a fleet.
                    * 
              */ - public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + getFleet(com.google.cloud.gkehub.v1.GetFleetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFleetMethod(), getCallOptions()), request); } /** * * *
              -     * Updates an existing Membership.
              +     * Updates a fleet.
                    * 
              */ - public com.google.longrunning.Operation updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateFleet(com.google.cloud.gkehub.v1.UpdateFleetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFleetMethod(), getCallOptions()), request); } /** * * *
              -     * Updates an existing Feature.
              +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
                    * 
              */ - public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteFleet(com.google.cloud.gkehub.v1.DeleteFleetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFleetMethod(), getCallOptions()), request); } /** * * *
              -     * Generates the manifest for deployment of the GKE connect agent.
              -     * **This method is used internally by Google-provided libraries.**
              -     * Most clients should not need to call this method directly.
              +     * Returns all fleets within an organization or a project that the caller has
              +     * access to.
                    * 
              */ - public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service GkeHub. - * - *
              -   * The GKE Hub service handles the registration of many Kubernetes clusters to
              -   * Google Cloud, and the management of multi-cluster features over those
              -   * clusters.
              -   * The GKE Hub service operates on the following resources:
              -   * * [Membership][google.cloud.gkehub.v1.Membership]
              -   * * [Feature][google.cloud.gkehub.v1.Feature]
              -   * GKE Hub is currently available in the global region and all regions in
              -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              -   * available in global region while membership is global region and all the
              -   * regions.
              -   * **Membership management may be non-trivial:** it is recommended to use one
              -   * of the Google-provided client libraries or tools where possible when working
              -   * with Membership resources.
              -   * 
              - */ - public static final class GkeHubBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListFleetsResponse> + listFleets(com.google.cloud.gkehub.v1.ListFleetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFleetsMethod(), getCallOptions()), request); } - @java.lang.Override - protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); + /** + * + * + *
              +     * Returns the details of a fleet namespace.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + getScopeNamespace(com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScopeNamespaceMethod(), getCallOptions()), request); } /** * * *
              -     * Lists Memberships in a given project and location.
              +     * Creates a fleet namespace.
                    * 
              */ - public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createScopeNamespace(com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScopeNamespaceMethod(), getCallOptions()), request); } /** * * *
              -     * Lists Features in a given project and location.
              +     * Updates a fleet namespace.
                    * 
              */ - public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateScopeNamespace(com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScopeNamespaceMethod(), getCallOptions()), request); } /** * * *
              -     * Gets the details of a Membership.
              +     * Deletes a fleet namespace.
                    * 
              */ - public com.google.cloud.gkehub.v1.Membership getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteScopeNamespace(com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScopeNamespaceMethod(), getCallOptions()), request); } /** * * *
              -     * Gets details of a single Feature.
              +     * Lists fleet namespaces.
                    * 
              */ - public com.google.cloud.gkehub.v1.Feature getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse> + listScopeNamespaces(com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScopeNamespacesMethod(), getCallOptions()), request); } /** * * *
              -     * Creates a new Membership.
              -     * **This is currently only supported for GKE clusters on Google Cloud**.
              -     * To register other clusters, follow the instructions at
              -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              +     * Returns the details of a Scope RBACRoleBinding.
                    * 
              */ - public com.google.longrunning.Operation createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.RBACRoleBinding> + getScopeRBACRoleBinding(com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScopeRBACRoleBindingMethod(), getCallOptions()), request); } /** * * *
              -     * Adds a new Feature.
              +     * Creates a Scope RBACRoleBinding.
                    * 
              */ - public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScopeRBACRoleBindingMethod(), getCallOptions()), request); } /** * * *
              -     * Removes a Membership.
              -     * **This is currently only supported for GKE clusters on Google Cloud**.
              -     * To unregister other clusters, follow the instructions at
              -     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
              +     * Updates a Scope RBACRoleBinding.
                    * 
              */ - public com.google.longrunning.Operation deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScopeRBACRoleBindingMethod(), getCallOptions()), request); } /** * * *
              -     * Removes a Feature.
              +     * Deletes a Scope RBACRoleBinding.
                    * 
              */ - public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScopeRBACRoleBindingMethod(), getCallOptions()), request); } /** * * *
              -     * Updates an existing Membership.
              +     * Lists all Scope RBACRoleBindings.
                    * 
              */ - public com.google.longrunning.Operation updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse> + listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScopeRBACRoleBindingsMethod(), getCallOptions()), request); } /** * * *
              -     * Updates an existing Feature.
              +     * Returns the details of a Scope.
                    * 
              */ - public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + getScope(com.google.cloud.gkehub.v1.GetScopeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScopeMethod(), getCallOptions()), request); } /** * * *
              -     * Generates the manifest for deployment of the GKE connect agent.
              -     * **This method is used internally by Google-provided libraries.**
              -     * Most clients should not need to call this method directly.
              +     * Creates a Scope.
                    * 
              */ - public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createScope(com.google.cloud.gkehub.v1.CreateScopeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScopeMethod(), getCallOptions()), request); } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service GkeHub. - * - *
              -   * The GKE Hub service handles the registration of many Kubernetes clusters to
              -   * Google Cloud, and the management of multi-cluster features over those
              -   * clusters.
              -   * The GKE Hub service operates on the following resources:
              -   * * [Membership][google.cloud.gkehub.v1.Membership]
              -   * * [Feature][google.cloud.gkehub.v1.Feature]
              -   * GKE Hub is currently available in the global region and all regions in
              -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
              -   * available in global region while membership is global region and all the
              -   * regions.
              -   * **Membership management may be non-trivial:** it is recommended to use one
              -   * of the Google-provided client libraries or tools where possible when working
              -   * with Membership resources.
              -   * 
              - */ - public static final class GkeHubFutureStub - extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + + /** + * + * + *
              +     * Updates a scopes.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + updateScope(com.google.cloud.gkehub.v1.UpdateScopeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScopeMethod(), getCallOptions()), request); } - @java.lang.Override - protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); + /** + * + * + *
              +     * Deletes a Scope.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteScope(com.google.cloud.gkehub.v1.DeleteScopeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScopeMethod(), getCallOptions()), request); } /** * * *
              -     * Lists Memberships in a given project and location.
              +     * Lists Scopes.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1.ListMembershipsResponse> - listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + com.google.cloud.gkehub.v1.ListScopesResponse> + listScopes(com.google.cloud.gkehub.v1.ListScopesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + getChannel().newCall(getListScopesMethod(), getCallOptions()), request); } /** * * *
              -     * Lists Features in a given project and location.
              +     * Lists permitted Scopes.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1.ListFeaturesResponse> - listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + com.google.cloud.gkehub.v1.ListPermittedScopesResponse> + listPermittedScopes(com.google.cloud.gkehub.v1.ListPermittedScopesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + getChannel().newCall(getListPermittedScopesMethod(), getCallOptions()), request); } /** * * *
              -     * Gets the details of a Membership.
              +     * Returns the details of a MembershipBinding.
                    * 
              */ - public com.google.common.util.concurrent.ListenableFuture - getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.MembershipBinding> + getMembershipBinding(com.google.cloud.gkehub.v1.GetMembershipBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + getChannel().newCall(getGetMembershipBindingMethod(), getCallOptions()), request); } /** * * *
              -     * Gets details of a single Feature.
              +     * Creates a MembershipBinding.
                    * 
              */ - public com.google.common.util.concurrent.ListenableFuture - getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createMembershipBinding(com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + getChannel().newCall(getCreateMembershipBindingMethod(), getCallOptions()), request); } /** * * *
              -     * Creates a new Membership.
              -     * **This is currently only supported for GKE clusters on Google Cloud**.
              -     * To register other clusters, follow the instructions at
              -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
              +     * Updates a MembershipBinding.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture - createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + updateMembershipBinding(com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateMembershipBindingMethod(), getCallOptions()), request); } /** * * *
              -     * Adds a new Feature.
              +     * Deletes a MembershipBinding.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture - createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + deleteMembershipBinding(com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteMembershipBindingMethod(), getCallOptions()), request); } /** * * *
              -     * Removes a Membership.
              -     * **This is currently only supported for GKE clusters on Google Cloud**.
              -     * To unregister other clusters, follow the instructions at
              -     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
              +     * Lists MembershipBindings.
                    * 
              */ - public com.google.common.util.concurrent.ListenableFuture - deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse> + listMembershipBindings(com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); + getChannel().newCall(getListMembershipBindingsMethod(), getCallOptions()), request); } /** * * *
              -     * Removes a Feature.
              +     * Returns the details of a Membership RBACRoleBinding.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.RBACRoleBinding> + getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipRBACRoleBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Creates a Membership RBACRoleBinding.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture - deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); + getChannel().newCall(getCreateMembershipRBACRoleBindingMethod(), getCallOptions()), + request); } /** * * *
              -     * Updates an existing Membership.
              +     * Updates a Membership RBACRoleBinding.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture - updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateMembershipRBACRoleBindingMethod(), getCallOptions()), + request); } /** * * *
              -     * Updates an existing Feature.
              +     * Deletes a Membership RBACRoleBinding.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture - updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteMembershipRBACRoleBindingMethod(), getCallOptions()), + request); } /** * * *
              -     * Generates the manifest for deployment of the GKE connect agent.
              -     * **This method is used internally by Google-provided libraries.**
              -     * Most clients should not need to call this method directly.
              +     * Lists all Membership RBACRoleBindings.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> - generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); + getChannel().newCall(getListMembershipRBACRoleBindingsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
              +     * Generates a YAML of the  RBAC policies for the specified
              +     * RoleBinding and its associated impersonation resources.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateMembershipRBACRoleBindingYAMLMethod(), getCallOptions()), + request); } } private static final int METHODID_LIST_MEMBERSHIPS = 0; - private static final int METHODID_LIST_FEATURES = 1; - private static final int METHODID_GET_MEMBERSHIP = 2; - private static final int METHODID_GET_FEATURE = 3; - private static final int METHODID_CREATE_MEMBERSHIP = 4; - private static final int METHODID_CREATE_FEATURE = 5; - private static final int METHODID_DELETE_MEMBERSHIP = 6; - private static final int METHODID_DELETE_FEATURE = 7; - private static final int METHODID_UPDATE_MEMBERSHIP = 8; - private static final int METHODID_UPDATE_FEATURE = 9; - private static final int METHODID_GENERATE_CONNECT_MANIFEST = 10; + private static final int METHODID_LIST_BOUND_MEMBERSHIPS = 1; + private static final int METHODID_LIST_FEATURES = 2; + private static final int METHODID_GET_MEMBERSHIP = 3; + private static final int METHODID_GET_FEATURE = 4; + private static final int METHODID_CREATE_MEMBERSHIP = 5; + private static final int METHODID_CREATE_FEATURE = 6; + private static final int METHODID_DELETE_MEMBERSHIP = 7; + private static final int METHODID_DELETE_FEATURE = 8; + private static final int METHODID_UPDATE_MEMBERSHIP = 9; + private static final int METHODID_UPDATE_FEATURE = 10; + private static final int METHODID_GENERATE_CONNECT_MANIFEST = 11; + private static final int METHODID_CREATE_FLEET = 12; + private static final int METHODID_GET_FLEET = 13; + private static final int METHODID_UPDATE_FLEET = 14; + private static final int METHODID_DELETE_FLEET = 15; + private static final int METHODID_LIST_FLEETS = 16; + private static final int METHODID_GET_SCOPE_NAMESPACE = 17; + private static final int METHODID_CREATE_SCOPE_NAMESPACE = 18; + private static final int METHODID_UPDATE_SCOPE_NAMESPACE = 19; + private static final int METHODID_DELETE_SCOPE_NAMESPACE = 20; + private static final int METHODID_LIST_SCOPE_NAMESPACES = 21; + private static final int METHODID_GET_SCOPE_RBACROLE_BINDING = 22; + private static final int METHODID_CREATE_SCOPE_RBACROLE_BINDING = 23; + private static final int METHODID_UPDATE_SCOPE_RBACROLE_BINDING = 24; + private static final int METHODID_DELETE_SCOPE_RBACROLE_BINDING = 25; + private static final int METHODID_LIST_SCOPE_RBACROLE_BINDINGS = 26; + private static final int METHODID_GET_SCOPE = 27; + private static final int METHODID_CREATE_SCOPE = 28; + private static final int METHODID_UPDATE_SCOPE = 29; + private static final int METHODID_DELETE_SCOPE = 30; + private static final int METHODID_LIST_SCOPES = 31; + private static final int METHODID_LIST_PERMITTED_SCOPES = 32; + private static final int METHODID_GET_MEMBERSHIP_BINDING = 33; + private static final int METHODID_CREATE_MEMBERSHIP_BINDING = 34; + private static final int METHODID_UPDATE_MEMBERSHIP_BINDING = 35; + private static final int METHODID_DELETE_MEMBERSHIP_BINDING = 36; + private static final int METHODID_LIST_MEMBERSHIP_BINDINGS = 37; + private static final int METHODID_GET_MEMBERSHIP_RBACROLE_BINDING = 38; + private static final int METHODID_CREATE_MEMBERSHIP_RBACROLE_BINDING = 39; + private static final int METHODID_UPDATE_MEMBERSHIP_RBACROLE_BINDING = 40; + private static final int METHODID_DELETE_MEMBERSHIP_RBACROLE_BINDING = 41; + private static final int METHODID_LIST_MEMBERSHIP_RBACROLE_BINDINGS = 42; + private static final int METHODID_GENERATE_MEMBERSHIP_RBACROLE_BINDING_YAML = 43; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1580,6 +5511,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_BOUND_MEMBERSHIPS: + serviceImpl.listBoundMemberships( + (com.google.cloud.gkehub.v1.ListBoundMembershipsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_LIST_FEATURES: serviceImpl.listFeatures( (com.google.cloud.gkehub.v1.ListFeaturesRequest) request, @@ -1634,6 +5571,181 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>) responseObserver); break; + case METHODID_CREATE_FLEET: + serviceImpl.createFleet( + (com.google.cloud.gkehub.v1.CreateFleetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FLEET: + serviceImpl.getFleet( + (com.google.cloud.gkehub.v1.GetFleetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FLEET: + serviceImpl.updateFleet( + (com.google.cloud.gkehub.v1.UpdateFleetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FLEET: + serviceImpl.deleteFleet( + (com.google.cloud.gkehub.v1.DeleteFleetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FLEETS: + serviceImpl.listFleets( + (com.google.cloud.gkehub.v1.ListFleetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SCOPE_NAMESPACE: + serviceImpl.getScopeNamespace( + (com.google.cloud.gkehub.v1.GetScopeNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SCOPE_NAMESPACE: + serviceImpl.createScopeNamespace( + (com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCOPE_NAMESPACE: + serviceImpl.updateScopeNamespace( + (com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCOPE_NAMESPACE: + serviceImpl.deleteScopeNamespace( + (com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCOPE_NAMESPACES: + serviceImpl.listScopeNamespaces( + (com.google.cloud.gkehub.v1.ListScopeNamespacesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SCOPE_RBACROLE_BINDING: + serviceImpl.getScopeRBACRoleBinding( + (com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SCOPE_RBACROLE_BINDING: + serviceImpl.createScopeRBACRoleBinding( + (com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCOPE_RBACROLE_BINDING: + serviceImpl.updateScopeRBACRoleBinding( + (com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCOPE_RBACROLE_BINDING: + serviceImpl.deleteScopeRBACRoleBinding( + (com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCOPE_RBACROLE_BINDINGS: + serviceImpl.listScopeRBACRoleBindings( + (com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse>) + responseObserver); + break; + case METHODID_GET_SCOPE: + serviceImpl.getScope( + (com.google.cloud.gkehub.v1.GetScopeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SCOPE: + serviceImpl.createScope( + (com.google.cloud.gkehub.v1.CreateScopeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCOPE: + serviceImpl.updateScope( + (com.google.cloud.gkehub.v1.UpdateScopeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCOPE: + serviceImpl.deleteScope( + (com.google.cloud.gkehub.v1.DeleteScopeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCOPES: + serviceImpl.listScopes( + (com.google.cloud.gkehub.v1.ListScopesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PERMITTED_SCOPES: + serviceImpl.listPermittedScopes( + (com.google.cloud.gkehub.v1.ListPermittedScopesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_MEMBERSHIP_BINDING: + serviceImpl.getMembershipBinding( + (com.google.cloud.gkehub.v1.GetMembershipBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP_BINDING: + serviceImpl.createMembershipBinding( + (com.google.cloud.gkehub.v1.CreateMembershipBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP_BINDING: + serviceImpl.updateMembershipBinding( + (com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP_BINDING: + serviceImpl.deleteMembershipBinding( + (com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MEMBERSHIP_BINDINGS: + serviceImpl.listMembershipBindings( + (com.google.cloud.gkehub.v1.ListMembershipBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse>) + responseObserver); + break; + case METHODID_GET_MEMBERSHIP_RBACROLE_BINDING: + serviceImpl.getMembershipRBACRoleBinding( + (com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP_RBACROLE_BINDING: + serviceImpl.createMembershipRBACRoleBinding( + (com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP_RBACROLE_BINDING: + serviceImpl.updateMembershipRBACRoleBinding( + (com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP_RBACROLE_BINDING: + serviceImpl.deleteMembershipRBACRoleBinding( + (com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MEMBERSHIP_RBACROLE_BINDINGS: + serviceImpl.listMembershipRBACRoleBindings( + (com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse>) + responseObserver); + break; + case METHODID_GENERATE_MEMBERSHIP_RBACROLE_BINDING_YAML: + serviceImpl.generateMembershipRBACRoleBindingYAML( + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -1659,6 +5771,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.gkehub.v1.ListMembershipsRequest, com.google.cloud.gkehub.v1.ListMembershipsResponse>( service, METHODID_LIST_MEMBERSHIPS))) + .addMethod( + getListBoundMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse>( + service, METHODID_LIST_BOUND_MEMBERSHIPS))) .addMethod( getListFeaturesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1721,6 +5840,213 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>( service, METHODID_GENERATE_CONNECT_MANIFEST))) + .addMethod( + getCreateFleetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateFleetRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_FLEET))) + .addMethod( + getGetFleetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetFleetRequest, com.google.cloud.gkehub.v1.Fleet>( + service, METHODID_GET_FLEET))) + .addMethod( + getUpdateFleetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateFleetRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_FLEET))) + .addMethod( + getDeleteFleetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteFleetRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_FLEET))) + .addMethod( + getListFleetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListFleetsRequest, + com.google.cloud.gkehub.v1.ListFleetsResponse>(service, METHODID_LIST_FLEETS))) + .addMethod( + getGetScopeNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest, + com.google.cloud.gkehub.v1.Namespace>(service, METHODID_GET_SCOPE_NAMESPACE))) + .addMethod( + getCreateScopeNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SCOPE_NAMESPACE))) + .addMethod( + getUpdateScopeNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_SCOPE_NAMESPACE))) + .addMethod( + getDeleteScopeNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SCOPE_NAMESPACE))) + .addMethod( + getListScopeNamespacesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse>( + service, METHODID_LIST_SCOPE_NAMESPACES))) + .addMethod( + getGetScopeRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding>( + service, METHODID_GET_SCOPE_RBACROLE_BINDING))) + .addMethod( + getCreateScopeRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_SCOPE_RBACROLE_BINDING))) + .addMethod( + getUpdateScopeRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_SCOPE_RBACROLE_BINDING))) + .addMethod( + getDeleteScopeRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_SCOPE_RBACROLE_BINDING))) + .addMethod( + getListScopeRBACRoleBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse>( + service, METHODID_LIST_SCOPE_RBACROLE_BINDINGS))) + .addMethod( + getGetScopeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetScopeRequest, com.google.cloud.gkehub.v1.Scope>( + service, METHODID_GET_SCOPE))) + .addMethod( + getCreateScopeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateScopeRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SCOPE))) + .addMethod( + getUpdateScopeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateScopeRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_SCOPE))) + .addMethod( + getDeleteScopeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteScopeRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SCOPE))) + .addMethod( + getListScopesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListScopesRequest, + com.google.cloud.gkehub.v1.ListScopesResponse>(service, METHODID_LIST_SCOPES))) + .addMethod( + getListPermittedScopesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListPermittedScopesRequest, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse>( + service, METHODID_LIST_PERMITTED_SCOPES))) + .addMethod( + getGetMembershipBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetMembershipBindingRequest, + com.google.cloud.gkehub.v1.MembershipBinding>( + service, METHODID_GET_MEMBERSHIP_BINDING))) + .addMethod( + getCreateMembershipBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_MEMBERSHIP_BINDING))) + .addMethod( + getUpdateMembershipBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_MEMBERSHIP_BINDING))) + .addMethod( + getDeleteMembershipBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_MEMBERSHIP_BINDING))) + .addMethod( + getListMembershipBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse>( + service, METHODID_LIST_MEMBERSHIP_BINDINGS))) + .addMethod( + getGetMembershipRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding>( + service, METHODID_GET_MEMBERSHIP_RBACROLE_BINDING))) + .addMethod( + getCreateMembershipRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_MEMBERSHIP_RBACROLE_BINDING))) + .addMethod( + getUpdateMembershipRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_MEMBERSHIP_RBACROLE_BINDING))) + .addMethod( + getDeleteMembershipRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_MEMBERSHIP_RBACROLE_BINDING))) + .addMethod( + getListMembershipRBACRoleBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse>( + service, METHODID_LIST_MEMBERSHIP_RBACROLE_BINDINGS))) + .addMethod( + getGenerateMembershipRBACRoleBindingYAMLMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse>( + service, METHODID_GENERATE_MEMBERSHIP_RBACROLE_BINDING_YAML))) .build(); } @@ -1771,6 +6097,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) .addMethod(getListMembershipsMethod()) + .addMethod(getListBoundMembershipsMethod()) .addMethod(getListFeaturesMethod()) .addMethod(getGetMembershipMethod()) .addMethod(getGetFeatureMethod()) @@ -1781,6 +6108,38 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateMembershipMethod()) .addMethod(getUpdateFeatureMethod()) .addMethod(getGenerateConnectManifestMethod()) + .addMethod(getCreateFleetMethod()) + .addMethod(getGetFleetMethod()) + .addMethod(getUpdateFleetMethod()) + .addMethod(getDeleteFleetMethod()) + .addMethod(getListFleetsMethod()) + .addMethod(getGetScopeNamespaceMethod()) + .addMethod(getCreateScopeNamespaceMethod()) + .addMethod(getUpdateScopeNamespaceMethod()) + .addMethod(getDeleteScopeNamespaceMethod()) + .addMethod(getListScopeNamespacesMethod()) + .addMethod(getGetScopeRBACRoleBindingMethod()) + .addMethod(getCreateScopeRBACRoleBindingMethod()) + .addMethod(getUpdateScopeRBACRoleBindingMethod()) + .addMethod(getDeleteScopeRBACRoleBindingMethod()) + .addMethod(getListScopeRBACRoleBindingsMethod()) + .addMethod(getGetScopeMethod()) + .addMethod(getCreateScopeMethod()) + .addMethod(getUpdateScopeMethod()) + .addMethod(getDeleteScopeMethod()) + .addMethod(getListScopesMethod()) + .addMethod(getListPermittedScopesMethod()) + .addMethod(getGetMembershipBindingMethod()) + .addMethod(getCreateMembershipBindingMethod()) + .addMethod(getUpdateMembershipBindingMethod()) + .addMethod(getDeleteMembershipBindingMethod()) + .addMethod(getListMembershipBindingsMethod()) + .addMethod(getGetMembershipRBACRoleBindingMethod()) + .addMethod(getCreateMembershipRBACRoleBindingMethod()) + .addMethod(getUpdateMembershipRBACRoleBindingMethod()) + .addMethod(getDeleteMembershipRBACRoleBindingMethod()) + .addMethod(getListMembershipRBACRoleBindingsMethod()) + .addMethod(getGenerateMembershipRBACRoleBindingYAMLMethod()) .build(); } } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpec.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpec.java new file mode 100644 index 000000000000..078c557d60e0 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpec.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +/** + * + * + *
              + * **RBAC RoleBinding Actuation**: The Hub-wide input for the
              + * RBACRoleBindingActuation feature.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec} + */ +@com.google.protobuf.Generated +public final class FeatureSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + FeatureSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FeatureSpec"); + } + + // Use FeatureSpec.newBuilder() to construct. + private FeatureSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FeatureSpec() { + allowedCustomRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.class, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.Builder.class); + } + + public static final int ALLOWED_CUSTOM_ROLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedCustomRoles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
              +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +   * ClusterRole in this list is in use, it cannot be removed from the list.
              +   * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @return A list containing the allowedCustomRoles. + */ + public com.google.protobuf.ProtocolStringList getAllowedCustomRolesList() { + return allowedCustomRoles_; + } + + /** + * + * + *
              +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +   * ClusterRole in this list is in use, it cannot be removed from the list.
              +   * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @return The count of allowedCustomRoles. + */ + public int getAllowedCustomRolesCount() { + return allowedCustomRoles_.size(); + } + + /** + * + * + *
              +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +   * ClusterRole in this list is in use, it cannot be removed from the list.
              +   * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the element to return. + * @return The allowedCustomRoles at the given index. + */ + public java.lang.String getAllowedCustomRoles(int index) { + return allowedCustomRoles_.get(index); + } + + /** + * + * + *
              +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +   * ClusterRole in this list is in use, it cannot be removed from the list.
              +   * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowedCustomRoles at the given index. + */ + public com.google.protobuf.ByteString getAllowedCustomRolesBytes(int index) { + return allowedCustomRoles_.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 < allowedCustomRoles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, allowedCustomRoles_.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 < allowedCustomRoles_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedCustomRoles_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedCustomRolesList().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.gkehub.rbacrolebindingactuation.v1.FeatureSpec)) { + return super.equals(obj); + } + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec other = + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) obj; + + if (!getAllowedCustomRolesList().equals(other.getAllowedCustomRolesList())) 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 (getAllowedCustomRolesCount() > 0) { + hash = (37 * hash) + ALLOWED_CUSTOM_ROLES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedCustomRolesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec 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.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec 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.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.rbacrolebindingactuation.v1.FeatureSpec 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * **RBAC RoleBinding Actuation**: The Hub-wide input for the
              +   * RBACRoleBindingActuation feature.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.class, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.Builder.class); + } + + // Construct using com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowedCustomRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec + getDefaultInstanceForType() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec build() { + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec buildPartial() { + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec result = + new com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + allowedCustomRoles_.makeImmutable(); + result.allowedCustomRoles_ = allowedCustomRoles_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) { + return mergeFrom((com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec other) { + if (other + == com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.getDefaultInstance()) + return this; + if (!other.allowedCustomRoles_.isEmpty()) { + if (allowedCustomRoles_.isEmpty()) { + allowedCustomRoles_ = other.allowedCustomRoles_; + bitField0_ |= 0x00000001; + } else { + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.addAll(other.allowedCustomRoles_); + } + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.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 com.google.protobuf.LazyStringArrayList allowedCustomRoles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedCustomRolesIsMutable() { + if (!allowedCustomRoles_.isModifiable()) { + allowedCustomRoles_ = new com.google.protobuf.LazyStringArrayList(allowedCustomRoles_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
              +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +     * ClusterRole in this list is in use, it cannot be removed from the list.
              +     * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @return A list containing the allowedCustomRoles. + */ + public com.google.protobuf.ProtocolStringList getAllowedCustomRolesList() { + allowedCustomRoles_.makeImmutable(); + return allowedCustomRoles_; + } + + /** + * + * + *
              +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +     * ClusterRole in this list is in use, it cannot be removed from the list.
              +     * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @return The count of allowedCustomRoles. + */ + public int getAllowedCustomRolesCount() { + return allowedCustomRoles_.size(); + } + + /** + * + * + *
              +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +     * ClusterRole in this list is in use, it cannot be removed from the list.
              +     * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the element to return. + * @return The allowedCustomRoles at the given index. + */ + public java.lang.String getAllowedCustomRoles(int index) { + return allowedCustomRoles_.get(index); + } + + /** + * + * + *
              +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +     * ClusterRole in this list is in use, it cannot be removed from the list.
              +     * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowedCustomRoles at the given index. + */ + public com.google.protobuf.ByteString getAllowedCustomRolesBytes(int index) { + return allowedCustomRoles_.getByteString(index); + } + + /** + * + * + *
              +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +     * ClusterRole in this list is in use, it cannot be removed from the list.
              +     * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index to set the value at. + * @param value The allowedCustomRoles to set. + * @return This builder for chaining. + */ + public Builder setAllowedCustomRoles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +     * ClusterRole in this list is in use, it cannot be removed from the list.
              +     * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param value The allowedCustomRoles to add. + * @return This builder for chaining. + */ + public Builder addAllowedCustomRoles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +     * ClusterRole in this list is in use, it cannot be removed from the list.
              +     * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param values The allowedCustomRoles to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedCustomRoles(java.lang.Iterable values) { + ensureAllowedCustomRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedCustomRoles_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +     * ClusterRole in this list is in use, it cannot be removed from the list.
              +     * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @return This builder for chaining. + */ + public Builder clearAllowedCustomRoles() { + allowedCustomRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +     * ClusterRole in this list is in use, it cannot be removed from the list.
              +     * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param value The bytes of the allowedCustomRoles to add. + * @return This builder for chaining. + */ + public Builder addAllowedCustomRolesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + private static final com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec(); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec 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.rbacrolebindingactuation.v1.FeatureSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpecOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpecOrBuilder.java new file mode 100644 index 000000000000..3865e0782125 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +@com.google.protobuf.Generated +public interface FeatureSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +   * ClusterRole in this list is in use, it cannot be removed from the list.
              +   * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @return A list containing the allowedCustomRoles. + */ + java.util.List getAllowedCustomRolesList(); + + /** + * + * + *
              +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +   * ClusterRole in this list is in use, it cannot be removed from the list.
              +   * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @return The count of allowedCustomRoles. + */ + int getAllowedCustomRolesCount(); + + /** + * + * + *
              +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +   * ClusterRole in this list is in use, it cannot be removed from the list.
              +   * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the element to return. + * @return The allowedCustomRoles at the given index. + */ + java.lang.String getAllowedCustomRoles(int index); + + /** + * + * + *
              +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
              +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
              +   * ClusterRole in this list is in use, it cannot be removed from the list.
              +   * 
              + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowedCustomRoles at the given index. + */ + com.google.protobuf.ByteString getAllowedCustomRolesBytes(int index); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureState.java new file mode 100644 index 000000000000..aaff34d66d04 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureState.java @@ -0,0 +1,405 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +/** + * + * + *
              + * **RBAC RoleBinding Actuation**: An empty state left as an example Hub-wide
              + * Feature state.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState} + */ +@com.google.protobuf.Generated +public final class FeatureState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + FeatureStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FeatureState"); + } + + // Use FeatureState.newBuilder() to construct. + private FeatureState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FeatureState() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.class, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.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.gkehub.rbacrolebindingactuation.v1.FeatureState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState other = + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) 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.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState 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.rbacrolebindingactuation.v1.FeatureState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState 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.rbacrolebindingactuation.v1.FeatureState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.rbacrolebindingactuation.v1.FeatureState 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * **RBAC RoleBinding Actuation**: An empty state left as an example Hub-wide
              +   * Feature state.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.class, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState build() { + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState buildPartial() { + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState result = + new com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) { + return mergeFrom((com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState other) { + if (other + == com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + private static final com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState(); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState 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.rbacrolebindingactuation.v1.FeatureState + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureStateOrBuilder.java new file mode 100644 index 000000000000..2482db60ffaf --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureStateOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +@com.google.protobuf.Generated +public interface FeatureStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/RBACRoleBindingActuationProto.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/RBACRoleBindingActuationProto.java new file mode 100644 index 000000000000..afdda8918f62 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/RBACRoleBindingActuationProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +@com.google.protobuf.Generated +public final class RBACRoleBindingActuationProto extends com.google.protobuf.GeneratedFile { + private RBACRoleBindingActuationProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RBACRoleBindingActuationProto"); + } + + 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_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nNgoogle/cloud/gkehub/v1/rbacrolebinding" + + "actuation/rbacrolebindingactuation.proto" + + "\022/google.cloud.gkehub.rbacrolebindingact" + + "uation.v1\032\037google/api/field_behavior.pro" + + "to\"+\n\013FeatureSpec\022\034\n\024allowed_custom_role" + + "s\030\002 \003(\t\"\016\n\014FeatureStateB\341\002\n3com.google.c" + + "loud.gkehub.rbacrolebindingactuation.v1B" + + "\035RBACRoleBindingActuationProtoP\001Zocloud." + + "google.com/go/gkehub/rbacrolebindingactu" + + "ation/apiv1/rbacrolebindingactuationpb;r" + + "bacrolebindingactuationpb\252\002/Google.Cloud" + + ".GkeHub.RbacRoleBindingActuation.V1\312\002/Go" + + "ogle\\Cloud\\GkeHub\\RbacRoleBindingActuati" + + "on\\V1\352\0023Google::Cloud::GkeHub::RbacRoleB" + + "indingActuation::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor, + new java.lang.String[] { + "AllowedCustomRoles", + }); + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor, + new java.lang.String[] {}); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfig.java new file mode 100644 index 000000000000..7addadd20d87 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfig.java @@ -0,0 +1,1996 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * BinaryAuthorizationConfig defines the fleet level configuration of binary
              + * authorization feature.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig} + */ +@com.google.protobuf.Generated +public final class BinaryAuthorizationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + BinaryAuthorizationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BinaryAuthorizationConfig"); + } + + // Use BinaryAuthorizationConfig.newBuilder() to construct. + private BinaryAuthorizationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BinaryAuthorizationConfig() { + evaluationMode_ = 0; + policyBindings_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.class, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder.class); + } + + /** + * + * + *
              +   * Binary Authorization mode of operation.
              +   * 
              + * + * Protobuf enum {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode} + */ + public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * Default value
              +     * 
              + * + * EVALUATION_MODE_UNSPECIFIED = 0; + */ + EVALUATION_MODE_UNSPECIFIED(0), + /** + * + * + *
              +     * Disable BinaryAuthorization
              +     * 
              + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
              +     * Use Binary Authorization with the policies specified in policy_bindings.
              +     * 
              + * + * POLICY_BINDINGS = 2; + */ + POLICY_BINDINGS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationMode"); + } + + /** + * + * + *
              +     * Default value
              +     * 
              + * + * EVALUATION_MODE_UNSPECIFIED = 0; + */ + public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * Disable BinaryAuthorization
              +     * 
              + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
              +     * Use Binary Authorization with the policies specified in policy_bindings.
              +     * 
              + * + * POLICY_BINDINGS = 2; + */ + public static final int POLICY_BINDINGS_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 EvaluationMode 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 EvaluationMode forNumber(int value) { + switch (value) { + case 0: + return EVALUATION_MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return POLICY_BINDINGS; + 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 EvaluationMode findValueByNumber(int number) { + return EvaluationMode.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EvaluationMode[] VALUES = values(); + + public static EvaluationMode 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 EvaluationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode) + } + + public interface PolicyBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +     * The relative resource name of the binauthz platform policy to audit. GKE
              +     * platform policies have the following format:
              +     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
              +     * 
              + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +     * The relative resource name of the binauthz platform policy to audit. GKE
              +     * platform policies have the following format:
              +     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
              +     * 
              + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + } + + /** + * + * + *
              +   * Binauthz policy that applies to this cluster.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding} + */ + public static final class PolicyBinding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + PolicyBindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PolicyBinding"); + } + + // Use PolicyBinding.newBuilder() to construct. + private PolicyBinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PolicyBinding() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.class, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +     * The relative resource name of the binauthz platform policy to audit. GKE
              +     * platform policies have the following format:
              +     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
              +     * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +     * The relative resource name of the binauthz platform policy to audit. GKE
              +     * platform policies have the following format:
              +     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
              +     * 
              + * + * string name = 1; + * + * @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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding other = + (com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) 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.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding 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.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding 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.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.BinaryAuthorizationConfig.PolicyBinding 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +     * Binauthz policy that applies to this cluster.
              +     * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.class, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding build() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding buildPartial() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding result = + new com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) { + return mergeFrom( + (com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding other) { + if (other + == com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + .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_ = ""; + + /** + * + * + *
              +       * The relative resource name of the binauthz platform policy to audit. GKE
              +       * platform policies have the following format:
              +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
              +       * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +       * The relative resource name of the binauthz platform policy to audit. GKE
              +       * platform policies have the following format:
              +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
              +       * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +       * The relative resource name of the binauthz platform policy to audit. GKE
              +       * platform policies have the following format:
              +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
              +       * 
              + * + * string name = 1; + * + * @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; + } + + /** + * + * + *
              +       * The relative resource name of the binauthz platform policy to audit. GKE
              +       * platform policies have the following format:
              +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
              +       * 
              + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +       * The relative resource name of the binauthz platform policy to audit. GKE
              +       * platform policies have the following format:
              +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
              +       * 
              + * + * string name = 1; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + private static final com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding(); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyBinding 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.v1.BinaryAuthorizationConfig.PolicyBinding + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int EVALUATION_MODE_FIELD_NUMBER = 1; + private int evaluationMode_ = 0; + + /** + * + * + *
              +   * Optional. Mode of operation for binauthz policy evaluation.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationMode. + */ + @java.lang.Override + public int getEvaluationModeValue() { + return evaluationMode_; + } + + /** + * + * + *
              +   * Optional. Mode of operation for binauthz policy evaluation.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationMode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode getEvaluationMode() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode result = + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode.forNumber( + evaluationMode_); + return result == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode.UNRECOGNIZED + : result; + } + + public static final int POLICY_BINDINGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + policyBindings_; + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPolicyBindingsList() { + return policyBindings_; + } + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + getPolicyBindingsOrBuilderList() { + return policyBindings_; + } + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPolicyBindingsCount() { + return policyBindings_.size(); + } + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding getPolicyBindings( + int index) { + return policyBindings_.get(index); + } + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder + getPolicyBindingsOrBuilder(int index) { + return policyBindings_.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 (evaluationMode_ + != com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode + .EVALUATION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, evaluationMode_); + } + for (int i = 0; i < policyBindings_.size(); i++) { + output.writeMessage(2, policyBindings_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (evaluationMode_ + != com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode + .EVALUATION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationMode_); + } + for (int i = 0; i < policyBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, policyBindings_.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.gkehub.v1.BinaryAuthorizationConfig)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig other = + (com.google.cloud.gkehub.v1.BinaryAuthorizationConfig) obj; + + if (evaluationMode_ != other.evaluationMode_) return false; + if (!getPolicyBindingsList().equals(other.getPolicyBindingsList())) 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) + EVALUATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + evaluationMode_; + if (getPolicyBindingsCount() > 0) { + hash = (37 * hash) + POLICY_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyBindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig 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.v1.BinaryAuthorizationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig 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.v1.BinaryAuthorizationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.BinaryAuthorizationConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * BinaryAuthorizationConfig defines the fleet level configuration of binary
              +   * authorization feature.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.class, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluationMode_ = 0; + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + } else { + policyBindings_ = null; + policyBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig build() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig buildPartial() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig result = + new com.google.cloud.gkehub.v1.BinaryAuthorizationConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig result) { + if (policyBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + policyBindings_ = java.util.Collections.unmodifiableList(policyBindings_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.policyBindings_ = policyBindings_; + } else { + result.policyBindings_ = policyBindingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.BinaryAuthorizationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.evaluationMode_ = evaluationMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.BinaryAuthorizationConfig) { + return mergeFrom((com.google.cloud.gkehub.v1.BinaryAuthorizationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.BinaryAuthorizationConfig other) { + if (other == com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance()) + return this; + if (other.evaluationMode_ != 0) { + setEvaluationModeValue(other.getEvaluationModeValue()); + } + if (policyBindingsBuilder_ == null) { + if (!other.policyBindings_.isEmpty()) { + if (policyBindings_.isEmpty()) { + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePolicyBindingsIsMutable(); + policyBindings_.addAll(other.policyBindings_); + } + onChanged(); + } + } else { + if (!other.policyBindings_.isEmpty()) { + if (policyBindingsBuilder_.isEmpty()) { + policyBindingsBuilder_.dispose(); + policyBindingsBuilder_ = null; + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000002); + policyBindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPolicyBindingsFieldBuilder() + : null; + } else { + policyBindingsBuilder_.addAllMessages(other.policyBindings_); + } + } + } + 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: + { + evaluationMode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding m = + input.readMessage( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.parser(), + extensionRegistry); + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(m); + } else { + policyBindingsBuilder_.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 int evaluationMode_ = 0; + + /** + * + * + *
              +     * Optional. Mode of operation for binauthz policy evaluation.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationMode. + */ + @java.lang.Override + public int getEvaluationModeValue() { + return evaluationMode_; + } + + /** + * + * + *
              +     * Optional. Mode of operation for binauthz policy evaluation.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for evaluationMode to set. + * @return This builder for chaining. + */ + public Builder setEvaluationModeValue(int value) { + evaluationMode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Mode of operation for binauthz policy evaluation.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationMode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode getEvaluationMode() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode result = + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode.forNumber( + evaluationMode_); + return result == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Optional. Mode of operation for binauthz policy evaluation.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The evaluationMode to set. + * @return This builder for chaining. + */ + public Builder setEvaluationMode( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + evaluationMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Mode of operation for binauthz policy evaluation.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluationMode() { + bitField0_ = (bitField0_ & ~0x00000001); + evaluationMode_ = 0; + onChanged(); + return this; + } + + private java.util.List + policyBindings_ = java.util.Collections.emptyList(); + + private void ensurePolicyBindingsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + policyBindings_ = + new java.util.ArrayList< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding>( + policyBindings_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + policyBindingsBuilder_; + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPolicyBindingsList() { + if (policyBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyBindings_); + } else { + return policyBindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPolicyBindingsCount() { + if (policyBindingsBuilder_ == null) { + return policyBindings_.size(); + } else { + return policyBindingsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding getPolicyBindings( + int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); + } else { + return policyBindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPolicyBindings( + int index, com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, value); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPolicyBindings( + int index, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPolicyBindings( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPolicyBindings( + int index, com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPolicyBindings( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPolicyBindings( + int index, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPolicyBindings( + java.lang.Iterable< + ? extends com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding> + values) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyBindings_); + onChanged(); + } else { + policyBindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPolicyBindings() { + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + policyBindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePolicyBindings(int index) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.remove(index); + onChanged(); + } else { + policyBindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + getPolicyBindingsBuilder(int index) { + return internalGetPolicyBindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder + getPolicyBindingsOrBuilder(int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); + } else { + return policyBindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + getPolicyBindingsOrBuilderList() { + if (policyBindingsBuilder_ != null) { + return policyBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyBindings_); + } + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + addPolicyBindingsBuilder() { + return internalGetPolicyBindingsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + .getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + addPolicyBindingsBuilder(int index) { + return internalGetPolicyBindingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + .getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. Binauthz policies that apply to this cluster.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder> + getPolicyBindingsBuilderList() { + return internalGetPolicyBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + internalGetPolicyBindingsFieldBuilder() { + if (policyBindingsBuilder_ == null) { + policyBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder>( + policyBindings_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + policyBindings_ = null; + } + return policyBindingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + private static final com.google.cloud.gkehub.v1.BinaryAuthorizationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.BinaryAuthorizationConfig(); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinaryAuthorizationConfig 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.v1.BinaryAuthorizationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfigOrBuilder.java new file mode 100644 index 000000000000..12d928ec46a9 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfigOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface BinaryAuthorizationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Optional. Mode of operation for binauthz policy evaluation.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationMode. + */ + int getEvaluationModeValue(); + + /** + * + * + *
              +   * Optional. Mode of operation for binauthz policy evaluation.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationMode. + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode getEvaluationMode(); + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPolicyBindingsList(); + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding getPolicyBindings(int index); + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPolicyBindingsCount(); + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + getPolicyBindingsOrBuilderList(); + + /** + * + * + *
              +   * Optional. Binauthz policies that apply to this cluster.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder + getPolicyBindingsOrBuilder(int index); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java index eb70e0b448fc..2bf929e8d279 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java @@ -24,7 +24,7 @@ * * *
              - * CommonFeatureState contains Hub-wide Feature status information.
              + * CommonFeatureState contains Fleet-wide Feature status information.
                * 
              * * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureState} @@ -69,6 +69,115 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + private int featureStateCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object featureState_; + + public enum FeatureStateCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RBACROLEBINDINGACTUATION(120), + FEATURESTATE_NOT_SET(0); + private final int value; + + private FeatureStateCase(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 FeatureStateCase valueOf(int value) { + return forNumber(value); + } + + public static FeatureStateCase forNumber(int value) { + switch (value) { + case 120: + return RBACROLEBINDINGACTUATION; + case 0: + return FEATURESTATE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FeatureStateCase getFeatureStateCase() { + return FeatureStateCase.forNumber(featureStateCase_); + } + + public static final int RBACROLEBINDINGACTUATION_FIELD_NUMBER = 120; + + /** + * + * + *
              +   * RBAC Role Binding Actuation feature state
              +   * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return Whether the rbacrolebindingactuation field is set. + */ + @java.lang.Override + public boolean hasRbacrolebindingactuation() { + return featureStateCase_ == 120; + } + + /** + * + * + *
              +   * RBAC Role Binding Actuation feature state
              +   * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return The rbacrolebindingactuation. + */ + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + getRbacrolebindingactuation() { + if (featureStateCase_ == 120) { + return (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_; + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.getDefaultInstance(); + } + + /** + * + * + *
              +   * RBAC Role Binding Actuation feature state
              +   * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder + getRbacrolebindingactuationOrBuilder() { + if (featureStateCase_ == 120) { + return (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_; + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.getDefaultInstance(); + } + public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1.FeatureState state_; @@ -76,7 +185,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
              -   * Output only. The "running state" of the Feature in this Hub.
              +   * Output only. The "running state" of the Feature in this Fleet.
                  * 
              * * @@ -94,7 +203,7 @@ public boolean hasState() { * * *
              -   * Output only. The "running state" of the Feature in this Hub.
              +   * Output only. The "running state" of the Feature in this Fleet.
                  * 
              * * @@ -112,7 +221,7 @@ public com.google.cloud.gkehub.v1.FeatureState getState() { * * *
              -   * Output only. The "running state" of the Feature in this Hub.
              +   * Output only. The "running state" of the Feature in this Fleet.
                  * 
              * * @@ -141,6 +250,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getState()); } + if (featureStateCase_ == 120) { + output.writeMessage( + 120, (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_); + } getUnknownFields().writeTo(output); } @@ -153,6 +266,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); } + if (featureStateCase_ == 120) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 120, + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -173,6 +292,15 @@ public boolean equals(final java.lang.Object obj) { if (hasState()) { if (!getState().equals(other.getState())) return false; } + if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; + switch (featureStateCase_) { + case 120: + if (!getRbacrolebindingactuation().equals(other.getRbacrolebindingactuation())) + return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,6 +316,14 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); } + switch (featureStateCase_) { + case 120: + hash = (37 * hash) + RBACROLEBINDINGACTUATION_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingactuation().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -293,7 +429,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
              -   * CommonFeatureState contains Hub-wide Feature status information.
              +   * CommonFeatureState contains Fleet-wide Feature status information.
                  * 
              * * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureState} @@ -337,11 +473,16 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + if (rbacrolebindingactuationBuilder_ != null) { + rbacrolebindingactuationBuilder_.clear(); + } state_ = null; if (stateBuilder_ != null) { stateBuilder_.dispose(); stateBuilder_ = null; } + featureStateCase_ = 0; + featureState_ = null; return this; } @@ -372,6 +513,7 @@ public com.google.cloud.gkehub.v1.CommonFeatureState buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -379,13 +521,21 @@ public com.google.cloud.gkehub.v1.CommonFeatureState buildPartial() { private void buildPartial0(com.google.cloud.gkehub.v1.CommonFeatureState result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs(com.google.cloud.gkehub.v1.CommonFeatureState result) { + result.featureStateCase_ = featureStateCase_; + result.featureState_ = this.featureState_; + if (featureStateCase_ == 120 && rbacrolebindingactuationBuilder_ != null) { + result.featureState_ = rbacrolebindingactuationBuilder_.build(); + } + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.gkehub.v1.CommonFeatureState) { @@ -401,6 +551,17 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.CommonFeatureState other) { if (other.hasState()) { mergeState(other.getState()); } + switch (other.getFeatureStateCase()) { + case RBACROLEBINDINGACTUATION: + { + mergeRbacrolebindingactuation(other.getRbacrolebindingactuation()); + break; + } + case FEATURESTATE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -430,9 +591,17 @@ public Builder mergeFrom( case 10: { input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 10 + case 962: + { + input.readMessage( + internalGetRbacrolebindingactuationFieldBuilder().getBuilder(), + extensionRegistry); + featureStateCase_ = 120; + break; + } // case 962 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -450,8 +619,270 @@ public Builder mergeFrom( return this; } + private int featureStateCase_ = 0; + private java.lang.Object featureState_; + + public FeatureStateCase getFeatureStateCase() { + return FeatureStateCase.forNumber(featureStateCase_); + } + + public Builder clearFeatureState() { + featureStateCase_ = 0; + featureState_ = null; + onChanged(); + return this; + } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder> + rbacrolebindingactuationBuilder_; + + /** + * + * + *
              +     * RBAC Role Binding Actuation feature state
              +     * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return Whether the rbacrolebindingactuation field is set. + */ + @java.lang.Override + public boolean hasRbacrolebindingactuation() { + return featureStateCase_ == 120; + } + + /** + * + * + *
              +     * RBAC Role Binding Actuation feature state
              +     * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return The rbacrolebindingactuation. + */ + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + getRbacrolebindingactuation() { + if (rbacrolebindingactuationBuilder_ == null) { + if (featureStateCase_ == 120) { + return (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_; + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + .getDefaultInstance(); + } else { + if (featureStateCase_ == 120) { + return rbacrolebindingactuationBuilder_.getMessage(); + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + .getDefaultInstance(); + } + } + + /** + * + * + *
              +     * RBAC Role Binding Actuation feature state
              +     * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public Builder setRbacrolebindingactuation( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState value) { + if (rbacrolebindingactuationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featureState_ = value; + onChanged(); + } else { + rbacrolebindingactuationBuilder_.setMessage(value); + } + featureStateCase_ = 120; + return this; + } + + /** + * + * + *
              +     * RBAC Role Binding Actuation feature state
              +     * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public Builder setRbacrolebindingactuation( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder builderForValue) { + if (rbacrolebindingactuationBuilder_ == null) { + featureState_ = builderForValue.build(); + onChanged(); + } else { + rbacrolebindingactuationBuilder_.setMessage(builderForValue.build()); + } + featureStateCase_ = 120; + return this; + } + + /** + * + * + *
              +     * RBAC Role Binding Actuation feature state
              +     * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public Builder mergeRbacrolebindingactuation( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState value) { + if (rbacrolebindingactuationBuilder_ == null) { + if (featureStateCase_ == 120 + && featureState_ + != com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + .getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.newBuilder( + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + featureState_) + .mergeFrom(value) + .buildPartial(); + } else { + featureState_ = value; + } + onChanged(); + } else { + if (featureStateCase_ == 120) { + rbacrolebindingactuationBuilder_.mergeFrom(value); + } else { + rbacrolebindingactuationBuilder_.setMessage(value); + } + } + featureStateCase_ = 120; + return this; + } + + /** + * + * + *
              +     * RBAC Role Binding Actuation feature state
              +     * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public Builder clearRbacrolebindingactuation() { + if (rbacrolebindingactuationBuilder_ == null) { + if (featureStateCase_ == 120) { + featureStateCase_ = 0; + featureState_ = null; + onChanged(); + } + } else { + if (featureStateCase_ == 120) { + featureStateCase_ = 0; + featureState_ = null; + } + rbacrolebindingactuationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * RBAC Role Binding Actuation feature state
              +     * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder + getRbacrolebindingactuationBuilder() { + return internalGetRbacrolebindingactuationFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * RBAC Role Binding Actuation feature state
              +     * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder + getRbacrolebindingactuationOrBuilder() { + if ((featureStateCase_ == 120) && (rbacrolebindingactuationBuilder_ != null)) { + return rbacrolebindingactuationBuilder_.getMessageOrBuilder(); + } else { + if (featureStateCase_ == 120) { + return (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_; + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + .getDefaultInstance(); + } + } + + /** + * + * + *
              +     * RBAC Role Binding Actuation feature state
              +     * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder> + internalGetRbacrolebindingactuationFieldBuilder() { + if (rbacrolebindingactuationBuilder_ == null) { + if (!(featureStateCase_ == 120)) { + featureState_ = + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.getDefaultInstance(); + } + rbacrolebindingactuationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder>( + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_, + getParentForChildren(), + isClean()); + featureState_ = null; + } + featureStateCase_ = 120; + onChanged(); + return rbacrolebindingactuationBuilder_; + } + private com.google.cloud.gkehub.v1.FeatureState state_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.gkehub.v1.FeatureState, @@ -463,7 +894,7 @@ public Builder mergeFrom( * * *
              -     * Output only. The "running state" of the Feature in this Hub.
              +     * Output only. The "running state" of the Feature in this Fleet.
                    * 
              * * @@ -473,14 +904,14 @@ public Builder mergeFrom( * @return Whether the state field is set. */ public boolean hasState() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * * *
              -     * Output only. The "running state" of the Feature in this Hub.
              +     * Output only. The "running state" of the Feature in this Fleet.
                    * 
              * * @@ -503,7 +934,7 @@ public com.google.cloud.gkehub.v1.FeatureState getState() { * * *
              -     * Output only. The "running state" of the Feature in this Hub.
              +     * Output only. The "running state" of the Feature in this Fleet.
                    * 
              * * @@ -519,7 +950,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { } else { stateBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -528,7 +959,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { * * *
              -     * Output only. The "running state" of the Feature in this Hub.
              +     * Output only. The "running state" of the Feature in this Fleet.
                    * 
              * * @@ -541,7 +972,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderF } else { stateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -550,7 +981,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderF * * *
              -     * Output only. The "running state" of the Feature in this Hub.
              +     * Output only. The "running state" of the Feature in this Fleet.
                    * 
              * * @@ -559,7 +990,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderF */ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { if (stateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) + if (((bitField0_ & 0x00000002) != 0) && state_ != null && state_ != com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance()) { getStateBuilder().mergeFrom(value); @@ -570,7 +1001,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { stateBuilder_.mergeFrom(value); } if (state_ != null) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } return this; @@ -580,7 +1011,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { * * *
              -     * Output only. The "running state" of the Feature in this Hub.
              +     * Output only. The "running state" of the Feature in this Fleet.
                    * 
              * * @@ -588,7 +1019,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { * */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); state_ = null; if (stateBuilder_ != null) { stateBuilder_.dispose(); @@ -602,7 +1033,7 @@ public Builder clearState() { * * *
              -     * Output only. The "running state" of the Feature in this Hub.
              +     * Output only. The "running state" of the Feature in this Fleet.
                    * 
              * * @@ -610,7 +1041,7 @@ public Builder clearState() { * */ public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return internalGetStateFieldBuilder().getBuilder(); } @@ -619,7 +1050,7 @@ public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { * * *
              -     * Output only. The "running state" of the Feature in this Hub.
              +     * Output only. The "running state" of the Feature in this Fleet.
                    * 
              * * @@ -640,7 +1071,7 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { * * *
              -     * Output only. The "running state" of the Feature in this Hub.
              +     * Output only. The "running state" of the Feature in this Fleet.
                    * 
              * * diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java index 744cec696e82..e6ccdf2930b0 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java @@ -30,7 +30,51 @@ public interface CommonFeatureStateOrBuilder * * *
              -   * Output only. The "running state" of the Feature in this Hub.
              +   * RBAC Role Binding Actuation feature state
              +   * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return Whether the rbacrolebindingactuation field is set. + */ + boolean hasRbacrolebindingactuation(); + + /** + * + * + *
              +   * RBAC Role Binding Actuation feature state
              +   * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return The rbacrolebindingactuation. + */ + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState getRbacrolebindingactuation(); + + /** + * + * + *
              +   * RBAC Role Binding Actuation feature state
              +   * 
              + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder + getRbacrolebindingactuationOrBuilder(); + + /** + * + * + *
              +   * Output only. The "running state" of the Feature in this Fleet.
                  * 
              * * @@ -45,7 +89,7 @@ public interface CommonFeatureStateOrBuilder * * *
              -   * Output only. The "running state" of the Feature in this Hub.
              +   * Output only. The "running state" of the Feature in this Fleet.
                  * 
              * * @@ -60,7 +104,7 @@ public interface CommonFeatureStateOrBuilder * * *
              -   * Output only. The "running state" of the Feature in this Hub.
              +   * Output only. The "running state" of the Feature in this Fleet.
                  * 
              * * @@ -68,4 +112,6 @@ public interface CommonFeatureStateOrBuilder * */ com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder(); + + com.google.cloud.gkehub.v1.CommonFeatureState.FeatureStateCase getFeatureStateCase(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfig.java new file mode 100644 index 000000000000..90f9f0d5538c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfig.java @@ -0,0 +1,1940 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * CompliancePostureConfig defines the settings needed to enable/disable
              + * features for the Compliance Posture.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CompliancePostureConfig} + */ +@com.google.protobuf.Generated +public final class CompliancePostureConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CompliancePostureConfig) + CompliancePostureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CompliancePostureConfig"); + } + + // Use CompliancePostureConfig.newBuilder() to construct. + private CompliancePostureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CompliancePostureConfig() { + mode_ = 0; + complianceStandards_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CompliancePostureConfig.class, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder.class); + } + + /** Protobuf enum {@code google.cloud.gkehub.v1.CompliancePostureConfig.Mode} */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * Default value not specified.
              +     * 
              + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
              +     * Disables Compliance Posture features on the cluster.
              +     * 
              + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
              +     * Enables Compliance Posture features on the cluster.
              +     * 
              + * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
              +     * Default value not specified.
              +     * 
              + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * Disables Compliance Posture features on the cluster.
              +     * 
              + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
              +     * Enables Compliance Posture features on the cluster.
              +     * 
              + * + * ENABLED = 2; + */ + public static final int ENABLED_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 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 DISABLED; + case 2: + return ENABLED; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.CompliancePostureConfig.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.gkehub.v1.CompliancePostureConfig.Mode) + } + + public interface ComplianceStandardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +     * Name of the compliance standard.
              +     * 
              + * + * string standard = 1; + * + * @return The standard. + */ + java.lang.String getStandard(); + + /** + * + * + *
              +     * Name of the compliance standard.
              +     * 
              + * + * string standard = 1; + * + * @return The bytes for standard. + */ + com.google.protobuf.ByteString getStandardBytes(); + } + + /** Protobuf type {@code google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard} */ + public static final class ComplianceStandard extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + ComplianceStandardOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComplianceStandard"); + } + + // Use ComplianceStandard.newBuilder() to construct. + private ComplianceStandard(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComplianceStandard() { + standard_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.class, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder.class); + } + + public static final int STANDARD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object standard_ = ""; + + /** + * + * + *
              +     * Name of the compliance standard.
              +     * 
              + * + * string standard = 1; + * + * @return The standard. + */ + @java.lang.Override + public java.lang.String getStandard() { + java.lang.Object ref = standard_; + 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(); + standard_ = s; + return s; + } + } + + /** + * + * + *
              +     * Name of the compliance standard.
              +     * 
              + * + * string standard = 1; + * + * @return The bytes for standard. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStandardBytes() { + java.lang.Object ref = standard_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + standard_ = 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.GeneratedMessage.isStringEmpty(standard_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, standard_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(standard_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, standard_); + } + 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.v1.CompliancePostureConfig.ComplianceStandard)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard other = + (com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) obj; + + if (!getStandard().equals(other.getStandard())) 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) + STANDARD_FIELD_NUMBER; + hash = (53 * hash) + getStandard().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard 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.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard 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.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.CompliancePostureConfig.ComplianceStandard 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** Protobuf type {@code google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard} */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.class, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + .class); + } + + // Construct using + // com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + standard_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard build() { + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard buildPartial() { + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard result = + new com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.standard_ = standard_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) { + return mergeFrom( + (com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard other) { + if (other + == com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance()) return this; + if (!other.getStandard().isEmpty()) { + standard_ = other.standard_; + 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: + { + standard_ = 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 standard_ = ""; + + /** + * + * + *
              +       * Name of the compliance standard.
              +       * 
              + * + * string standard = 1; + * + * @return The standard. + */ + public java.lang.String getStandard() { + java.lang.Object ref = standard_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + standard_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +       * Name of the compliance standard.
              +       * 
              + * + * string standard = 1; + * + * @return The bytes for standard. + */ + public com.google.protobuf.ByteString getStandardBytes() { + java.lang.Object ref = standard_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + standard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +       * Name of the compliance standard.
              +       * 
              + * + * string standard = 1; + * + * @param value The standard to set. + * @return This builder for chaining. + */ + public Builder setStandard(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + standard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Name of the compliance standard.
              +       * 
              + * + * string standard = 1; + * + * @return This builder for chaining. + */ + public Builder clearStandard() { + standard_ = getDefaultInstance().getStandard(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +       * Name of the compliance standard.
              +       * 
              + * + * string standard = 1; + * + * @param value The bytes for standard to set. + * @return This builder for chaining. + */ + public Builder setStandardBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + standard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + private static final com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard(); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComplianceStandard 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.v1.CompliancePostureConfig.ComplianceStandard + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + + /** + * + * + *
              +   * Defines the enablement mode for Compliance Posture.
              +   * 
              + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
              +   * Defines the enablement mode for Compliance Posture.
              +   * 
              + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode getMode() { + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode result = + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.UNRECOGNIZED + : result; + } + + public static final int COMPLIANCE_STANDARDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + complianceStandards_; + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public java.util.List + getComplianceStandardsList() { + return complianceStandards_; + } + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsOrBuilderList() { + return complianceStandards_; + } + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public int getComplianceStandardsCount() { + return complianceStandards_.size(); + } + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + getComplianceStandards(int index) { + return complianceStandards_.get(index); + } + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder + getComplianceStandardsOrBuilder(int index) { + return complianceStandards_.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 (mode_ + != com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, mode_); + } + for (int i = 0; i < complianceStandards_.size(); i++) { + output.writeMessage(2, complianceStandards_.get(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.gkehub.v1.CompliancePostureConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + for (int i = 0; i < complianceStandards_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, complianceStandards_.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.gkehub.v1.CompliancePostureConfig)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CompliancePostureConfig other = + (com.google.cloud.gkehub.v1.CompliancePostureConfig) obj; + + if (mode_ != other.mode_) return false; + if (!getComplianceStandardsList().equals(other.getComplianceStandardsList())) 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 (getComplianceStandardsCount() > 0) { + hash = (37 * hash) + COMPLIANCE_STANDARDS_FIELD_NUMBER; + hash = (53 * hash) + getComplianceStandardsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig 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.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig 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.v1.CompliancePostureConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.CompliancePostureConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * CompliancePostureConfig defines the settings needed to enable/disable
              +   * features for the Compliance Posture.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CompliancePostureConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CompliancePostureConfig) + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CompliancePostureConfig.class, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CompliancePostureConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + if (complianceStandardsBuilder_ == null) { + complianceStandards_ = java.util.Collections.emptyList(); + } else { + complianceStandards_ = null; + complianceStandardsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig build() { + com.google.cloud.gkehub.v1.CompliancePostureConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig buildPartial() { + com.google.cloud.gkehub.v1.CompliancePostureConfig result = + new com.google.cloud.gkehub.v1.CompliancePostureConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.CompliancePostureConfig result) { + if (complianceStandardsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + complianceStandards_ = java.util.Collections.unmodifiableList(complianceStandards_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.complianceStandards_ = complianceStandards_; + } else { + result.complianceStandards_ = complianceStandardsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CompliancePostureConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CompliancePostureConfig) { + return mergeFrom((com.google.cloud.gkehub.v1.CompliancePostureConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CompliancePostureConfig other) { + if (other == com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (complianceStandardsBuilder_ == null) { + if (!other.complianceStandards_.isEmpty()) { + if (complianceStandards_.isEmpty()) { + complianceStandards_ = other.complianceStandards_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureComplianceStandardsIsMutable(); + complianceStandards_.addAll(other.complianceStandards_); + } + onChanged(); + } + } else { + if (!other.complianceStandards_.isEmpty()) { + if (complianceStandardsBuilder_.isEmpty()) { + complianceStandardsBuilder_.dispose(); + complianceStandardsBuilder_ = null; + complianceStandards_ = other.complianceStandards_; + bitField0_ = (bitField0_ & ~0x00000002); + complianceStandardsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComplianceStandardsFieldBuilder() + : null; + } else { + complianceStandardsBuilder_.addAllMessages(other.complianceStandards_); + } + } + } + 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: + { + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard m = + input.readMessage( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .parser(), + extensionRegistry); + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(m); + } else { + complianceStandardsBuilder_.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 int mode_ = 0; + + /** + * + * + *
              +     * Defines the enablement mode for Compliance Posture.
              +     * 
              + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
              +     * Defines the enablement mode for Compliance Posture.
              +     * 
              + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @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; + } + + /** + * + * + *
              +     * Defines the enablement mode for Compliance Posture.
              +     * 
              + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode getMode() { + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode result = + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Defines the enablement mode for Compliance Posture.
              +     * 
              + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Defines the enablement mode for Compliance Posture.
              +     * 
              + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private java.util.List + complianceStandards_ = java.util.Collections.emptyList(); + + private void ensureComplianceStandardsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + complianceStandards_ = + new java.util.ArrayList< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard>( + complianceStandards_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + complianceStandardsBuilder_; + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public java.util.List + getComplianceStandardsList() { + if (complianceStandardsBuilder_ == null) { + return java.util.Collections.unmodifiableList(complianceStandards_); + } else { + return complianceStandardsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public int getComplianceStandardsCount() { + if (complianceStandardsBuilder_ == null) { + return complianceStandards_.size(); + } else { + return complianceStandardsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + getComplianceStandards(int index) { + if (complianceStandardsBuilder_ == null) { + return complianceStandards_.get(index); + } else { + return complianceStandardsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder setComplianceStandards( + int index, com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard value) { + if (complianceStandardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceStandardsIsMutable(); + complianceStandards_.set(index, value); + onChanged(); + } else { + complianceStandardsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder setComplianceStandards( + int index, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + builderForValue) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.set(index, builderForValue.build()); + onChanged(); + } else { + complianceStandardsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard value) { + if (complianceStandardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(value); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + int index, com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard value) { + if (complianceStandardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(index, value); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + builderForValue) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(builderForValue.build()); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + int index, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + builderForValue) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(index, builderForValue.build()); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addAllComplianceStandards( + java.lang.Iterable< + ? extends com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard> + values) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, complianceStandards_); + onChanged(); + } else { + complianceStandardsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder clearComplianceStandards() { + if (complianceStandardsBuilder_ == null) { + complianceStandards_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + complianceStandardsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder removeComplianceStandards(int index) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.remove(index); + onChanged(); + } else { + complianceStandardsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + getComplianceStandardsBuilder(int index) { + return internalGetComplianceStandardsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder + getComplianceStandardsOrBuilder(int index) { + if (complianceStandardsBuilder_ == null) { + return complianceStandards_.get(index); + } else { + return complianceStandardsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsOrBuilderList() { + if (complianceStandardsBuilder_ != null) { + return complianceStandardsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(complianceStandards_); + } + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + addComplianceStandardsBuilder() { + return internalGetComplianceStandardsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance()); + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + addComplianceStandardsBuilder(int index) { + return internalGetComplianceStandardsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance()); + } + + /** + * + * + *
              +     * List of enabled compliance standards.
              +     * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public java.util.List< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder> + getComplianceStandardsBuilderList() { + return internalGetComplianceStandardsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + internalGetComplianceStandardsFieldBuilder() { + if (complianceStandardsBuilder_ == null) { + complianceStandardsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder>( + complianceStandards_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + complianceStandards_ = null; + } + return complianceStandardsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CompliancePostureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CompliancePostureConfig) + private static final com.google.cloud.gkehub.v1.CompliancePostureConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CompliancePostureConfig(); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompliancePostureConfig 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.v1.CompliancePostureConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfigOrBuilder.java new file mode 100644 index 000000000000..9fcc03555517 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfigOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CompliancePostureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CompliancePostureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Defines the enablement mode for Compliance Posture.
              +   * 
              + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
              +   * Defines the enablement mode for Compliance Posture.
              +   * 
              + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The mode. + */ + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode getMode(); + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + java.util.List + getComplianceStandardsList(); + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard getComplianceStandards( + int index); + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + int getComplianceStandardsCount(); + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + java.util.List< + ? extends com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsOrBuilderList(); + + /** + * + * + *
              +   * List of enabled compliance standards.
              +   * 
              + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder + getComplianceStandardsOrBuilder(int index); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java index 29ce73aad012..bf24501ced32 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java @@ -239,7 +239,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { * * *
              -   * Optional. A request ID to identify requests. Specify a unique request ID
              +   * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
              @@ -275,7 +275,7 @@ public java.lang.String getRequestId() {
                  *
                  *
                  * 
              -   * Optional. A request ID to identify requests. Specify a unique request ID
              +   * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
              @@ -1136,7 +1136,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              @@ -1171,7 +1171,7 @@ public java.lang.String getRequestId() {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              @@ -1206,7 +1206,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              @@ -1240,7 +1240,7 @@ public Builder setRequestId(java.lang.String value) {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              @@ -1270,7 +1270,7 @@ public Builder clearRequestId() {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java
              index 999bf3cec0e1..8c172ff38ddf 100644
              --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java
              +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java
              @@ -121,7 +121,7 @@ public interface CreateFeatureRequestOrBuilder
                  *
                  *
                  * 
              -   * Optional. A request ID to identify requests. Specify a unique request ID
              +   * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
              @@ -146,7 +146,7 @@ public interface CreateFeatureRequestOrBuilder
                  *
                  *
                  * 
              -   * Optional. A request ID to identify requests. Specify a unique request ID
              +   * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
              diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequest.java
              new file mode 100644
              index 000000000000..4461ad74846b
              --- /dev/null
              +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequest.java
              @@ -0,0 +1,908 @@
              +/*
              + * Copyright 2026 Google LLC
              + *
              + * Licensed under the Apache License, Version 2.0 (the "License");
              + * you may not use this file except in compliance with the License.
              + * You may obtain a copy of the License at
              + *
              + *     https://www.apache.org/licenses/LICENSE-2.0
              + *
              + * Unless required by applicable law or agreed to in writing, software
              + * distributed under the License is distributed on an "AS IS" BASIS,
              + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
              + * See the License for the specific language governing permissions and
              + * limitations under the License.
              + */
              +// Generated by the protocol buffer compiler.  DO NOT EDIT!
              +// NO CHECKED-IN PROTOBUF GENCODE
              +// source: google/cloud/gkehub/v1/service.proto
              +// Protobuf Java Version: 4.33.2
              +
              +package com.google.cloud.gkehub.v1;
              +
              +/**
              + *
              + *
              + * 
              + * Request message for the `GkeHub.CreateFleet` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateFleetRequest} + */ +@com.google.protobuf.Generated +public final class CreateFleetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateFleetRequest) + CreateFleetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateFleetRequest"); + } + + // Use CreateFleetRequest.newBuilder() to construct. + private CreateFleetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateFleetRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateFleetRequest.class, + com.google.cloud.gkehub.v1.CreateFleetRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the Fleet will be
              +   * created. Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * 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 (project and location) where the Fleet will be
              +   * created. Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * 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 FLEET_FIELD_NUMBER = 2; + private com.google.cloud.gkehub.v1.Fleet fleet_; + + /** + * + * + *
              +   * Required. The fleet to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the fleet field is set. + */ + @java.lang.Override + public boolean hasFleet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The fleet to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleet. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet getFleet() { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + + /** + * + * + *
              +   * Required. The fleet to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder() { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFleet()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFleet()); + } + 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.v1.CreateFleetRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateFleetRequest other = + (com.google.cloud.gkehub.v1.CreateFleetRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFleet() != other.hasFleet()) return false; + if (hasFleet()) { + if (!getFleet().equals(other.getFleet())) 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(); + if (hasFleet()) { + hash = (37 * hash) + FLEET_FIELD_NUMBER; + hash = (53 * hash) + getFleet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest 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.v1.CreateFleetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest 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.v1.CreateFleetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.CreateFleetRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for the `GkeHub.CreateFleet` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateFleetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateFleetRequest) + com.google.cloud.gkehub.v1.CreateFleetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateFleetRequest.class, + com.google.cloud.gkehub.v1.CreateFleetRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateFleetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFleetFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateFleetRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateFleetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateFleetRequest build() { + com.google.cloud.gkehub.v1.CreateFleetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateFleetRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateFleetRequest result = + new com.google.cloud.gkehub.v1.CreateFleetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CreateFleetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fleet_ = fleetBuilder_ == null ? fleet_ : fleetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateFleetRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateFleetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateFleetRequest other) { + if (other == com.google.cloud.gkehub.v1.CreateFleetRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFleet()) { + mergeFleet(other.getFleet()); + } + 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: + { + input.readMessage(internalGetFleetFieldBuilder().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 parent_ = ""; + + /** + * + * + *
              +     * Required. The parent (project and location) where the Fleet will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Fleet will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Fleet will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Fleet will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Fleet will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 com.google.cloud.gkehub.v1.Fleet fleet_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + fleetBuilder_; + + /** + * + * + *
              +     * Required. The fleet to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Required. The fleet to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fleet. + */ + public com.google.cloud.gkehub.v1.Fleet getFleet() { + if (fleetBuilder_ == null) { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } else { + return fleetBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The fleet to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fleet_ = value; + } else { + fleetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fleet to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetBuilder_ == null) { + fleet_ = builderForValue.build(); + } else { + fleetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fleet to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFleet(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && fleet_ != null + && fleet_ != com.google.cloud.gkehub.v1.Fleet.getDefaultInstance()) { + getFleetBuilder().mergeFrom(value); + } else { + fleet_ = value; + } + } else { + fleetBuilder_.mergeFrom(value); + } + if (fleet_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The fleet to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFleet() { + bitField0_ = (bitField0_ & ~0x00000002); + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fleet to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Fleet.Builder getFleetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFleetFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The fleet to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder() { + if (fleetBuilder_ != null) { + return fleetBuilder_.getMessageOrBuilder(); + } else { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + } + + /** + * + * + *
              +     * Required. The fleet to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + internalGetFleetFieldBuilder() { + if (fleetBuilder_ == null) { + fleetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder>( + getFleet(), getParentForChildren(), isClean()); + fleet_ = null; + } + return fleetBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateFleetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateFleetRequest) + private static final com.google.cloud.gkehub.v1.CreateFleetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateFleetRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFleetRequest 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.v1.CreateFleetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequestOrBuilder.java new file mode 100644 index 000000000000..7f5057fcb221 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateFleetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateFleetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the Fleet will be
              +   * created. Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the Fleet will be
              +   * created. Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Required. The fleet to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the fleet field is set. + */ + boolean hasFleet(); + + /** + * + * + *
              +   * Required. The fleet to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleet. + */ + com.google.cloud.gkehub.v1.Fleet getFleet(); + + /** + * + * + *
              +   * Required. The fleet to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequest.java new file mode 100644 index 000000000000..dd78d9d14954 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequest.java @@ -0,0 +1,1135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to create a MembershipBinding.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipBindingRequest} + */ +@com.google.protobuf.Generated +public final class CreateMembershipBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + CreateMembershipBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMembershipBindingRequest"); + } + + // Use CreateMembershipBindingRequest.newBuilder() to construct. + private CreateMembershipBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMembershipBindingRequest() { + parent_ = ""; + membershipBindingId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the MembershipBinding
              +   * will be created. Specified in the format
              +   * `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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 (project and location) where the MembershipBinding
              +   * will be created. Specified in the format
              +   * `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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 MEMBERSHIP_BINDING_FIELD_NUMBER = 2; + private com.google.cloud.gkehub.v1.MembershipBinding membershipBinding_; + + /** + * + * + *
              +   * Required. The MembershipBinding to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + @java.lang.Override + public boolean hasMembershipBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The MembershipBinding to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding() { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + + /** + * + * + *
              +   * Required. The MembershipBinding to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder() { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + + public static final int MEMBERSHIP_BINDING_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object membershipBindingId_ = ""; + + /** + * + * + *
              +   * Required. The ID to use for the MembershipBinding.
              +   * 
              + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The membershipBindingId. + */ + @java.lang.Override + public java.lang.String getMembershipBindingId() { + java.lang.Object ref = membershipBindingId_; + 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(); + membershipBindingId_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. The ID to use for the MembershipBinding.
              +   * 
              + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for membershipBindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMembershipBindingIdBytes() { + java.lang.Object ref = membershipBindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + membershipBindingId_ = 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getMembershipBinding()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(membershipBindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, membershipBindingId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMembershipBinding()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(membershipBindingId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, membershipBindingId_); + } + 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.v1.CreateMembershipBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest other = + (com.google.cloud.gkehub.v1.CreateMembershipBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMembershipBinding() != other.hasMembershipBinding()) return false; + if (hasMembershipBinding()) { + if (!getMembershipBinding().equals(other.getMembershipBinding())) return false; + } + if (!getMembershipBindingId().equals(other.getMembershipBindingId())) 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(); + if (hasMembershipBinding()) { + hash = (37 * hash) + MEMBERSHIP_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBinding().hashCode(); + } + hash = (37 * hash) + MEMBERSHIP_BINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBindingId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest 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.v1.CreateMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest 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.v1.CreateMembershipBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.CreateMembershipBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to create a MembershipBinding.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + com.google.cloud.gkehub.v1.CreateMembershipBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMembershipBindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + membershipBinding_ = null; + if (membershipBindingBuilder_ != null) { + membershipBindingBuilder_.dispose(); + membershipBindingBuilder_ = null; + } + membershipBindingId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipBindingRequest build() { + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest result = + new com.google.cloud.gkehub.v1.CreateMembershipBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CreateMembershipBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.membershipBinding_ = + membershipBindingBuilder_ == null + ? membershipBinding_ + : membershipBindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.membershipBindingId_ = membershipBindingId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateMembershipBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateMembershipBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateMembershipBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMembershipBinding()) { + mergeMembershipBinding(other.getMembershipBinding()); + } + if (!other.getMembershipBindingId().isEmpty()) { + membershipBindingId_ = other.membershipBindingId_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMembershipBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + membershipBindingId_ = 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 parent_ = ""; + + /** + * + * + *
              +     * Required. The parent (project and location) where the MembershipBinding
              +     * will be created. Specified in the format
              +     * `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the MembershipBinding
              +     * will be created. Specified in the format
              +     * `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the MembershipBinding
              +     * will be created. Specified in the format
              +     * `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the MembershipBinding
              +     * will be created. Specified in the format
              +     * `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the MembershipBinding
              +     * will be created. Specified in the format
              +     * `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 com.google.cloud.gkehub.v1.MembershipBinding membershipBinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + membershipBindingBuilder_; + + /** + * + * + *
              +     * Required. The MembershipBinding to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + public boolean hasMembershipBinding() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Required. The MembershipBinding to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding() { + if (membershipBindingBuilder_ == null) { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } else { + return membershipBindingBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The MembershipBinding to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMembershipBinding(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + membershipBinding_ = value; + } else { + membershipBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The MembershipBinding to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMembershipBinding( + com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingBuilder_ == null) { + membershipBinding_ = builderForValue.build(); + } else { + membershipBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The MembershipBinding to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMembershipBinding(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && membershipBinding_ != null + && membershipBinding_ + != com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()) { + getMembershipBindingBuilder().mergeFrom(value); + } else { + membershipBinding_ = value; + } + } else { + membershipBindingBuilder_.mergeFrom(value); + } + if (membershipBinding_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The MembershipBinding to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMembershipBinding() { + bitField0_ = (bitField0_ & ~0x00000002); + membershipBinding_ = null; + if (membershipBindingBuilder_ != null) { + membershipBindingBuilder_.dispose(); + membershipBindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The MembershipBinding to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder getMembershipBindingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMembershipBindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The MembershipBinding to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder() { + if (membershipBindingBuilder_ != null) { + return membershipBindingBuilder_.getMessageOrBuilder(); + } else { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + } + + /** + * + * + *
              +     * Required. The MembershipBinding to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + internalGetMembershipBindingFieldBuilder() { + if (membershipBindingBuilder_ == null) { + membershipBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder>( + getMembershipBinding(), getParentForChildren(), isClean()); + membershipBinding_ = null; + } + return membershipBindingBuilder_; + } + + private java.lang.Object membershipBindingId_ = ""; + + /** + * + * + *
              +     * Required. The ID to use for the MembershipBinding.
              +     * 
              + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The membershipBindingId. + */ + public java.lang.String getMembershipBindingId() { + java.lang.Object ref = membershipBindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membershipBindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. The ID to use for the MembershipBinding.
              +     * 
              + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for membershipBindingId. + */ + public com.google.protobuf.ByteString getMembershipBindingIdBytes() { + java.lang.Object ref = membershipBindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + membershipBindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. The ID to use for the MembershipBinding.
              +     * 
              + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The membershipBindingId to set. + * @return This builder for chaining. + */ + public Builder setMembershipBindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + membershipBindingId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The ID to use for the MembershipBinding.
              +     * 
              + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMembershipBindingId() { + membershipBindingId_ = getDefaultInstance().getMembershipBindingId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The ID to use for the MembershipBinding.
              +     * 
              + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for membershipBindingId to set. + * @return This builder for chaining. + */ + public Builder setMembershipBindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipBindingId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + private static final com.google.cloud.gkehub.v1.CreateMembershipBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateMembershipBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipBindingRequest 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.v1.CreateMembershipBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequestOrBuilder.java new file mode 100644 index 000000000000..3693ec6344f2 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateMembershipBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the MembershipBinding
              +   * will be created. Specified in the format
              +   * `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the MembershipBinding
              +   * will be created. Specified in the format
              +   * `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Required. The MembershipBinding to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + boolean hasMembershipBinding(); + + /** + * + * + *
              +   * Required. The MembershipBinding to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding(); + + /** + * + * + *
              +   * Required. The MembershipBinding to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder(); + + /** + * + * + *
              +   * Required. The ID to use for the MembershipBinding.
              +   * 
              + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The membershipBindingId. + */ + java.lang.String getMembershipBindingId(); + + /** + * + * + *
              +   * Required. The ID to use for the MembershipBinding.
              +   * 
              + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for membershipBindingId. + */ + com.google.protobuf.ByteString getMembershipBindingIdBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequest.java new file mode 100644 index 000000000000..98c2656249b6 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequest.java @@ -0,0 +1,1193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to create a rbacrolebindings.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class CreateMembershipRBACRoleBindingRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + CreateMembershipRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMembershipRBACRoleBindingRequest"); + } + + // Use CreateMembershipRBACRoleBindingRequest.newBuilder() to construct. + private CreateMembershipRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMembershipRBACRoleBindingRequest() { + parent_ = ""; + rbacrolebindingId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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 RBACROLEBINDING_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rbacrolebindingId_ = ""; + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + @java.lang.Override + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + 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(); + rbacrolebindingId_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RBACROLEBINDING_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRbacrolebinding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRbacrolebinding()); + } + 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.v1.CreateMembershipRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRbacrolebindingId().equals(other.getRbacrolebindingId())) return false; + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) 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) + RBACROLEBINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingId().hashCode(); + if (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest 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.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest 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.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.CreateMembershipRBACRoleBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to create a rbacrolebindings.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rbacrolebindingId_ = ""; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rbacrolebindingId_ = rbacrolebindingId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRbacrolebindingId().isEmpty()) { + rbacrolebindingId_ = other.rbacrolebindingId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + 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: + { + rbacrolebindingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRbacrolebindingFieldBuilder().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 parent (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 rbacrolebindingId_ = ""; + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rbacrolebindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRbacrolebindingId() { + rbacrolebindingId_ = getDefaultInstance().getRbacrolebindingId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000004); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipRBACRoleBindingRequest 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.v1.CreateMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..9829e01b9203 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateMembershipRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + java.lang.String getRbacrolebindingId(); + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + com.google.protobuf.ByteString getRbacrolebindingIdBytes(); + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequest.java new file mode 100644 index 000000000000..8f7841195b6b --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequest.java @@ -0,0 +1,1180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to create a fleet namespace.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeNamespaceRequest} + */ +@com.google.protobuf.Generated +public final class CreateScopeNamespaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + CreateScopeNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateScopeNamespaceRequest"); + } + + // Use CreateScopeNamespaceRequest.newBuilder() to construct. + private CreateScopeNamespaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateScopeNamespaceRequest() { + parent_ = ""; + scopeNamespaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the Namespace will be
              +   * created. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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 (project and location) where the Namespace will be
              +   * created. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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 SCOPE_NAMESPACE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object scopeNamespaceId_ = ""; + + /** + * + * + *
              +   * Required. Client chosen ID for the Namespace. `namespace_id` must be a
              +   * valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeNamespaceId. + */ + @java.lang.Override + public java.lang.String getScopeNamespaceId() { + java.lang.Object ref = scopeNamespaceId_; + 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(); + scopeNamespaceId_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. Client chosen ID for the Namespace. `namespace_id` must be a
              +   * valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeNamespaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeNamespaceIdBytes() { + java.lang.Object ref = scopeNamespaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeNamespaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_NAMESPACE_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.Namespace scopeNamespace_; + + /** + * + * + *
              +   * Required. The fleet namespace to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + @java.lang.Override + public boolean hasScopeNamespace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The fleet namespace to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace() { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + + /** + * + * + *
              +   * Required. The fleet namespace to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder() { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeNamespaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, scopeNamespaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getScopeNamespace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeNamespaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, scopeNamespaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScopeNamespace()); + } + 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.v1.CreateScopeNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest other = + (com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getScopeNamespaceId().equals(other.getScopeNamespaceId())) return false; + if (hasScopeNamespace() != other.hasScopeNamespace()) return false; + if (hasScopeNamespace()) { + if (!getScopeNamespace().equals(other.getScopeNamespace())) 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) + SCOPE_NAMESPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getScopeNamespaceId().hashCode(); + if (hasScopeNamespace()) { + hash = (37 * hash) + SCOPE_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getScopeNamespace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest 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.v1.CreateScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest 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.v1.CreateScopeNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.CreateScopeNamespaceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to create a fleet namespace.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeNamespaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + scopeNamespaceId_ = ""; + scopeNamespace_ = null; + if (scopeNamespaceBuilder_ != null) { + scopeNamespaceBuilder_.dispose(); + scopeNamespaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest build() { + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest result = + new com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scopeNamespaceId_ = scopeNamespaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scopeNamespace_ = + scopeNamespaceBuilder_ == null ? scopeNamespace_ : scopeNamespaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest other) { + if (other == com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getScopeNamespaceId().isEmpty()) { + scopeNamespaceId_ = other.scopeNamespaceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasScopeNamespace()) { + mergeScopeNamespace(other.getScopeNamespace()); + } + 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: + { + scopeNamespaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetScopeNamespaceFieldBuilder().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 parent (project and location) where the Namespace will be
              +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Namespace will be
              +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Namespace will be
              +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Namespace will be
              +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Namespace will be
              +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 scopeNamespaceId_ = ""; + + /** + * + * + *
              +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
              +     * valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeNamespaceId. + */ + public java.lang.String getScopeNamespaceId() { + java.lang.Object ref = scopeNamespaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scopeNamespaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
              +     * valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeNamespaceId. + */ + public com.google.protobuf.ByteString getScopeNamespaceIdBytes() { + java.lang.Object ref = scopeNamespaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeNamespaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
              +     * valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scopeNamespaceId to set. + * @return This builder for chaining. + */ + public Builder setScopeNamespaceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scopeNamespaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
              +     * valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScopeNamespaceId() { + scopeNamespaceId_ = getDefaultInstance().getScopeNamespaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
              +     * valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for scopeNamespaceId to set. + * @return This builder for chaining. + */ + public Builder setScopeNamespaceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scopeNamespaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.Namespace scopeNamespace_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + scopeNamespaceBuilder_; + + /** + * + * + *
              +     * Required. The fleet namespace to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + public boolean hasScopeNamespace() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * Required. The fleet namespace to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace() { + if (scopeNamespaceBuilder_ == null) { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } else { + return scopeNamespaceBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The fleet namespace to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScopeNamespace(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scopeNamespace_ = value; + } else { + scopeNamespaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fleet namespace to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScopeNamespace(com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespaceBuilder_ == null) { + scopeNamespace_ = builderForValue.build(); + } else { + scopeNamespaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fleet namespace to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeScopeNamespace(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespaceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && scopeNamespace_ != null + && scopeNamespace_ != com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()) { + getScopeNamespaceBuilder().mergeFrom(value); + } else { + scopeNamespace_ = value; + } + } else { + scopeNamespaceBuilder_.mergeFrom(value); + } + if (scopeNamespace_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The fleet namespace to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearScopeNamespace() { + bitField0_ = (bitField0_ & ~0x00000004); + scopeNamespace_ = null; + if (scopeNamespaceBuilder_ != null) { + scopeNamespaceBuilder_.dispose(); + scopeNamespaceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fleet namespace to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Namespace.Builder getScopeNamespaceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetScopeNamespaceFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The fleet namespace to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder() { + if (scopeNamespaceBuilder_ != null) { + return scopeNamespaceBuilder_.getMessageOrBuilder(); + } else { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + } + + /** + * + * + *
              +     * Required. The fleet namespace to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + internalGetScopeNamespaceFieldBuilder() { + if (scopeNamespaceBuilder_ == null) { + scopeNamespaceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder>( + getScopeNamespace(), getParentForChildren(), isClean()); + scopeNamespace_ = null; + } + return scopeNamespaceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + private static final com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScopeNamespaceRequest 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.v1.CreateScopeNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..fa136e3e1ef1 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateScopeNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the Namespace will be
              +   * created. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the Namespace will be
              +   * created. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Required. Client chosen ID for the Namespace. `namespace_id` must be a
              +   * valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeNamespaceId. + */ + java.lang.String getScopeNamespaceId(); + + /** + * + * + *
              +   * Required. Client chosen ID for the Namespace. `namespace_id` must be a
              +   * valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeNamespaceId. + */ + com.google.protobuf.ByteString getScopeNamespaceIdBytes(); + + /** + * + * + *
              +   * Required. The fleet namespace to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + boolean hasScopeNamespace(); + + /** + * + * + *
              +   * Required. The fleet namespace to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + com.google.cloud.gkehub.v1.Namespace getScopeNamespace(); + + /** + * + * + *
              +   * Required. The fleet namespace to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequest.java new file mode 100644 index 000000000000..4de29bdccacf --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequest.java @@ -0,0 +1,1187 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to create a rbacrolebindings.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class CreateScopeRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + CreateScopeRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateScopeRBACRoleBindingRequest"); + } + + // Use CreateScopeRBACRoleBindingRequest.newBuilder() to construct. + private CreateScopeRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateScopeRBACRoleBindingRequest() { + parent_ = ""; + rbacrolebindingId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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 RBACROLEBINDING_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rbacrolebindingId_ = ""; + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + @java.lang.Override + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + 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(); + rbacrolebindingId_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RBACROLEBINDING_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRbacrolebinding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRbacrolebinding()); + } + 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.v1.CreateScopeRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRbacrolebindingId().equals(other.getRbacrolebindingId())) return false; + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) 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) + RBACROLEBINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingId().hashCode(); + if (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest 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.v1.CreateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest 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.v1.CreateScopeRBACRoleBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.CreateScopeRBACRoleBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to create a rbacrolebindings.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rbacrolebindingId_ = ""; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rbacrolebindingId_ = rbacrolebindingId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRbacrolebindingId().isEmpty()) { + rbacrolebindingId_ = other.rbacrolebindingId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + 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: + { + rbacrolebindingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRbacrolebindingFieldBuilder().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 parent (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 rbacrolebindingId_ = ""; + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rbacrolebindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRbacrolebindingId() { + rbacrolebindingId_ = getDefaultInstance().getRbacrolebindingId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000004); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to create.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScopeRBACRoleBindingRequest 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.v1.CreateScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..63df8637a275 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateScopeRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + java.lang.String getRbacrolebindingId(); + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + com.google.protobuf.ByteString getRbacrolebindingIdBytes(); + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
              +   * Required. The rbacrolebindings to create.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequest.java new file mode 100644 index 000000000000..f40b34cdbf68 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequest.java @@ -0,0 +1,1104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to create a Scope.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeRequest} + */ +@com.google.protobuf.Generated +public final class CreateScopeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateScopeRequest) + CreateScopeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateScopeRequest"); + } + + // Use CreateScopeRequest.newBuilder() to construct. + private CreateScopeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateScopeRequest() { + parent_ = ""; + scopeId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeRequest.class, + com.google.cloud.gkehub.v1.CreateScopeRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the Scope will be
              +   * created. Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * 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 (project and location) where the Scope will be
              +   * created. Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * 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 SCOPE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object scopeId_ = ""; + + /** + * + * + *
              +   * Required. Client chosen ID for the Scope. `scope_id` must be a
              +   * ????
              +   * 
              + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeId. + */ + @java.lang.Override + public java.lang.String getScopeId() { + java.lang.Object ref = scopeId_; + 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(); + scopeId_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. Client chosen ID for the Scope. `scope_id` must be a
              +   * ????
              +   * 
              + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeIdBytes() { + java.lang.Object ref = scopeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.Scope scope_; + + /** + * + * + *
              +   * Required. The Scope to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The Scope to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getScope() { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + + /** + * + * + *
              +   * Required. The Scope to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder() { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, scopeId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getScope()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, scopeId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScope()); + } + 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.v1.CreateScopeRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateScopeRequest other = + (com.google.cloud.gkehub.v1.CreateScopeRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getScopeId().equals(other.getScopeId())) return false; + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope().equals(other.getScope())) 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) + SCOPE_ID_FIELD_NUMBER; + hash = (53 * hash) + getScopeId().hashCode(); + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest 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.v1.CreateScopeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest 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.v1.CreateScopeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.CreateScopeRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to create a Scope.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateScopeRequest) + com.google.cloud.gkehub.v1.CreateScopeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeRequest.class, + com.google.cloud.gkehub.v1.CreateScopeRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateScopeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + scopeId_ = ""; + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateScopeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRequest build() { + com.google.cloud.gkehub.v1.CreateScopeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateScopeRequest result = + new com.google.cloud.gkehub.v1.CreateScopeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CreateScopeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scopeId_ = scopeId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateScopeRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateScopeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateScopeRequest other) { + if (other == com.google.cloud.gkehub.v1.CreateScopeRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getScopeId().isEmpty()) { + scopeId_ = other.scopeId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasScope()) { + mergeScope(other.getScope()); + } + 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: + { + scopeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetScopeFieldBuilder().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 parent (project and location) where the Scope will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be
              +     * created. Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 scopeId_ = ""; + + /** + * + * + *
              +     * Required. Client chosen ID for the Scope. `scope_id` must be a
              +     * ????
              +     * 
              + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeId. + */ + public java.lang.String getScopeId() { + java.lang.Object ref = scopeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scopeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the Scope. `scope_id` must be a
              +     * ????
              +     * 
              + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeId. + */ + public com.google.protobuf.ByteString getScopeIdBytes() { + java.lang.Object ref = scopeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the Scope. `scope_id` must be a
              +     * ????
              +     * 
              + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scopeId to set. + * @return This builder for chaining. + */ + public Builder setScopeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scopeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the Scope. `scope_id` must be a
              +     * ????
              +     * 
              + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScopeId() { + scopeId_ = getDefaultInstance().getScopeId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the Scope. `scope_id` must be a
              +     * ????
              +     * 
              + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for scopeId to set. + * @return This builder for chaining. + */ + public Builder setScopeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scopeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.Scope scope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + scopeBuilder_; + + /** + * + * + *
              +     * Required. The Scope to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * Required. The Scope to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scope. + */ + public com.google.cloud.gkehub.v1.Scope getScope() { + if (scopeBuilder_ == null) { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } else { + return scopeBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The Scope to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.gkehub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + } else { + scopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The Scope to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopeBuilder_ == null) { + scope_ = builderForValue.build(); + } else { + scopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The Scope to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeScope(com.google.cloud.gkehub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && scope_ != null + && scope_ != com.google.cloud.gkehub.v1.Scope.getDefaultInstance()) { + getScopeBuilder().mergeFrom(value); + } else { + scope_ = value; + } + } else { + scopeBuilder_.mergeFrom(value); + } + if (scope_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The Scope to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000004); + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The Scope to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Scope.Builder getScopeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The Scope to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder() { + if (scopeBuilder_ != null) { + return scopeBuilder_.getMessageOrBuilder(); + } else { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + } + + /** + * + * + *
              +     * Required. The Scope to create.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + internalGetScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder>( + getScope(), getParentForChildren(), isClean()); + scope_ = null; + } + return scopeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateScopeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateScopeRequest) + private static final com.google.cloud.gkehub.v1.CreateScopeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateScopeRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScopeRequest 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.v1.CreateScopeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequestOrBuilder.java new file mode 100644 index 000000000000..5c5ca3cbebe4 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateScopeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateScopeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the Scope will be
              +   * created. Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the Scope will be
              +   * created. Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Required. Client chosen ID for the Scope. `scope_id` must be a
              +   * ????
              +   * 
              + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeId. + */ + java.lang.String getScopeId(); + + /** + * + * + *
              +   * Required. Client chosen ID for the Scope. `scope_id` must be a
              +   * ????
              +   * 
              + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeId. + */ + com.google.protobuf.ByteString getScopeIdBytes(); + + /** + * + * + *
              +   * Required. The Scope to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
              +   * Required. The Scope to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + com.google.cloud.gkehub.v1.Scope getScope(); + + /** + * + * + *
              +   * Required. The Scope to create.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfig.java new file mode 100644 index 000000000000..d578765ba9b9 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfig.java @@ -0,0 +1,1371 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * DefaultClusterConfig describes the default cluster configurations to be
              + * applied to all clusters born-in-fleet.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DefaultClusterConfig} + */ +@com.google.protobuf.Generated +public final class DefaultClusterConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DefaultClusterConfig) + DefaultClusterConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DefaultClusterConfig"); + } + + // Use DefaultClusterConfig.newBuilder() to construct. + private DefaultClusterConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DefaultClusterConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DefaultClusterConfig.class, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder.class); + } + + private int bitField0_; + public static final int SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.SecurityPostureConfig securityPostureConfig_; + + /** + * + * + *
              +   * Enable/Disable Security Posture features for the cluster.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return Whether the securityPostureConfig field is set. + */ + @java.lang.Override + public boolean hasSecurityPostureConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Enable/Disable Security Posture features for the cluster.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return The securityPostureConfig. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig getSecurityPostureConfig() { + return securityPostureConfig_ == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance() + : securityPostureConfig_; + } + + /** + * + * + *
              +   * Enable/Disable Security Posture features for the cluster.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder + getSecurityPostureConfigOrBuilder() { + return securityPostureConfig_ == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance() + : securityPostureConfig_; + } + + public static final int BINARY_AUTHORIZATION_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.gkehub.v1.BinaryAuthorizationConfig binaryAuthorizationConfig_; + + /** + * + * + *
              +   * Optional. Enable/Disable binary authorization features for the cluster.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the binaryAuthorizationConfig field is set. + */ + @java.lang.Override + public boolean hasBinaryAuthorizationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Optional. Enable/Disable binary authorization features for the cluster.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The binaryAuthorizationConfig. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getBinaryAuthorizationConfig() { + return binaryAuthorizationConfig_ == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance() + : binaryAuthorizationConfig_; + } + + /** + * + * + *
              +   * Optional. Enable/Disable binary authorization features for the cluster.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder + getBinaryAuthorizationConfigOrBuilder() { + return binaryAuthorizationConfig_ == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance() + : binaryAuthorizationConfig_; + } + + public static final int COMPLIANCE_POSTURE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.CompliancePostureConfig compliancePostureConfig_; + + /** + * + * + *
              +   * Optional. Enable/Disable Compliance Posture features for the cluster.
              +   * Note that on UpdateFleet, only full replacement of this field is allowed.
              +   * Users are not allowed for partial updates through field mask.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compliancePostureConfig field is set. + */ + @java.lang.Override + public boolean hasCompliancePostureConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +   * Optional. Enable/Disable Compliance Posture features for the cluster.
              +   * Note that on UpdateFleet, only full replacement of this field is allowed.
              +   * Users are not allowed for partial updates through field mask.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compliancePostureConfig. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig getCompliancePostureConfig() { + return compliancePostureConfig_ == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } + + /** + * + * + *
              +   * Optional. Enable/Disable Compliance Posture features for the cluster.
              +   * Note that on UpdateFleet, only full replacement of this field is allowed.
              +   * Users are not allowed for partial updates through field mask.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder + getCompliancePostureConfigOrBuilder() { + return compliancePostureConfig_ == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } + + 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, getSecurityPostureConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getBinaryAuthorizationConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getCompliancePostureConfig()); + } + 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, getSecurityPostureConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getBinaryAuthorizationConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCompliancePostureConfig()); + } + 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.v1.DefaultClusterConfig)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DefaultClusterConfig other = + (com.google.cloud.gkehub.v1.DefaultClusterConfig) obj; + + if (hasSecurityPostureConfig() != other.hasSecurityPostureConfig()) return false; + if (hasSecurityPostureConfig()) { + if (!getSecurityPostureConfig().equals(other.getSecurityPostureConfig())) return false; + } + if (hasBinaryAuthorizationConfig() != other.hasBinaryAuthorizationConfig()) return false; + if (hasBinaryAuthorizationConfig()) { + if (!getBinaryAuthorizationConfig().equals(other.getBinaryAuthorizationConfig())) + return false; + } + if (hasCompliancePostureConfig() != other.hasCompliancePostureConfig()) return false; + if (hasCompliancePostureConfig()) { + if (!getCompliancePostureConfig().equals(other.getCompliancePostureConfig())) 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 (hasSecurityPostureConfig()) { + hash = (37 * hash) + SECURITY_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecurityPostureConfig().hashCode(); + } + if (hasBinaryAuthorizationConfig()) { + hash = (37 * hash) + BINARY_AUTHORIZATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBinaryAuthorizationConfig().hashCode(); + } + if (hasCompliancePostureConfig()) { + hash = (37 * hash) + COMPLIANCE_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCompliancePostureConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig 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.v1.DefaultClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig 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.v1.DefaultClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.DefaultClusterConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * DefaultClusterConfig describes the default cluster configurations to be
              +   * applied to all clusters born-in-fleet.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DefaultClusterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DefaultClusterConfig) + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DefaultClusterConfig.class, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DefaultClusterConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSecurityPostureConfigFieldBuilder(); + internalGetBinaryAuthorizationConfigFieldBuilder(); + internalGetCompliancePostureConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + securityPostureConfig_ = null; + if (securityPostureConfigBuilder_ != null) { + securityPostureConfigBuilder_.dispose(); + securityPostureConfigBuilder_ = null; + } + binaryAuthorizationConfig_ = null; + if (binaryAuthorizationConfigBuilder_ != null) { + binaryAuthorizationConfigBuilder_.dispose(); + binaryAuthorizationConfigBuilder_ = null; + } + compliancePostureConfig_ = null; + if (compliancePostureConfigBuilder_ != null) { + compliancePostureConfigBuilder_.dispose(); + compliancePostureConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfig build() { + com.google.cloud.gkehub.v1.DefaultClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfig buildPartial() { + com.google.cloud.gkehub.v1.DefaultClusterConfig result = + new com.google.cloud.gkehub.v1.DefaultClusterConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DefaultClusterConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.securityPostureConfig_ = + securityPostureConfigBuilder_ == null + ? securityPostureConfig_ + : securityPostureConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.binaryAuthorizationConfig_ = + binaryAuthorizationConfigBuilder_ == null + ? binaryAuthorizationConfig_ + : binaryAuthorizationConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.compliancePostureConfig_ = + compliancePostureConfigBuilder_ == null + ? compliancePostureConfig_ + : compliancePostureConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DefaultClusterConfig) { + return mergeFrom((com.google.cloud.gkehub.v1.DefaultClusterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DefaultClusterConfig other) { + if (other == com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance()) + return this; + if (other.hasSecurityPostureConfig()) { + mergeSecurityPostureConfig(other.getSecurityPostureConfig()); + } + if (other.hasBinaryAuthorizationConfig()) { + mergeBinaryAuthorizationConfig(other.getBinaryAuthorizationConfig()); + } + if (other.hasCompliancePostureConfig()) { + mergeCompliancePostureConfig(other.getCompliancePostureConfig()); + } + 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( + internalGetSecurityPostureConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetBinaryAuthorizationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCompliancePostureConfigFieldBuilder().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.cloud.gkehub.v1.SecurityPostureConfig securityPostureConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.SecurityPostureConfig, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder, + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder> + securityPostureConfigBuilder_; + + /** + * + * + *
              +     * Enable/Disable Security Posture features for the cluster.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return Whether the securityPostureConfig field is set. + */ + public boolean hasSecurityPostureConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Enable/Disable Security Posture features for the cluster.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return The securityPostureConfig. + */ + public com.google.cloud.gkehub.v1.SecurityPostureConfig getSecurityPostureConfig() { + if (securityPostureConfigBuilder_ == null) { + return securityPostureConfig_ == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance() + : securityPostureConfig_; + } else { + return securityPostureConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Enable/Disable Security Posture features for the cluster.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public Builder setSecurityPostureConfig( + com.google.cloud.gkehub.v1.SecurityPostureConfig value) { + if (securityPostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityPostureConfig_ = value; + } else { + securityPostureConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Enable/Disable Security Posture features for the cluster.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public Builder setSecurityPostureConfig( + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder builderForValue) { + if (securityPostureConfigBuilder_ == null) { + securityPostureConfig_ = builderForValue.build(); + } else { + securityPostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Enable/Disable Security Posture features for the cluster.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public Builder mergeSecurityPostureConfig( + com.google.cloud.gkehub.v1.SecurityPostureConfig value) { + if (securityPostureConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && securityPostureConfig_ != null + && securityPostureConfig_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance()) { + getSecurityPostureConfigBuilder().mergeFrom(value); + } else { + securityPostureConfig_ = value; + } + } else { + securityPostureConfigBuilder_.mergeFrom(value); + } + if (securityPostureConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Enable/Disable Security Posture features for the cluster.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public Builder clearSecurityPostureConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + securityPostureConfig_ = null; + if (securityPostureConfigBuilder_ != null) { + securityPostureConfigBuilder_.dispose(); + securityPostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Enable/Disable Security Posture features for the cluster.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder + getSecurityPostureConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSecurityPostureConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Enable/Disable Security Posture features for the cluster.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder + getSecurityPostureConfigOrBuilder() { + if (securityPostureConfigBuilder_ != null) { + return securityPostureConfigBuilder_.getMessageOrBuilder(); + } else { + return securityPostureConfig_ == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance() + : securityPostureConfig_; + } + } + + /** + * + * + *
              +     * Enable/Disable Security Posture features for the cluster.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.SecurityPostureConfig, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder, + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder> + internalGetSecurityPostureConfigFieldBuilder() { + if (securityPostureConfigBuilder_ == null) { + securityPostureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.SecurityPostureConfig, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder, + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder>( + getSecurityPostureConfig(), getParentForChildren(), isClean()); + securityPostureConfig_ = null; + } + return securityPostureConfigBuilder_; + } + + private com.google.cloud.gkehub.v1.BinaryAuthorizationConfig binaryAuthorizationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder> + binaryAuthorizationConfigBuilder_; + + /** + * + * + *
              +     * Optional. Enable/Disable binary authorization features for the cluster.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the binaryAuthorizationConfig field is set. + */ + public boolean hasBinaryAuthorizationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Optional. Enable/Disable binary authorization features for the cluster.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The binaryAuthorizationConfig. + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getBinaryAuthorizationConfig() { + if (binaryAuthorizationConfigBuilder_ == null) { + return binaryAuthorizationConfig_ == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance() + : binaryAuthorizationConfig_; + } else { + return binaryAuthorizationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Optional. Enable/Disable binary authorization features for the cluster.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBinaryAuthorizationConfig( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig value) { + if (binaryAuthorizationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binaryAuthorizationConfig_ = value; + } else { + binaryAuthorizationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Enable/Disable binary authorization features for the cluster.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBinaryAuthorizationConfig( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder builderForValue) { + if (binaryAuthorizationConfigBuilder_ == null) { + binaryAuthorizationConfig_ = builderForValue.build(); + } else { + binaryAuthorizationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Enable/Disable binary authorization features for the cluster.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBinaryAuthorizationConfig( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig value) { + if (binaryAuthorizationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && binaryAuthorizationConfig_ != null + && binaryAuthorizationConfig_ + != com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance()) { + getBinaryAuthorizationConfigBuilder().mergeFrom(value); + } else { + binaryAuthorizationConfig_ = value; + } + } else { + binaryAuthorizationConfigBuilder_.mergeFrom(value); + } + if (binaryAuthorizationConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Optional. Enable/Disable binary authorization features for the cluster.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBinaryAuthorizationConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + binaryAuthorizationConfig_ = null; + if (binaryAuthorizationConfigBuilder_ != null) { + binaryAuthorizationConfigBuilder_.dispose(); + binaryAuthorizationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Enable/Disable binary authorization features for the cluster.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder + getBinaryAuthorizationConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetBinaryAuthorizationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Optional. Enable/Disable binary authorization features for the cluster.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder + getBinaryAuthorizationConfigOrBuilder() { + if (binaryAuthorizationConfigBuilder_ != null) { + return binaryAuthorizationConfigBuilder_.getMessageOrBuilder(); + } else { + return binaryAuthorizationConfig_ == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance() + : binaryAuthorizationConfig_; + } + } + + /** + * + * + *
              +     * Optional. Enable/Disable binary authorization features for the cluster.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder> + internalGetBinaryAuthorizationConfigFieldBuilder() { + if (binaryAuthorizationConfigBuilder_ == null) { + binaryAuthorizationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder>( + getBinaryAuthorizationConfig(), getParentForChildren(), isClean()); + binaryAuthorizationConfig_ = null; + } + return binaryAuthorizationConfigBuilder_; + } + + private com.google.cloud.gkehub.v1.CompliancePostureConfig compliancePostureConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder> + compliancePostureConfigBuilder_; + + /** + * + * + *
              +     * Optional. Enable/Disable Compliance Posture features for the cluster.
              +     * Note that on UpdateFleet, only full replacement of this field is allowed.
              +     * Users are not allowed for partial updates through field mask.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compliancePostureConfig field is set. + */ + public boolean hasCompliancePostureConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * Optional. Enable/Disable Compliance Posture features for the cluster.
              +     * Note that on UpdateFleet, only full replacement of this field is allowed.
              +     * Users are not allowed for partial updates through field mask.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compliancePostureConfig. + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig getCompliancePostureConfig() { + if (compliancePostureConfigBuilder_ == null) { + return compliancePostureConfig_ == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } else { + return compliancePostureConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Optional. Enable/Disable Compliance Posture features for the cluster.
              +     * Note that on UpdateFleet, only full replacement of this field is allowed.
              +     * Users are not allowed for partial updates through field mask.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCompliancePostureConfig( + com.google.cloud.gkehub.v1.CompliancePostureConfig value) { + if (compliancePostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compliancePostureConfig_ = value; + } else { + compliancePostureConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Enable/Disable Compliance Posture features for the cluster.
              +     * Note that on UpdateFleet, only full replacement of this field is allowed.
              +     * Users are not allowed for partial updates through field mask.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCompliancePostureConfig( + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder builderForValue) { + if (compliancePostureConfigBuilder_ == null) { + compliancePostureConfig_ = builderForValue.build(); + } else { + compliancePostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Enable/Disable Compliance Posture features for the cluster.
              +     * Note that on UpdateFleet, only full replacement of this field is allowed.
              +     * Users are not allowed for partial updates through field mask.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCompliancePostureConfig( + com.google.cloud.gkehub.v1.CompliancePostureConfig value) { + if (compliancePostureConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && compliancePostureConfig_ != null + && compliancePostureConfig_ + != com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance()) { + getCompliancePostureConfigBuilder().mergeFrom(value); + } else { + compliancePostureConfig_ = value; + } + } else { + compliancePostureConfigBuilder_.mergeFrom(value); + } + if (compliancePostureConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Optional. Enable/Disable Compliance Posture features for the cluster.
              +     * Note that on UpdateFleet, only full replacement of this field is allowed.
              +     * Users are not allowed for partial updates through field mask.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCompliancePostureConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + compliancePostureConfig_ = null; + if (compliancePostureConfigBuilder_ != null) { + compliancePostureConfigBuilder_.dispose(); + compliancePostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Enable/Disable Compliance Posture features for the cluster.
              +     * Note that on UpdateFleet, only full replacement of this field is allowed.
              +     * Users are not allowed for partial updates through field mask.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder + getCompliancePostureConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCompliancePostureConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Optional. Enable/Disable Compliance Posture features for the cluster.
              +     * Note that on UpdateFleet, only full replacement of this field is allowed.
              +     * Users are not allowed for partial updates through field mask.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder + getCompliancePostureConfigOrBuilder() { + if (compliancePostureConfigBuilder_ != null) { + return compliancePostureConfigBuilder_.getMessageOrBuilder(); + } else { + return compliancePostureConfig_ == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } + } + + /** + * + * + *
              +     * Optional. Enable/Disable Compliance Posture features for the cluster.
              +     * Note that on UpdateFleet, only full replacement of this field is allowed.
              +     * Users are not allowed for partial updates through field mask.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder> + internalGetCompliancePostureConfigFieldBuilder() { + if (compliancePostureConfigBuilder_ == null) { + compliancePostureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder>( + getCompliancePostureConfig(), getParentForChildren(), isClean()); + compliancePostureConfig_ = null; + } + return compliancePostureConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DefaultClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DefaultClusterConfig) + private static final com.google.cloud.gkehub.v1.DefaultClusterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DefaultClusterConfig(); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultClusterConfig 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.v1.DefaultClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfigOrBuilder.java new file mode 100644 index 000000000000..839436f431fa --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfigOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DefaultClusterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DefaultClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Enable/Disable Security Posture features for the cluster.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return Whether the securityPostureConfig field is set. + */ + boolean hasSecurityPostureConfig(); + + /** + * + * + *
              +   * Enable/Disable Security Posture features for the cluster.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return The securityPostureConfig. + */ + com.google.cloud.gkehub.v1.SecurityPostureConfig getSecurityPostureConfig(); + + /** + * + * + *
              +   * Enable/Disable Security Posture features for the cluster.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder(); + + /** + * + * + *
              +   * Optional. Enable/Disable binary authorization features for the cluster.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the binaryAuthorizationConfig field is set. + */ + boolean hasBinaryAuthorizationConfig(); + + /** + * + * + *
              +   * Optional. Enable/Disable binary authorization features for the cluster.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The binaryAuthorizationConfig. + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getBinaryAuthorizationConfig(); + + /** + * + * + *
              +   * Optional. Enable/Disable binary authorization features for the cluster.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder + getBinaryAuthorizationConfigOrBuilder(); + + /** + * + * + *
              +   * Optional. Enable/Disable Compliance Posture features for the cluster.
              +   * Note that on UpdateFleet, only full replacement of this field is allowed.
              +   * Users are not allowed for partial updates through field mask.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compliancePostureConfig field is set. + */ + boolean hasCompliancePostureConfig(); + + /** + * + * + *
              +   * Optional. Enable/Disable Compliance Posture features for the cluster.
              +   * Note that on UpdateFleet, only full replacement of this field is allowed.
              +   * Users are not allowed for partial updates through field mask.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compliancePostureConfig. + */ + com.google.cloud.gkehub.v1.CompliancePostureConfig getCompliancePostureConfig(); + + /** + * + * + *
              +   * Optional. Enable/Disable Compliance Posture features for the cluster.
              +   * Note that on UpdateFleet, only full replacement of this field is allowed.
              +   * Users are not allowed for partial updates through field mask.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder getCompliancePostureConfigOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequest.java new file mode 100644 index 000000000000..82f85c210f06 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequest.java @@ -0,0 +1,616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request message for `GkeHub.DeleteFleet` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteFleetRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFleetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteFleetRequest) + DeleteFleetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFleetRequest"); + } + + // Use DeleteFleetRequest.newBuilder() to construct. + private DeleteFleetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFleetRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteFleetRequest.class, + com.google.cloud.gkehub.v1.DeleteFleetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The Fleet resource name in the format
              +   * `projects/*/locations/*/fleets/*`.
              +   * 
              + * + * + * 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 Fleet resource name in the format
              +   * `projects/*/locations/*/fleets/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.DeleteFleetRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteFleetRequest other = + (com.google.cloud.gkehub.v1.DeleteFleetRequest) 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.gkehub.v1.DeleteFleetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest 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.v1.DeleteFleetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest 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.v1.DeleteFleetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.DeleteFleetRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for `GkeHub.DeleteFleet` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteFleetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteFleetRequest) + com.google.cloud.gkehub.v1.DeleteFleetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteFleetRequest.class, + com.google.cloud.gkehub.v1.DeleteFleetRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteFleetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteFleetRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteFleetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteFleetRequest build() { + com.google.cloud.gkehub.v1.DeleteFleetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteFleetRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteFleetRequest result = + new com.google.cloud.gkehub.v1.DeleteFleetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DeleteFleetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteFleetRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteFleetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteFleetRequest other) { + if (other == com.google.cloud.gkehub.v1.DeleteFleetRequest.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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteFleetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteFleetRequest) + private static final com.google.cloud.gkehub.v1.DeleteFleetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteFleetRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFleetRequest 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.v1.DeleteFleetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequestOrBuilder.java new file mode 100644 index 000000000000..8241b744a6fd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteFleetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteFleetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The Fleet resource name in the format
              +   * `projects/*/locations/*/fleets/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The Fleet resource name in the format
              +   * `projects/*/locations/*/fleets/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequest.java new file mode 100644 index 000000000000..7467109ff706 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to delete a Binding.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipBindingRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMembershipBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + DeleteMembershipBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMembershipBindingRequest"); + } + + // Use DeleteMembershipBindingRequest.newBuilder() to construct. + private DeleteMembershipBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMembershipBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The MembershipBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/bindings/*`.
              +   * 
              + * + * + * 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 MembershipBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/bindings/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.DeleteMembershipBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest other = + (com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest) 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.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest 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.v1.DeleteMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest 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.v1.DeleteMembershipBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.DeleteMembershipBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to delete a Binding.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest build() { + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest result = + new com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + private static final com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipBindingRequest 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.v1.DeleteMembershipBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequestOrBuilder.java new file mode 100644 index 000000000000..bc9ba8976d17 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteMembershipBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The MembershipBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/bindings/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The MembershipBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/bindings/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequest.java new file mode 100644 index 000000000000..06c480b93341 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequest.java @@ -0,0 +1,629 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to delete a Membership RBACRoleBinding.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMembershipRBACRoleBindingRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + DeleteMembershipRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMembershipRBACRoleBindingRequest"); + } + + // Use DeleteMembershipRBACRoleBindingRequest.newBuilder() to construct. + private DeleteMembershipRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMembershipRBACRoleBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.DeleteMembershipRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) 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.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest 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.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest 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.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.DeleteMembershipRBACRoleBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to delete a Membership RBACRoleBinding.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipRBACRoleBindingRequest 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.v1.DeleteMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..cee770e56a6f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteMembershipRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequest.java new file mode 100644 index 000000000000..e257f23ee135 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to delete a fleet namespace.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeNamespaceRequest} + */ +@com.google.protobuf.Generated +public final class DeleteScopeNamespaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + DeleteScopeNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteScopeNamespaceRequest"); + } + + // Use DeleteScopeNamespaceRequest.newBuilder() to construct. + private DeleteScopeNamespaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteScopeNamespaceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The Namespace resource name in the format
              +   * `projects/*/locations/*/scopes/*/namespaces/*`.
              +   * 
              + * + * + * 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 Namespace resource name in the format
              +   * `projects/*/locations/*/scopes/*/namespaces/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.DeleteScopeNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest other = + (com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) 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.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest 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.v1.DeleteScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest 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.v1.DeleteScopeNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.DeleteScopeNamespaceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to delete a fleet namespace.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest build() { + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest result = + new com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest other) { + if (other == com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + private static final com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScopeNamespaceRequest 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.v1.DeleteScopeNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..bccaed40bb6e --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteScopeNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The Namespace resource name in the format
              +   * `projects/*/locations/*/scopes/*/namespaces/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The Namespace resource name in the format
              +   * `projects/*/locations/*/scopes/*/namespaces/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequest.java new file mode 100644 index 000000000000..ce38fa165da3 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequest.java @@ -0,0 +1,623 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to delete a Scope RBACRoleBinding.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class DeleteScopeRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + DeleteScopeRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteScopeRBACRoleBindingRequest"); + } + + // Use DeleteScopeRBACRoleBindingRequest.newBuilder() to construct. + private DeleteScopeRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteScopeRBACRoleBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.DeleteScopeRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) 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.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest 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.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest 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.v1.DeleteScopeRBACRoleBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.DeleteScopeRBACRoleBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to delete a Scope RBACRoleBinding.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScopeRBACRoleBindingRequest 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.v1.DeleteScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..ac011ab822fd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteScopeRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequest.java new file mode 100644 index 000000000000..349f419a68db --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequest.java @@ -0,0 +1,616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to delete a Scope.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeRequest} + */ +@com.google.protobuf.Generated +public final class DeleteScopeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteScopeRequest) + DeleteScopeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteScopeRequest"); + } + + // Use DeleteScopeRequest.newBuilder() to construct. + private DeleteScopeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteScopeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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 Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.DeleteScopeRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteScopeRequest other = + (com.google.cloud.gkehub.v1.DeleteScopeRequest) 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.gkehub.v1.DeleteScopeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest 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.v1.DeleteScopeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest 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.v1.DeleteScopeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.DeleteScopeRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to delete a Scope.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteScopeRequest) + com.google.cloud.gkehub.v1.DeleteScopeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteScopeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteScopeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRequest build() { + com.google.cloud.gkehub.v1.DeleteScopeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteScopeRequest result = + new com.google.cloud.gkehub.v1.DeleteScopeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DeleteScopeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteScopeRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteScopeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteScopeRequest other) { + if (other == com.google.cloud.gkehub.v1.DeleteScopeRequest.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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteScopeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteScopeRequest) + private static final com.google.cloud.gkehub.v1.DeleteScopeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteScopeRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScopeRequest 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.v1.DeleteScopeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequestOrBuilder.java new file mode 100644 index 000000000000..9cdcfa8306a6 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteScopeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteScopeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java index 8f972c898d0e..b6ac6b16f916 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java @@ -24,7 +24,7 @@ * * *
              - * Feature represents the settings and status of any Hub Feature.
              + * Feature represents the settings and status of any Fleet Feature.
                * 
              * * Protobuf type {@code google.cloud.gkehub.v1.Feature} @@ -53,6 +53,7 @@ private Feature(com.google.protobuf.GeneratedMessage.Builder builder) { private Feature() { name_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -71,6 +72,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl return internalGetMembershipSpecs(); case 7: return internalGetMembershipStates(); + case 12: + return internalGetScopeSpecs(); + case 13: + return internalGetScopeStates(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -173,7 +178,7 @@ public int getLabelsCount() { * * *
              -   * GCP labels for this Feature.
              +   * Labels for this Feature.
                  * 
              * * map<string, string> labels = 2; @@ -197,7 +202,7 @@ public java.util.Map getLabels() { * * *
              -   * GCP labels for this Feature.
              +   * Labels for this Feature.
                  * 
              * * map<string, string> labels = 2; @@ -211,7 +216,7 @@ public java.util.Map getLabelsMap() { * * *
              -   * GCP labels for this Feature.
              +   * Labels for this Feature.
                  * 
              * * map<string, string> labels = 2; @@ -232,7 +237,7 @@ public java.util.Map getLabelsMap() { * * *
              -   * GCP labels for this Feature.
              +   * Labels for this Feature.
                  * 
              * * map<string, string> labels = 2; @@ -315,8 +320,8 @@ public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceState * * *
              -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -   * Hub-wide configuration, this field may be unused.
              +   * Optional. Fleet-wide Feature configuration. If this Feature does not
              +   * support any Fleet-wide configuration, this field may be unused.
                  * 
              * * @@ -334,8 +339,8 @@ public boolean hasSpec() { * * *
              -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -   * Hub-wide configuration, this field may be unused.
              +   * Optional. Fleet-wide Feature configuration. If this Feature does not
              +   * support any Fleet-wide configuration, this field may be unused.
                  * 
              * * @@ -355,8 +360,8 @@ public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { * * *
              -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -   * Hub-wide configuration, this field may be unused.
              +   * Optional. Fleet-wide Feature configuration. If this Feature does not
              +   * support any Fleet-wide configuration, this field may be unused.
                  * 
              * * @@ -410,12 +415,13 @@ public int getMembershipSpecsCount() { * * *
              -   * Optional. Membership-specific configuration for this Feature. If this Feature does
              -   * not support any per-Membership configuration, this field may be unused.
              +   * Optional. Membership-specific configuration for this Feature. If this
              +   * Feature does not support any per-Membership configuration, this field may
              +   * be unused.
                  *
                  * The keys indicate which Membership the configuration is for, in the form:
                  *
              -   * projects/{p}/locations/{l}/memberships/{m}
              +   * `projects/{p}/locations/{l}/memberships/{m}`
                  *
                  * Where {p} is the project, {l} is a valid location and {m} is a valid
                  * Membership in this project at that location. {p} WILL match the Feature's
              @@ -453,12 +459,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
                  *
                  *
                  * 
              -   * Optional. Membership-specific configuration for this Feature. If this Feature does
              -   * not support any per-Membership configuration, this field may be unused.
              +   * Optional. Membership-specific configuration for this Feature. If this
              +   * Feature does not support any per-Membership configuration, this field may
              +   * be unused.
                  *
                  * The keys indicate which Membership the configuration is for, in the form:
                  *
              -   * projects/{p}/locations/{l}/memberships/{m}
              +   * `projects/{p}/locations/{l}/memberships/{m}`
                  *
                  * Where {p} is the project, {l} is a valid location and {m} is a valid
                  * Membership in this project at that location. {p} WILL match the Feature's
              @@ -486,12 +493,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
                  *
                  *
                  * 
              -   * Optional. Membership-specific configuration for this Feature. If this Feature does
              -   * not support any per-Membership configuration, this field may be unused.
              +   * Optional. Membership-specific configuration for this Feature. If this
              +   * Feature does not support any per-Membership configuration, this field may
              +   * be unused.
                  *
                  * The keys indicate which Membership the configuration is for, in the form:
                  *
              -   * projects/{p}/locations/{l}/memberships/{m}
              +   * `projects/{p}/locations/{l}/memberships/{m}`
                  *
                  * Where {p} is the project, {l} is a valid location and {m} is a valid
                  * Membership in this project at that location. {p} WILL match the Feature's
              @@ -527,12 +535,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
                  *
                  *
                  * 
              -   * Optional. Membership-specific configuration for this Feature. If this Feature does
              -   * not support any per-Membership configuration, this field may be unused.
              +   * Optional. Membership-specific configuration for this Feature. If this
              +   * Feature does not support any per-Membership configuration, this field may
              +   * be unused.
                  *
                  * The keys indicate which Membership the configuration is for, in the form:
                  *
              -   * projects/{p}/locations/{l}/memberships/{m}
              +   * `projects/{p}/locations/{l}/memberships/{m}`
                  *
                  * Where {p} is the project, {l} is a valid location and {m} is a valid
                  * Membership in this project at that location. {p} WILL match the Feature's
              @@ -571,7 +580,7 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThro
                  *
                  *
                  * 
              -   * Output only. The Hub-wide Feature state.
              +   * Output only. The Fleet-wide Feature state.
                  * 
              * * @@ -589,7 +598,7 @@ public boolean hasState() { * * *
              -   * Output only. The Hub-wide Feature state.
              +   * Output only. The Fleet-wide Feature state.
                  * 
              * * @@ -609,7 +618,7 @@ public com.google.cloud.gkehub.v1.CommonFeatureState getState() { * * *
              -   * Output only. The Hub-wide Feature state.
              +   * Output only. The Fleet-wide Feature state.
                  * 
              * * @@ -668,7 +677,7 @@ public int getMembershipStatesCount() { * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -704,7 +713,7 @@ public boolean containsMembershipStates(java.lang.String key) { * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -730,7 +739,7 @@ public boolean containsMembershipStates(java.lang.String key) { * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -764,7 +773,7 @@ public boolean containsMembershipStates(java.lang.String key) { * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -945,718 +954,1902 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } - private byte memoizedIsInitialized = -1; + public static final int SCOPE_SPECS_FIELD_NUMBER = 12; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final class ScopeSpecsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.getDefaultInstance()); + } - memoizedIsInitialized = 1; - return true; + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + scopeSpecs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + internalGetScopeSpecs() { + if (scopeSpecs_ == null) { + return com.google.protobuf.MapField.emptyMapField(ScopeSpecsDefaultEntryHolder.defaultEntry); + } + return scopeSpecs_; + } + + public int getScopeSpecsCount() { + return internalGetScopeSpecs().getMap().size(); } + /** + * + * + *
              +   * Optional. Scope-specific configuration for this Feature. If this Feature
              +   * does not support any per-Scope configuration, this field may be unused.
              +   *
              +   * The keys indicate which Scope the configuration is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   *
              +   * {p} will always be returned as the project number, but the project ID is
              +   * also accepted during input. If the same Scope is specified in the map
              +   * twice (using the project ID form, and the project number form), exactly
              +   * ONE of the entries will be saved, with no guarantees as to which. For this
              +   * reason, it is recommended the same format be used for all entries when
              +   * mutating a Feature.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getResourceState()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getSpec()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(6, getState()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(8, getCreateTime()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(9, getUpdateTime()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(10, getDeleteTime()); + public boolean containsScopeSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - getUnknownFields().writeTo(output); + return internalGetScopeSpecs().getMap().containsKey(key); } + /** Use {@link #getScopeSpecsMap()} instead. */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Deprecated + public java.util.Map + getScopeSpecs() { + return getScopeSpecsMap(); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - 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(2, labels__); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); - } - for (java.util.Map.Entry - entry : internalGetMembershipSpecs().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - membershipSpecs__ = - MembershipSpecsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); - } - for (java.util.Map.Entry - entry : internalGetMembershipStates().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - membershipStates__ = - MembershipStatesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
              +   * Optional. Scope-specific configuration for this Feature. If this Feature
              +   * does not support any per-Scope configuration, this field may be unused.
              +   *
              +   * The keys indicate which Scope the configuration is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   *
              +   * {p} will always be returned as the project number, but the project ID is
              +   * also accepted during input. If the same Scope is specified in the map
              +   * twice (using the project ID form, and the project number form), exactly
              +   * ONE of the entries will be saved, with no guarantees as to which. For this
              +   * reason, it is recommended the same format be used for all entries when
              +   * mutating a Feature.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getScopeSpecsMap() { + return internalGetScopeSpecs().getMap(); } + /** + * + * + *
              +   * Optional. Scope-specific configuration for this Feature. If this Feature
              +   * does not support any per-Scope configuration, this field may be unused.
              +   *
              +   * The keys indicate which Scope the configuration is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   *
              +   * {p} will always be returned as the project number, but the project ID is
              +   * also accepted during input. If the same Scope is specified in the map
              +   * twice (using the project ID form, and the project number form), exactly
              +   * ONE of the entries will be saved, with no guarantees as to which. For this
              +   * reason, it is recommended the same format be used for all entries when
              +   * mutating a Feature.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gkehub.v1.Feature)) { - return super.equals(obj); + public /* nullable */ com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - com.google.cloud.gkehub.v1.Feature other = (com.google.cloud.gkehub.v1.Feature) obj; + java.util.Map map = + internalGetScopeSpecs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } - if (!getName().equals(other.getName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasResourceState() != other.hasResourceState()) return false; - if (hasResourceState()) { - if (!getResourceState().equals(other.getResourceState())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec().equals(other.getSpec())) return false; - } - if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; - if (hasState() != other.hasState()) return false; - if (hasState()) { - if (!getState().equals(other.getState())) return false; - } - if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) 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; + /** + * + * + *
              +   * Optional. Scope-specific configuration for this Feature. If this Feature
              +   * does not support any per-Scope configuration, this field may be unused.
              +   *
              +   * The keys indicate which Scope the configuration is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   *
              +   * {p} will always be returned as the project number, but the project ID is
              +   * also accepted during input. If the same Scope is specified in the map
              +   * twice (using the project ID form, and the project number form), exactly
              +   * ONE of the entries will be saved, with no guarantees as to which. For this
              +   * reason, it is recommended the same format be used for all entries when
              +   * mutating a Feature.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (hasDeleteTime() != other.hasDeleteTime()) return false; - if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + java.util.Map map = + internalGetScopeSpecs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + return map.get(key); } - @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 (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); + public static final int SCOPE_STATES_FIELD_NUMBER = 13; + + private static final class ScopeStatesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1.ScopeFeatureState.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + scopeStates_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + internalGetScopeStates() { + if (scopeStates_ == null) { + return com.google.protobuf.MapField.emptyMapField(ScopeStatesDefaultEntryHolder.defaultEntry); } - if (hasResourceState()) { - hash = (37 * hash) + RESOURCE_STATE_FIELD_NUMBER; - hash = (53 * hash) + getResourceState().hashCode(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (!internalGetMembershipSpecs().getMap().isEmpty()) { - hash = (37 * hash) + MEMBERSHIP_SPECS_FIELD_NUMBER; - hash = (53 * hash) + internalGetMembershipSpecs().hashCode(); - } - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + getState().hashCode(); - } - if (!internalGetMembershipStates().getMap().isEmpty()) { - hash = (37 * hash) + MEMBERSHIP_STATES_FIELD_NUMBER; - hash = (53 * hash) + internalGetMembershipStates().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 (hasDeleteTime()) { - hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDeleteTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + return scopeStates_; } - public static com.google.cloud.gkehub.v1.Feature parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public int getScopeStatesCount() { + return internalGetScopeStates().getMap().size(); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
              +   * Output only. Scope-specific Feature status. If this Feature does
              +   * report any per-Scope status, this field may be unused.
              +   *
              +   * The keys indicate which Scope the state is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsScopeStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetScopeStates().getMap().containsKey(key); } - public static com.google.cloud.gkehub.v1.Feature parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** Use {@link #getScopeStatesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getScopeStates() { + return getScopeStatesMap(); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
              +   * Output only. Scope-specific Feature status. If this Feature does
              +   * report any per-Scope status, this field may be unused.
              +   *
              +   * The keys indicate which Scope the state is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getScopeStatesMap() { + return internalGetScopeStates().getMap(); } - public static com.google.cloud.gkehub.v1.Feature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
              +   * Output only. Scope-specific Feature status. If this Feature does
              +   * report any per-Scope status, this field may be unused.
              +   *
              +   * The keys indicate which Scope the state is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetScopeStates().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
              +   * Output only. Scope-specific Feature status. If this Feature does
              +   * report any per-Scope status, this field may be unused.
              +   *
              +   * The keys indicate which Scope the state is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetScopeStates().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } - public static com.google.cloud.gkehub.v1.Feature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static final int UNREACHABLE_FIELD_NUMBER = 15; - public static com.google.cloud.gkehub.v1.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + /** + * + * + *
              +   * Output only. List of locations that could not be reached while fetching
              +   * this feature.
              +   * 
              + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; } - public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
              +   * Output only. List of locations that could not be reached while fetching
              +   * this feature.
              +   * 
              + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
              +   * Output only. List of locations that could not be reached while fetching
              +   * this feature.
              +   * 
              + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
              +   * Output only. List of locations that could not be reached while fetching
              +   * this feature.
              +   * 
              + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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); } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private byte memoizedIsInitialized = -1; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static Builder newBuilder(com.google.cloud.gkehub.v1.Feature prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getResourceState()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getSpec()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getState()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(9, getUpdateTime()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(10, getDeleteTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetScopeSpecs(), ScopeSpecsDefaultEntryHolder.defaultEntry, 12); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetScopeStates(), ScopeStatesDefaultEntryHolder.defaultEntry, 13); + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
              -   * Feature represents the settings and status of any Hub Feature.
              -   * 
              - * - * Protobuf type {@code google.cloud.gkehub.v1.Feature} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Feature) - com.google.cloud.gkehub.v1.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetLabels(); - case 5: - return internalGetMembershipSpecs(); - case 7: - return internalGetMembershipStates(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + 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(2, labels__); } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetMutableLabels(); - case 5: - return internalGetMutableMembershipSpecs(); - case 7: - return internalGetMutableMembershipStates(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Feature.class, - com.google.cloud.gkehub.v1.Feature.Builder.class); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); } - - // Construct using com.google.cloud.gkehub.v1.Feature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + for (java.util.Map.Entry + entry : internalGetMembershipSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + membershipSpecs__ = + MembershipSpecsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetResourceStateFieldBuilder(); - internalGetSpecFieldBuilder(); - internalGetStateFieldBuilder(); - internalGetCreateTimeFieldBuilder(); - internalGetUpdateTimeFieldBuilder(); - internalGetDeleteTimeFieldBuilder(); - } + for (java.util.Map.Entry + entry : internalGetMembershipStates().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + membershipStates__ = + MembershipStatesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - internalGetMutableLabels().clear(); - resourceState_ = null; - if (resourceStateBuilder_ != null) { - resourceStateBuilder_.dispose(); - resourceStateBuilder_ = null; - } - spec_ = null; - if (specBuilder_ != null) { - specBuilder_.dispose(); - specBuilder_ = null; - } - internalGetMutableMembershipSpecs().clear(); - state_ = null; - if (stateBuilder_ != null) { - stateBuilder_.dispose(); - stateBuilder_ = null; - } - internalGetMutableMembershipStates().clear(); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; - } - return this; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } - - @java.lang.Override - public com.google.cloud.gkehub.v1.Feature getDefaultInstanceForType() { - return com.google.cloud.gkehub.v1.Feature.getDefaultInstance(); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); } - - @java.lang.Override - public com.google.cloud.gkehub.v1.Feature build() { - com.google.cloud.gkehub.v1.Feature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + for (java.util.Map.Entry entry : + internalGetScopeSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry + scopeSpecs__ = + ScopeSpecsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, scopeSpecs__); } - - @java.lang.Override - public com.google.cloud.gkehub.v1.Feature buildPartial() { - com.google.cloud.gkehub.v1.Feature result = new com.google.cloud.gkehub.v1.Feature(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + for (java.util.Map.Entry entry : + internalGetScopeStates().getMap().entrySet()) { + com.google.protobuf.MapEntry + scopeStates__ = + ScopeStatesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, scopeStates__); } - - private void buildPartial0(com.google.cloud.gkehub.v1.Feature result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.resourceState_ = - resourceStateBuilder_ == null ? resourceState_ : resourceStateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.spec_ = specBuilder_ == null ? spec_ : specBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.membershipSpecs_ = - internalGetMembershipSpecs().build(MembershipSpecsDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.membershipStates_ = - internalGetMembershipStates().build(MembershipStatesDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); - to_bitField0_ |= 0x00000020; + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); } - result.bitField0_ |= to_bitField0_; + size += dataSize; + size += 1 * getUnreachableList().size(); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gkehub.v1.Feature) { - return mergeFrom((com.google.cloud.gkehub.v1.Feature) other); - } else { - super.mergeFrom(other); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.Feature)) { + return super.equals(obj); } + com.google.cloud.gkehub.v1.Feature other = (com.google.cloud.gkehub.v1.Feature) obj; - public Builder mergeFrom(com.google.cloud.gkehub.v1.Feature other) { - if (other == com.google.cloud.gkehub.v1.Feature.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000002; - if (other.hasResourceState()) { - mergeResourceState(other.getResourceState()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasResourceState() != other.hasResourceState()) return false; + if (hasResourceState()) { + if (!getResourceState().equals(other.getResourceState())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec().equals(other.getSpec())) return false; + } + if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!internalGetScopeSpecs().equals(other.internalGetScopeSpecs())) return false; + if (!internalGetScopeStates().equals(other.internalGetScopeStates())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasResourceState()) { + hash = (37 * hash) + RESOURCE_STATE_FIELD_NUMBER; + hash = (53 * hash) + getResourceState().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (!internalGetMembershipSpecs().getMap().isEmpty()) { + hash = (37 * hash) + MEMBERSHIP_SPECS_FIELD_NUMBER; + hash = (53 * hash) + internalGetMembershipSpecs().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (!internalGetMembershipStates().getMap().isEmpty()) { + hash = (37 * hash) + MEMBERSHIP_STATES_FIELD_NUMBER; + hash = (53 * hash) + internalGetMembershipStates().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 (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (!internalGetScopeSpecs().getMap().isEmpty()) { + hash = (37 * hash) + SCOPE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + internalGetScopeSpecs().hashCode(); + } + if (!internalGetScopeStates().getMap().isEmpty()) { + hash = (37 * hash) + SCOPE_STATES_FIELD_NUMBER; + hash = (53 * hash) + internalGetScopeStates().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.gkehub.v1.Feature parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Feature 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.v1.Feature parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Feature 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.v1.Feature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.Feature 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Feature represents the settings and status of any Fleet Feature.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.Feature} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Feature) + com.google.cloud.gkehub.v1.FeatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetLabels(); + case 5: + return internalGetMembershipSpecs(); + case 7: + return internalGetMembershipStates(); + case 12: + return internalGetScopeSpecs(); + case 13: + return internalGetScopeStates(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableLabels(); + case 5: + return internalGetMutableMembershipSpecs(); + case 7: + return internalGetMutableMembershipStates(); + case 12: + return internalGetMutableScopeSpecs(); + case 13: + return internalGetMutableScopeStates(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Feature.class, + com.google.cloud.gkehub.v1.Feature.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.Feature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResourceStateFieldBuilder(); + internalGetSpecFieldBuilder(); + internalGetStateFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + internalGetMutableLabels().clear(); + resourceState_ = null; + if (resourceStateBuilder_ != null) { + resourceStateBuilder_.dispose(); + resourceStateBuilder_ = null; + } + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + internalGetMutableMembershipSpecs().clear(); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + internalGetMutableMembershipStates().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + internalGetMutableScopeSpecs().clear(); + internalGetMutableScopeStates().clear(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Feature getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.Feature.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Feature build() { + com.google.cloud.gkehub.v1.Feature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Feature buildPartial() { + com.google.cloud.gkehub.v1.Feature result = new com.google.cloud.gkehub.v1.Feature(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.Feature result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resourceState_ = + resourceStateBuilder_ == null ? resourceState_ : resourceStateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.spec_ = specBuilder_ == null ? spec_ : specBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.membershipSpecs_ = + internalGetMembershipSpecs().build(MembershipSpecsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.membershipStates_ = + internalGetMembershipStates().build(MembershipStatesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.scopeSpecs_ = + internalGetScopeSpecs().build(ScopeSpecsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.scopeStates_ = + internalGetScopeStates().build(ScopeStatesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.Feature) { + return mergeFrom((com.google.cloud.gkehub.v1.Feature) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.Feature other) { + if (other == com.google.cloud.gkehub.v1.Feature.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000002; + if (other.hasResourceState()) { + mergeResourceState(other.getResourceState()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); + bitField0_ |= 0x00000010; + if (other.hasState()) { + mergeState(other.getState()); + } + internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); + bitField0_ |= 0x00000040; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + internalGetMutableScopeSpecs().mergeFrom(other.internalGetScopeSpecs()); + bitField0_ |= 0x00000400; + internalGetMutableScopeStates().mergeFrom(other.internalGetScopeStates()); + bitField0_ |= 0x00000800; + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00001000; + } 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetResourceStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + membershipSpecs__ = + input.readMessage( + MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMembershipSpecs() + .ensureBuilderMap() + .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + membershipStates__ = + input.readMessage( + MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMembershipStates() + .ensureBuilderMap() + .put(membershipStates__.getKey(), membershipStates__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 98: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + scopeSpecs__ = + input.readMessage( + ScopeSpecsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableScopeSpecs() + .ensureBuilderMap() + .put(scopeSpecs__.getKey(), scopeSpecs__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + scopeStates__ = + input.readMessage( + ScopeStatesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableScopeStates() + .ensureBuilderMap() + .put(scopeStates__.getKey(), scopeStates__.getValue()); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 122 + 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. The full, unique name of this Feature resource in the format
              +     * `projects/*/locations/*/features/*`.
              +     * 
              + * + * 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. The full, unique name of this Feature resource in the format
              +     * `projects/*/locations/*/features/*`.
              +     * 
              + * + * 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. The full, unique name of this Feature resource in the format
              +     * `projects/*/locations/*/features/*`.
              +     * 
              + * + * 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. The full, unique name of this Feature resource in the format
              +     * `projects/*/locations/*/features/*`.
              +     * 
              + * + * 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. The full, unique name of this Feature resource in the format
              +     * `projects/*/locations/*/features/*`.
              +     * 
              + * + * 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 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_ |= 0x00000002; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
              +     * Labels for this Feature.
              +     * 
              + * + * map<string, string> labels = 2; + */ + @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(); + } + + /** + * + * + *
              +     * Labels for this Feature.
              +     * 
              + * + * map<string, string> labels = 2; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +     * Labels for this Feature.
              +     * 
              + * + * map<string, string> labels = 2; + */ + @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"); } - internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); - bitField0_ |= 0x00000010; - if (other.hasState()) { - mergeState(other.getState()); + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
              +     * Labels for this Feature.
              +     * 
              + * + * map<string, string> labels = 2; + */ + @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_ & ~0x00000002); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
              +     * Labels for this Feature.
              +     * 
              + * + * map<string, string> labels = 2; + */ + 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_ |= 0x00000002; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
              +     * Labels for this Feature.
              +     * 
              + * + * map<string, string> labels = 2; + */ + 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_ |= 0x00000002; + return this; + } + + /** + * + * + *
              +     * Labels for this Feature.
              +     * 
              + * + * map<string, string> labels = 2; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + private com.google.cloud.gkehub.v1.FeatureResourceState resourceState_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureResourceState, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> + resourceStateBuilder_; + + /** + * + * + *
              +     * Output only. State of the Feature resource itself.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resourceState field is set. + */ + public boolean hasResourceState() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * Output only. State of the Feature resource itself.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceState. + */ + public com.google.cloud.gkehub.v1.FeatureResourceState getResourceState() { + if (resourceStateBuilder_ == null) { + return resourceState_ == null + ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() + : resourceState_; + } else { + return resourceStateBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. State of the Feature resource itself.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { + if (resourceStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceState_ = value; + } else { + resourceStateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the Feature resource itself.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceState( + com.google.cloud.gkehub.v1.FeatureResourceState.Builder builderForValue) { + if (resourceStateBuilder_ == null) { + resourceState_ = builderForValue.build(); + } else { + resourceStateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the Feature resource itself.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { + if (resourceStateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && resourceState_ != null + && resourceState_ + != com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance()) { + getResourceStateBuilder().mergeFrom(value); + } else { + resourceState_ = value; + } + } else { + resourceStateBuilder_.mergeFrom(value); + } + if (resourceState_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. State of the Feature resource itself.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResourceState() { + bitField0_ = (bitField0_ & ~0x00000004); + resourceState_ = null; + if (resourceStateBuilder_ != null) { + resourceStateBuilder_.dispose(); + resourceStateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the Feature resource itself.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FeatureResourceState.Builder getResourceStateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetResourceStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. State of the Feature resource itself.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { + if (resourceStateBuilder_ != null) { + return resourceStateBuilder_.getMessageOrBuilder(); + } else { + return resourceState_ == null + ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() + : resourceState_; } - internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); - bitField0_ |= 0x00000040; - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); + } + + /** + * + * + *
              +     * Output only. State of the Feature resource itself.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureResourceState, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> + internalGetResourceStateFieldBuilder() { + if (resourceStateBuilder_ == null) { + resourceStateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureResourceState, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder>( + getResourceState(), getParentForChildren(), isClean()); + resourceState_ = null; } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); + return resourceStateBuilder_; + } + + private com.google.cloud.gkehub.v1.CommonFeatureSpec spec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureSpec, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> + specBuilder_; + + /** + * + * + *
              +     * Optional. Fleet-wide Feature configuration. If this Feature does not
              +     * support any Fleet-wide configuration, this field may be unused.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
              +     * Optional. Fleet-wide Feature configuration. If this Feature does not
              +     * support any Fleet-wide configuration, this field may be unused.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spec. + */ + public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() + : spec_; + } else { + return specBuilder_.getMessage(); } - if (other.hasDeleteTime()) { - mergeDeleteTime(other.getDeleteTime()); + } + + /** + * + * + *
              +     * Optional. Fleet-wide Feature configuration. If this Feature does not
              +     * support any Fleet-wide configuration, this field may be unused.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + } else { + specBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000008; 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.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetResourceStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(internalGetSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - membershipSpecs__ = - input.readMessage( - MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMembershipSpecs() - .ensureBuilderMap() - .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - membershipStates__ = - input.readMessage( - MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMembershipStates() - .ensureBuilderMap() - .put(membershipStates__.getKey(), membershipStates__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - input.readMessage( - internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - input.readMessage( - internalGetDeleteTimeFieldBuilder().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 + /** + * + * + *
              +     * Optional. Fleet-wide Feature configuration. If this Feature does not
              +     * support any Fleet-wide configuration, this field may be unused.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); return this; } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** * * *
              -     * Output only. The full, unique name of this Feature resource in the format
              -     * `projects/*/locations/*/features/*`.
              +     * Optional. Fleet-wide Feature configuration. If this Feature does not
              +     * support any Fleet-wide configuration, this field may be unused.
                    * 
              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - 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; + public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && spec_ != null + && spec_ != com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance()) { + getSpecBuilder().mergeFrom(value); + } else { + spec_ = value; + } } else { - return (java.lang.String) ref; + specBuilder_.mergeFrom(value); + } + if (spec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); } + return this; } /** * * *
              -     * Output only. The full, unique name of this Feature resource in the format
              -     * `projects/*/locations/*/features/*`.
              +     * Optional. Fleet-wide Feature configuration. If this Feature does not
              +     * support any Fleet-wide configuration, this field may be unused.
                    * 
              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + onChanged(); + return this; + } + + /** * - * @return The bytes for name. + * + *
              +     * Optional. Fleet-wide Feature configuration. If this Feature does not
              +     * support any Fleet-wide configuration, this field may be unused.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - 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; + public com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Optional. Fleet-wide Feature configuration. If this Feature does not
              +     * support any Fleet-wide configuration, this field may be unused.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); } else { - return (com.google.protobuf.ByteString) ref; + return spec_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() + : spec_; } } @@ -1664,308 +2857,574 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
              -     * Output only. The full, unique name of this Feature resource in the format
              -     * `projects/*/locations/*/features/*`.
              +     * Optional. Fleet-wide Feature configuration. If this Feature does not
              +     * support any Fleet-wide configuration, this field may be unused.
                    * 
              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureSpec, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> + internalGetSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureSpec, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder>( + getSpec(), getParentForChildren(), isClean()); + spec_ = null; } - name_ = value; - bitField0_ |= 0x00000001; + return specBuilder_; + } + + private static final class MembershipSpecsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureSpec> { + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureSpec build( + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder val) { + if (val instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec) { + return (com.google.cloud.gkehub.v1.MembershipFeatureSpec) val; + } + return ((com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + defaultEntry() { + return MembershipSpecsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final MembershipSpecsConverter membershipSpecsConverter = + new MembershipSpecsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureSpec, + com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> + membershipSpecs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureSpec, + com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> + internalGetMembershipSpecs() { + if (membershipSpecs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(membershipSpecsConverter); + } + return membershipSpecs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureSpec, + com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> + internalGetMutableMembershipSpecs() { + if (membershipSpecs_ == null) { + membershipSpecs_ = new com.google.protobuf.MapFieldBuilder<>(membershipSpecsConverter); + } + bitField0_ |= 0x00000010; onChanged(); - return this; + return membershipSpecs_; + } + + public int getMembershipSpecsCount() { + return internalGetMembershipSpecs().ensureBuilderMap().size(); + } + + /** + * + * + *
              +     * Optional. Membership-specific configuration for this Feature. If this
              +     * Feature does not support any per-Membership configuration, this field may
              +     * be unused.
              +     *
              +     * The keys indicate which Membership the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} WILL match the Feature's
              +     * project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Membership is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
              +     * 
              + * + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMembershipSpecs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getMembershipSpecsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getMembershipSpecs() { + return getMembershipSpecsMap(); + } + + /** + * + * + *
              +     * Optional. Membership-specific configuration for this Feature. If this
              +     * Feature does not support any per-Membership configuration, this field may
              +     * be unused.
              +     *
              +     * The keys indicate which Membership the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} WILL match the Feature's
              +     * project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Membership is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
              +     * 
              + * + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getMembershipSpecsMap() { + return internalGetMembershipSpecs().getImmutableMap(); } /** * * *
              -     * Output only. The full, unique name of this Feature resource in the format
              -     * `projects/*/locations/*/features/*`.
              -     * 
              + * Optional. Membership-specific configuration for this Feature. If this + * Feature does not support any per-Membership configuration, this field may + * be unused. * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * The keys indicate which Membership the configuration is for, in the form: * - * @return This builder for chaining. + * `projects/{p}/locations/{l}/memberships/{m}` + * + * Where {p} is the project, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} WILL match the Feature's + * project. + * + * {p} will always be returned as the project number, but the project ID is + * also accepted during input. If the same Membership is specified in the map + * twice (using the project ID form, and the project number form), exactly + * ONE of the entries will be saved, with no guarantees as to which. For this + * reason, it is recommended the same format be used for all entries when + * mutating a Feature. + *
              + * + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.MembershipFeatureSpec + getMembershipSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableMembershipSpecs().ensureBuilderMap(); + return map.containsKey(key) ? membershipSpecsConverter.build(map.get(key)) : defaultValue; } /** * * *
              -     * Output only. The full, unique name of this Feature resource in the format
              -     * `projects/*/locations/*/features/*`.
              -     * 
              + * Optional. Membership-specific configuration for this Feature. If this + * Feature does not support any per-Membership configuration, this field may + * be unused. * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * The keys indicate which Membership the configuration is for, in the form: * - * @param value The bytes for name to set. - * @return This builder for chaining. + * `projects/{p}/locations/{l}/memberships/{m}` + * + * Where {p} is the project, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} WILL match the Feature's + * project. + * + * {p} will always be returned as the project number, but the project ID is + * also accepted during input. If the same Membership is specified in the map + * twice (using the project ID form, and the project number form), exactly + * ONE of the entries will be saved, with no guarantees as to which. For this + * reason, it is recommended the same format be used for all entries when + * mutating a Feature. + *
              + * + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - 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.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); + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); + java.util.Map + map = internalGetMutableMembershipSpecs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - bitField0_ |= 0x00000002; - onChanged(); - return labels_; + return membershipSpecsConverter.build(map.get(key)); } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + public Builder clearMembershipSpecs() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableMembershipSpecs().clear(); + return this; } /** * * *
              -     * GCP labels for this Feature.
              +     * Optional. Membership-specific configuration for this Feature. If this
              +     * Feature does not support any per-Membership configuration, this field may
              +     * be unused.
              +     *
              +     * The keys indicate which Membership the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} WILL match the Feature's
              +     * project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Membership is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * - * map<string, string> labels = 2; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { + public Builder removeMembershipSpecs(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); + internalGetMutableMembershipSpecs().ensureBuilderMap().remove(key); + return this; } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); + public java.util.Map + getMutableMembershipSpecs() { + bitField0_ |= 0x00000010; + return internalGetMutableMembershipSpecs().ensureMessageMap(); } /** * * *
              -     * GCP labels for this Feature.
              +     * Optional. Membership-specific configuration for this Feature. If this
              +     * Feature does not support any per-Membership configuration, this field may
              +     * be unused.
              +     *
              +     * The keys indicate which Membership the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} WILL match the Feature's
              +     * project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Membership is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * - * map<string, string> labels = 2; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder putMembershipSpecs( + java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMembershipSpecs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000010; + return this; } /** * * *
              -     * GCP labels for this Feature.
              +     * Optional. Membership-specific configuration for this Feature. If this
              +     * Feature does not support any per-Membership configuration, this field may
              +     * be unused.
              +     *
              +     * The keys indicate which Membership the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} WILL match the Feature's
              +     * project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Membership is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * - * map<string, string> labels = 2; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 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"); + public Builder putAllMembershipSpecs( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + internalGetMutableMembershipSpecs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000010; + return this; } /** * * *
              -     * GCP labels for this Feature.
              +     * Optional. Membership-specific configuration for this Feature. If this
              +     * Feature does not support any per-Membership configuration, this field may
              +     * be unused.
              +     *
              +     * The keys indicate which Membership the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} WILL match the Feature's
              +     * project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Membership is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * - * map<string, string> labels = 2; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 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(); + public com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder + putMembershipSpecsBuilderIfAbsent(java.lang.String key) { + java.util.Map + builderMap = internalGetMutableMembershipSpecs().ensureBuilderMap(); + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.gkehub.v1.MembershipFeatureSpec.newBuilder(); + builderMap.put(key, entry); } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableLabels().getMutableMap().clear(); - return this; + if (entry instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec) { + entry = ((com.google.cloud.gkehub.v1.MembershipFeatureSpec) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder) entry; } + private com.google.cloud.gkehub.v1.CommonFeatureState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureState, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> + stateBuilder_; + /** * * *
              -     * GCP labels for this Feature.
              +     * Output only. The Fleet-wide Feature state.
                    * 
              * - * map<string, string> labels = 2; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. */ - 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_ |= 0x00000002; - return internalGetMutableLabels().getMutableMap(); + public boolean hasState() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
              -     * GCP labels for this Feature.
              +     * Output only. The Fleet-wide Feature state.
                    * 
              * - * map<string, string> labels = 2; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. */ - 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"); + public com.google.cloud.gkehub.v1.CommonFeatureState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000002; - return this; } /** * * *
              -     * GCP labels for this Feature.
              +     * Output only. The Fleet-wide Feature state.
                    * 
              * - * map<string, string> labels = 2; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000002; + public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); return this; } - private com.google.cloud.gkehub.v1.FeatureResourceState resourceState_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.FeatureResourceState, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> - resourceStateBuilder_; - /** * * *
              -     * Output only. State of the Feature resource itself.
              +     * Output only. The Fleet-wide Feature state.
                    * 
              * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the resourceState field is set. */ - public boolean hasResourceState() { - return ((bitField0_ & 0x00000004) != 0); + public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
              -     * Output only. State of the Feature resource itself.
              +     * Output only. The Fleet-wide Feature state.
                    * 
              * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The resourceState. */ - public com.google.cloud.gkehub.v1.FeatureResourceState getResourceState() { - if (resourceStateBuilder_ == null) { - return resourceState_ == null - ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() - : resourceState_; + public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } } else { - return resourceStateBuilder_.getMessage(); + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000020; + onChanged(); } + return this; } /** * * *
              -     * Output only. State of the Feature resource itself.
              +     * Output only. The Fleet-wide Feature state.
                    * 
              * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { - if (resourceStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceState_ = value; - } else { - resourceStateBuilder_.setMessage(value); + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; } - bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1974,216 +3433,264 @@ public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState * * *
              -     * Output only. State of the Feature resource itself.
              +     * Output only. The Fleet-wide Feature state.
                    * 
              * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setResourceState( - com.google.cloud.gkehub.v1.FeatureResourceState.Builder builderForValue) { - if (resourceStateBuilder_ == null) { - resourceState_ = builderForValue.build(); - } else { - resourceStateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; + public com.google.cloud.gkehub.v1.CommonFeatureState.Builder getStateBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return this; + return internalGetStateFieldBuilder().getBuilder(); } /** * * *
              -     * Output only. State of the Feature resource itself.
              +     * Output only. The Fleet-wide Feature state.
                    * 
              * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { - if (resourceStateBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && resourceState_ != null - && resourceState_ - != com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance()) { - getResourceStateBuilder().mergeFrom(value); - } else { - resourceState_ = value; - } + public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); } else { - resourceStateBuilder_.mergeFrom(value); - } - if (resourceState_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + return state_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() + : state_; } - return this; } /** * * *
              -     * Output only. State of the Feature resource itself.
              +     * Output only. The Fleet-wide Feature state.
                    * 
              * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearResourceState() { - bitField0_ = (bitField0_ & ~0x00000004); - resourceState_ = null; - if (resourceStateBuilder_ != null) { - resourceStateBuilder_.dispose(); - resourceStateBuilder_ = null; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureState, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureState, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private static final class MembershipStatesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureState> { + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureState build( + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder val) { + if (val instanceof com.google.cloud.gkehub.v1.MembershipFeatureState) { + return (com.google.cloud.gkehub.v1.MembershipFeatureState) val; + } + return ((com.google.cloud.gkehub.v1.MembershipFeatureState.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + defaultEntry() { + return MembershipStatesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final MembershipStatesConverter membershipStatesConverter = + new MembershipStatesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureState, + com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> + membershipStates_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureState, + com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> + internalGetMembershipStates() { + if (membershipStates_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(membershipStatesConverter); + } + return membershipStates_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureState, + com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> + internalGetMutableMembershipStates() { + if (membershipStates_ == null) { + membershipStates_ = new com.google.protobuf.MapFieldBuilder<>(membershipStatesConverter); } + bitField0_ |= 0x00000040; onChanged(); - return this; + return membershipStates_; } - /** - * - * - *
              -     * Output only. State of the Feature resource itself.
              -     * 
              - * - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gkehub.v1.FeatureResourceState.Builder getResourceStateBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetResourceStateFieldBuilder().getBuilder(); + public int getMembershipStatesCount() { + return internalGetMembershipStates().ensureBuilderMap().size(); } /** * * *
              -     * Output only. State of the Feature resource itself.
              -     * 
              + * Output only. Membership-specific Feature status. If this Feature does + * report any per-Membership status, this field may be unused. * - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { - if (resourceStateBuilder_ != null) { - return resourceStateBuilder_.getMessageOrBuilder(); - } else { - return resourceState_ == null - ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() - : resourceState_; - } - } - - /** + * The keys indicate which Membership the state is for, in the form: * + * `projects/{p}/locations/{l}/memberships/{m}` * - *
              -     * Output only. State of the Feature resource itself.
              +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} MUST match the Feature's
              +     * project number.
                    * 
              * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.FeatureResourceState, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> - internalGetResourceStateFieldBuilder() { - if (resourceStateBuilder_ == null) { - resourceStateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.FeatureResourceState, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder>( - getResourceState(), getParentForChildren(), isClean()); - resourceState_ = null; + @java.lang.Override + public boolean containsMembershipStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - return resourceStateBuilder_; + return internalGetMembershipStates().ensureBuilderMap().containsKey(key); } - private com.google.cloud.gkehub.v1.CommonFeatureSpec spec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureSpec, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> - specBuilder_; + /** Use {@link #getMembershipStatesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getMembershipStates() { + return getMembershipStatesMap(); + } /** * * *
              -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -     * Hub-wide configuration, this field may be unused.
              +     * Output only. Membership-specific Feature status. If this Feature does
              +     * report any per-Membership status, this field may be unused.
              +     *
              +     * The keys indicate which Membership the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} MUST match the Feature's
              +     * project number.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the spec field is set. */ - public boolean hasSpec() { - return ((bitField0_ & 0x00000008) != 0); + @java.lang.Override + public java.util.Map + getMembershipStatesMap() { + return internalGetMembershipStates().getImmutableMap(); } /** * * *
              -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -     * Hub-wide configuration, this field may be unused.
              +     * Output only. Membership-specific Feature status. If this Feature does
              +     * report any per-Membership status, this field may be unused.
              +     *
              +     * The keys indicate which Membership the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} MUST match the Feature's
              +     * project number.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The spec. */ - public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() - : spec_; - } else { - return specBuilder_.getMessage(); + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.MembershipFeatureState + getMembershipStatesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map + map = internalGetMutableMembershipStates().ensureBuilderMap(); + return map.containsKey(key) ? membershipStatesConverter.build(map.get(key)) : defaultValue; } /** * * *
              -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -     * Hub-wide configuration, this field may be unused.
              +     * Output only. Membership-specific Feature status. If this Feature does
              +     * report any per-Membership status, this field may be unused.
              +     *
              +     * The keys indicate which Membership the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} MUST match the Feature's
              +     * project number.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - } else { - specBuilder_.setMessage(value); + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000008; - onChanged(); + java.util.Map + map = internalGetMutableMembershipStates().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return membershipStatesConverter.build(map.get(key)); + } + + public Builder clearMembershipStates() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableMembershipStates().clear(); return this; } @@ -2191,53 +3698,68 @@ public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { * * *
              -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -     * Hub-wide configuration, this field may be unused.
              +     * Output only. Membership-specific Feature status. If this Feature does
              +     * report any per-Membership status, this field may be unused.
              +     *
              +     * The keys indicate which Membership the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} MUST match the Feature's
              +     * project number.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - } else { - specBuilder_.setMessage(builderForValue.build()); + public Builder removeMembershipStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000008; - onChanged(); + internalGetMutableMembershipStates().ensureBuilderMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableMembershipStates() { + bitField0_ |= 0x00000040; + return internalGetMutableMembershipStates().ensureMessageMap(); + } + /** * * *
              -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -     * Hub-wide configuration, this field may be unused.
              +     * Output only. Membership-specific Feature status. If this Feature does
              +     * report any per-Membership status, this field may be unused.
              +     *
              +     * The keys indicate which Membership the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} MUST match the Feature's
              +     * project number.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { - if (specBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && spec_ != null - && spec_ != com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance()) { - getSpecBuilder().mergeFrom(value); - } else { - spec_ = value; - } - } else { - specBuilder_.mergeFrom(value); + public Builder putMembershipStates( + java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState value) { + if (key == null) { + throw new NullPointerException("map key"); } - if (spec_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + if (value == null) { + throw new NullPointerException("map value"); } + internalGetMutableMembershipStates().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000040; return this; } @@ -2245,22 +3767,32 @@ public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { * * *
              -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -     * Hub-wide configuration, this field may be unused.
              +     * Output only. Membership-specific Feature status. If this Feature does
              +     * report any per-Membership status, this field may be unused.
              +     *
              +     * The keys indicate which Membership the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/{l}/memberships/{m}`
              +     *
              +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} MUST match the Feature's
              +     * project number.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearSpec() { - bitField0_ = (bitField0_ & ~0x00000008); - spec_ = null; - if (specBuilder_ != null) { - specBuilder_.dispose(); - specBuilder_ = null; + public Builder putAllMembershipStates( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } - onChanged(); + internalGetMutableMembershipStates().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000040; return this; } @@ -2268,295 +3800,159 @@ public Builder clearSpec() { * * *
              -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -     * Hub-wide configuration, this field may be unused.
              -     * 
              + * Output only. Membership-specific Feature status. If this Feature does + * report any per-Membership status, this field may be unused. * - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder getSpecBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetSpecFieldBuilder().getBuilder(); - } - - /** + * The keys indicate which Membership the state is for, in the form: * + * `projects/{p}/locations/{l}/memberships/{m}` * - *
              -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -     * Hub-wide configuration, this field may be unused.
              +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              +     * Membership in this project at that location. {p} MUST match the Feature's
              +     * project number.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() - : spec_; + public com.google.cloud.gkehub.v1.MembershipFeatureState.Builder + putMembershipStatesBuilderIfAbsent(java.lang.String key) { + java.util.Map + builderMap = internalGetMutableMembershipStates().ensureBuilderMap(); + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.gkehub.v1.MembershipFeatureState.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.gkehub.v1.MembershipFeatureState) { + entry = ((com.google.cloud.gkehub.v1.MembershipFeatureState) entry).toBuilder(); + builderMap.put(key, entry); } + return (com.google.cloud.gkehub.v1.MembershipFeatureState.Builder) entry; } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** * * *
              -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -     * Hub-wide configuration, this field may be unused.
              +     * Output only. When the Feature resource was created.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the createTime field is set. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureSpec, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> - internalGetSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureSpec, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder>( - getSpec(), getParentForChildren(), isClean()); - spec_ = null; - } - return specBuilder_; - } - - private static final class MembershipSpecsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureSpec> { - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureSpec build( - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder val) { - if (val instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec) { - return (com.google.cloud.gkehub.v1.MembershipFeatureSpec) val; - } - return ((com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - defaultEntry() { - return MembershipSpecsDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final MembershipSpecsConverter membershipSpecsConverter = - new MembershipSpecsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureSpec, - com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> - membershipSpecs_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureSpec, - com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> - internalGetMembershipSpecs() { - if (membershipSpecs_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(membershipSpecsConverter); - } - return membershipSpecs_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureSpec, - com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> - internalGetMutableMembershipSpecs() { - if (membershipSpecs_ == null) { - membershipSpecs_ = new com.google.protobuf.MapFieldBuilder<>(membershipSpecsConverter); - } - bitField0_ |= 0x00000010; - onChanged(); - return membershipSpecs_; - } - - public int getMembershipSpecsCount() { - return internalGetMembershipSpecs().ensureBuilderMap().size(); + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
              -     * Optional. Membership-specific configuration for this Feature. If this Feature does
              -     * not support any per-Membership configuration, this field may be unused.
              -     *
              -     * The keys indicate which Membership the configuration is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} WILL match the Feature's
              -     * project.
              -     *
              -     * {p} will always be returned as the project number, but the project ID is
              -     * also accepted during input. If the same Membership is specified in the map
              -     * twice (using the project ID form, and the project number form), exactly
              -     * ONE of the entries will be saved, with no guarantees as to which. For this
              -     * reason, it is recommended the same format be used for all entries when
              -     * mutating a Feature.
              +     * Output only. When the Feature resource was created.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The createTime. */ - @java.lang.Override - public boolean containsMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); } - return internalGetMembershipSpecs().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getMembershipSpecsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getMembershipSpecs() { - return getMembershipSpecsMap(); } /** * * *
              -     * Optional. Membership-specific configuration for this Feature. If this Feature does
              -     * not support any per-Membership configuration, this field may be unused.
              -     *
              -     * The keys indicate which Membership the configuration is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} WILL match the Feature's
              -     * project.
              -     *
              -     * {p} will always be returned as the project number, but the project ID is
              -     * also accepted during input. If the same Membership is specified in the map
              -     * twice (using the project ID form, and the project number form), exactly
              -     * ONE of the entries will be saved, with no guarantees as to which. For this
              -     * reason, it is recommended the same format be used for all entries when
              -     * mutating a Feature.
              +     * Output only. When the Feature resource was created.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public java.util.Map - getMembershipSpecsMap() { - return internalGetMembershipSpecs().getImmutableMap(); + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
              -     * Optional. Membership-specific configuration for this Feature. If this Feature does
              -     * not support any per-Membership configuration, this field may be unused.
              -     *
              -     * The keys indicate which Membership the configuration is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} WILL match the Feature's
              -     * project.
              -     *
              -     * {p} will always be returned as the project number, but the project ID is
              -     * also accepted during input. If the same Membership is specified in the map
              -     * twice (using the project ID form, and the project number form), exactly
              -     * ONE of the entries will be saved, with no guarantees as to which. For this
              -     * reason, it is recommended the same format be used for all entries when
              -     * mutating a Feature.
              +     * Output only. When the Feature resource was created.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public /* nullable */ com.google.cloud.gkehub.v1.MembershipFeatureSpec - getMembershipSpecsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); } - java.util.Map - map = internalGetMutableMembershipSpecs().ensureBuilderMap(); - return map.containsKey(key) ? membershipSpecsConverter.build(map.get(key)) : defaultValue; + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
              -     * Optional. Membership-specific configuration for this Feature. If this Feature does
              -     * not support any per-Membership configuration, this field may be unused.
              -     *
              -     * The keys indicate which Membership the configuration is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} WILL match the Feature's
              -     * project.
              -     *
              -     * {p} will always be returned as the project number, but the project ID is
              -     * also accepted during input. If the same Membership is specified in the map
              -     * twice (using the project ID form, and the project number form), exactly
              -     * ONE of the entries will be saved, with no guarantees as to which. For this
              -     * reason, it is recommended the same format be used for all entries when
              -     * mutating a Feature.
              +     * Output only. When the Feature resource was created.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); } - java.util.Map - map = internalGetMutableMembershipSpecs().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (createTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); } - return membershipSpecsConverter.build(map.get(key)); - } - - public Builder clearMembershipSpecs() { - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableMembershipSpecs().clear(); return this; } @@ -2564,212 +3960,134 @@ public Builder clearMembershipSpecs() { * * *
              -     * Optional. Membership-specific configuration for this Feature. If this Feature does
              -     * not support any per-Membership configuration, this field may be unused.
              -     *
              -     * The keys indicate which Membership the configuration is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} WILL match the Feature's
              -     * project.
              -     *
              -     * {p} will always be returned as the project number, but the project ID is
              -     * also accepted during input. If the same Membership is specified in the map
              -     * twice (using the project ID form, and the project number form), exactly
              -     * ONE of the entries will be saved, with no guarantees as to which. For this
              -     * reason, it is recommended the same format be used for all entries when
              -     * mutating a Feature.
              +     * Output only. When the Feature resource was created.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; } - internalGetMutableMembershipSpecs().ensureBuilderMap().remove(key); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableMembershipSpecs() { - bitField0_ |= 0x00000010; - return internalGetMutableMembershipSpecs().ensureMessageMap(); - } - /** * * *
              -     * Optional. Membership-specific configuration for this Feature. If this Feature does
              -     * not support any per-Membership configuration, this field may be unused.
              -     *
              -     * The keys indicate which Membership the configuration is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} WILL match the Feature's
              -     * project.
              -     *
              -     * {p} will always be returned as the project number, but the project ID is
              -     * also accepted during input. If the same Membership is specified in the map
              -     * twice (using the project ID form, and the project number form), exactly
              -     * ONE of the entries will be saved, with no guarantees as to which. For this
              -     * reason, it is recommended the same format be used for all entries when
              -     * mutating a Feature.
              +     * Output only. When the Feature resource was created.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putMembershipSpecs( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMembershipSpecs().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000010; - return this; + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); } /** * * *
              -     * Optional. Membership-specific configuration for this Feature. If this Feature does
              -     * not support any per-Membership configuration, this field may be unused.
              -     *
              -     * The keys indicate which Membership the configuration is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} WILL match the Feature's
              -     * project.
              -     *
              -     * {p} will always be returned as the project number, but the project ID is
              -     * also accepted during input. If the same Membership is specified in the map
              -     * twice (using the project ID form, and the project number form), exactly
              -     * ONE of the entries will be saved, with no guarantees as to which. For this
              -     * reason, it is recommended the same format be used for all entries when
              -     * mutating a Feature.
              +     * Output only. When the Feature resource was created.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putAllMembershipSpecs( - java.util.Map values) { - for (java.util.Map.Entry - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } - internalGetMutableMembershipSpecs().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000010; - return this; } /** * * *
              -     * Optional. Membership-specific configuration for this Feature. If this Feature does
              -     * not support any per-Membership configuration, this field may be unused.
              -     *
              -     * The keys indicate which Membership the configuration is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} WILL match the Feature's
              -     * project.
              -     *
              -     * {p} will always be returned as the project number, but the project ID is
              -     * also accepted during input. If the same Membership is specified in the map
              -     * twice (using the project ID form, and the project number form), exactly
              -     * ONE of the entries will be saved, with no guarantees as to which. For this
              -     * reason, it is recommended the same format be used for all entries when
              -     * mutating a Feature.
              +     * Output only. When the Feature resource was created.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder - putMembershipSpecsBuilderIfAbsent(java.lang.String key) { - java.util.Map - builderMap = internalGetMutableMembershipSpecs().ensureBuilderMap(); - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.gkehub.v1.MembershipFeatureSpec.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec) { - entry = ((com.google.cloud.gkehub.v1.MembershipFeatureSpec) entry).toBuilder(); - builderMap.put(key, entry); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; } - return (com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder) entry; + return createTimeBuilder_; } - private com.google.cloud.gkehub.v1.CommonFeatureState state_; + private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureState, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> - stateBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** * * *
              -     * Output only. The Hub-wide Feature state.
              +     * Output only. When the Feature resource was last updated.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the state field is set. + * @return Whether the updateTime field is set. */ - public boolean hasState() { - return ((bitField0_ & 0x00000020) != 0); + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
              -     * Output only. The Hub-wide Feature state.
              +     * Output only. When the Feature resource was last updated.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The state. + * @return The updateTime. */ - public com.google.cloud.gkehub.v1.CommonFeatureState getState() { - if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() - : state_; + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { - return stateBuilder_.getMessage(); + return updateTimeBuilder_.getMessage(); } } @@ -2777,23 +4095,23 @@ public com.google.cloud.gkehub.v1.CommonFeatureState getState() { * * *
              -     * Output only. The Hub-wide Feature state.
              +     * Output only. When the Feature resource was last updated.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { - if (stateBuilder_ == null) { + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - state_ = value; + updateTime_ = value; } else { - stateBuilder_.setMessage(value); + updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2802,20 +4120,20 @@ public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { * * *
              -     * Output only. The Hub-wide Feature state.
              +     * Output only. When the Feature resource was last updated.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState.Builder builderForValue) { - if (stateBuilder_ == null) { - state_ = builderForValue.build(); + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); } else { - stateBuilder_.setMessage(builderForValue.build()); + updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2824,27 +4142,27 @@ public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState.Builder bu * * *
              -     * Output only. The Hub-wide Feature state.
              +     * Output only. When the Feature resource was last updated.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { - if (stateBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && state_ != null - && state_ != com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance()) { - getStateBuilder().mergeFrom(value); + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { - state_ = value; + updateTime_ = value; } } else { - stateBuilder_.mergeFrom(value); + updateTimeBuilder_.mergeFrom(value); } - if (state_ != null) { - bitField0_ |= 0x00000020; + if (updateTime_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2854,19 +4172,19 @@ public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { * * *
              -     * Output only. The Hub-wide Feature state.
              +     * Output only. When the Feature resource was last updated.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000020); - state_ = null; - if (stateBuilder_ != null) { - stateBuilder_.dispose(); - stateBuilder_ = null; + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; } onChanged(); return this; @@ -2876,37 +4194,37 @@ public Builder clearState() { * * *
              -     * Output only. The Hub-wide Feature state.
              +     * Output only. When the Feature resource was last updated.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.CommonFeatureState.Builder getStateBuilder() { - bitField0_ |= 0x00000020; + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return internalGetStateFieldBuilder().getBuilder(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); } /** * * *
              -     * Output only. The Hub-wide Feature state.
              +     * Output only. When the Feature resource was last updated.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder() { - if (stateBuilder_ != null) { - return stateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() - : state_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } @@ -2914,226 +4232,99 @@ public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder( * * *
              -     * Output only. The Hub-wide Feature state.
              +     * Output only. When the Feature resource was last updated.
                    * 
              * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureState, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> - internalGetStateFieldBuilder() { - if (stateBuilder_ == null) { - stateBuilder_ = + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureState, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); - state_ = null; - } - return stateBuilder_; - } - - private static final class MembershipStatesConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureState> { - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureState build( - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder val) { - if (val instanceof com.google.cloud.gkehub.v1.MembershipFeatureState) { - return (com.google.cloud.gkehub.v1.MembershipFeatureState) val; - } - return ((com.google.cloud.gkehub.v1.MembershipFeatureState.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - defaultEntry() { - return MembershipStatesDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final MembershipStatesConverter membershipStatesConverter = - new MembershipStatesConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureState, - com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> - membershipStates_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureState, - com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> - internalGetMembershipStates() { - if (membershipStates_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(membershipStatesConverter); - } - return membershipStates_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureState, - com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> - internalGetMutableMembershipStates() { - if (membershipStates_ == null) { - membershipStates_ = new com.google.protobuf.MapFieldBuilder<>(membershipStatesConverter); + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; } - bitField0_ |= 0x00000040; - onChanged(); - return membershipStates_; + return updateTimeBuilder_; } - public int getMembershipStatesCount() { - return internalGetMembershipStates().ensureBuilderMap().size(); - } + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** * * *
              -     * Output only. Membership-specific Feature status. If this Feature does
              -     * report any per-Membership status, this field may be unused.
              -     *
              -     * The keys indicate which Membership the state is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} MUST match the Feature's
              -     * project number.
              +     * Output only. When the Feature resource was deleted.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - */ - @java.lang.Override - public boolean containsMembershipStates(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetMembershipStates().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getMembershipStatesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getMembershipStates() { - return getMembershipStatesMap(); - } - - /** - * - * - *
              -     * Output only. Membership-specific Feature status. If this Feature does
              -     * report any per-Membership status, this field may be unused.
                    *
              -     * The keys indicate which Membership the state is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} MUST match the Feature's
              -     * project number.
              -     * 
              - * - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * @return Whether the deleteTime field is set. */ - @java.lang.Override - public java.util.Map - getMembershipStatesMap() { - return internalGetMembershipStates().getImmutableMap(); + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
              -     * Output only. Membership-specific Feature status. If this Feature does
              -     * report any per-Membership status, this field may be unused.
              -     *
              -     * The keys indicate which Membership the state is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} MUST match the Feature's
              -     * project number.
              +     * Output only. When the Feature resource was deleted.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The deleteTime. */ - @java.lang.Override - public /* nullable */ com.google.cloud.gkehub.v1.MembershipFeatureState - getMembershipStatesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); } - java.util.Map - map = internalGetMutableMembershipStates().ensureBuilderMap(); - return map.containsKey(key) ? membershipStatesConverter.build(map.get(key)) : defaultValue; } /** * * *
              -     * Output only. Membership-specific Feature status. If this Feature does
              -     * report any per-Membership status, this field may be unused.
              -     *
              -     * The keys indicate which Membership the state is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} MUST match the Feature's
              -     * project number.
              +     * Output only. When the Feature resource was deleted.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableMembershipStates().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); } - return membershipStatesConverter.build(map.get(key)); - } - - public Builder clearMembershipStates() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableMembershipStates().clear(); + bitField0_ |= 0x00000200; + onChanged(); return this; } @@ -3141,68 +4332,51 @@ public Builder clearMembershipStates() { * * *
              -     * Output only. Membership-specific Feature status. If this Feature does
              -     * report any per-Membership status, this field may be unused.
              -     *
              -     * The keys indicate which Membership the state is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} MUST match the Feature's
              -     * project number.
              +     * Output only. When the Feature resource was deleted.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeMembershipStates(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); } - internalGetMutableMembershipStates().ensureBuilderMap().remove(key); + bitField0_ |= 0x00000200; + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableMembershipStates() { - bitField0_ |= 0x00000040; - return internalGetMutableMembershipStates().ensureMessageMap(); - } - /** * * *
              -     * Output only. Membership-specific Feature status. If this Feature does
              -     * report any per-Membership status, this field may be unused.
              -     *
              -     * The keys indicate which Membership the state is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} MUST match the Feature's
              -     * project number.
              +     * Output only. When the Feature resource was deleted.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putMembershipStates( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState value) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); } - if (value == null) { - throw new NullPointerException("map value"); + if (deleteTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); } - internalGetMutableMembershipStates().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000040; return this; } @@ -3210,32 +4384,21 @@ public Builder putMembershipStates( * * *
              -     * Output only. Membership-specific Feature status. If this Feature does
              -     * report any per-Membership status, this field may be unused.
              -     *
              -     * The keys indicate which Membership the state is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} MUST match the Feature's
              -     * project number.
              +     * Output only. When the Feature resource was deleted.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putAllMembershipStates( - java.util.Map values) { - for (java.util.Map.Entry - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000200); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; } - internalGetMutableMembershipStates().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000040; + onChanged(); return this; } @@ -3243,159 +4406,285 @@ public Builder putAllMembershipStates( * * *
              -     * Output only. Membership-specific Feature status. If this Feature does
              -     * report any per-Membership status, this field may be unused.
              -     *
              -     * The keys indicate which Membership the state is for, in the form:
              -     *
              -     * projects/{p}/locations/{l}/memberships/{m}
              -     *
              -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
              -     * Membership in this project at that location. {p} MUST match the Feature's
              -     * project number.
              +     * Output only. When the Feature resource was deleted.
                    * 
              * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.MembershipFeatureState.Builder - putMembershipStatesBuilderIfAbsent(java.lang.String key) { - java.util.Map - builderMap = internalGetMutableMembershipStates().ensureBuilderMap(); - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.gkehub.v1.MembershipFeatureState.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.gkehub.v1.MembershipFeatureState) { - entry = ((com.google.cloud.gkehub.v1.MembershipFeatureState) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.gkehub.v1.MembershipFeatureState.Builder) entry; + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** * * *
              -     * Output only. When the Feature resource was created.
              +     * Output only. When the Feature resource was deleted.
                    * 
              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000080) != 0); + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } } /** * * *
              -     * Output only. When the Feature resource was created.
              +     * Output only. When the Feature resource was deleted.
                    * 
              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.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(); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private static final class ScopeSpecsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureSpec> { + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec build( + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder val) { + if (val instanceof com.google.cloud.gkehub.v1.ScopeFeatureSpec) { + return (com.google.cloud.gkehub.v1.ScopeFeatureSpec) val; + } + return ((com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + defaultEntry() { + return ScopeSpecsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ScopeSpecsConverter scopeSpecsConverter = new ScopeSpecsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureSpec, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder> + scopeSpecs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureSpec, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder> + internalGetScopeSpecs() { + if (scopeSpecs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(scopeSpecsConverter); + } + return scopeSpecs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureSpec, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder> + internalGetMutableScopeSpecs() { + if (scopeSpecs_ == null) { + scopeSpecs_ = new com.google.protobuf.MapFieldBuilder<>(scopeSpecsConverter); } + bitField0_ |= 0x00000400; + onChanged(); + return scopeSpecs_; + } + + public int getScopeSpecsCount() { + return internalGetScopeSpecs().ensureBuilderMap().size(); } /** * * *
              -     * Output only. When the Feature resource was created.
              +     * Optional. Scope-specific configuration for this Feature. If this Feature
              +     * does not support any per-Scope configuration, this field may be unused.
              +     *
              +     * The keys indicate which Scope the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Scope is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); + @java.lang.Override + public boolean containsScopeSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000080; - onChanged(); - return this; + return internalGetScopeSpecs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getScopeSpecsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getScopeSpecs() { + return getScopeSpecsMap(); + } + + /** + * + * + *
              +     * Optional. Scope-specific configuration for this Feature. If this Feature
              +     * does not support any per-Scope configuration, this field may be unused.
              +     *
              +     * The keys indicate which Scope the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Scope is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
              +     * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getScopeSpecsMap() { + return internalGetScopeSpecs().getImmutableMap(); } /** * * *
              -     * Output only. When the Feature resource was created.
              +     * Optional. Scope-specific configuration for this Feature. If this Feature
              +     * does not support any per-Scope configuration, this field may be unused.
              +     *
              +     * The keys indicate which Scope the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Scope is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000080; - onChanged(); - return this; + java.util.Map map = + internalGetMutableScopeSpecs().ensureBuilderMap(); + return map.containsKey(key) ? scopeSpecsConverter.build(map.get(key)) : defaultValue; } /** * * *
              -     * Output only. When the Feature resource was created.
              +     * Optional. Scope-specific configuration for this Feature. If this Feature
              +     * does not support any per-Scope configuration, this field may be unused.
              +     *
              +     * The keys indicate which Scope the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Scope is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (createTime_ != null) { - bitField0_ |= 0x00000080; - onChanged(); + java.util.Map map = + internalGetMutableScopeSpecs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return scopeSpecsConverter.build(map.get(key)); + } + + public Builder clearScopeSpecs() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableScopeSpecs().clear(); return this; } @@ -3403,211 +4692,354 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
              -     * Output only. When the Feature resource was created.
              +     * Optional. Scope-specific configuration for this Feature. If this Feature
              +     * does not support any per-Scope configuration, this field may be unused.
              +     *
              +     * The keys indicate which Scope the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Scope is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000080); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder removeScopeSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + internalGetMutableScopeSpecs().ensureBuilderMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableScopeSpecs() { + bitField0_ |= 0x00000400; + return internalGetMutableScopeSpecs().ensureMessageMap(); + } + /** * * *
              -     * Output only. When the Feature resource was created.
              +     * Optional. Scope-specific configuration for this Feature. If this Feature
              +     * does not support any per-Scope configuration, this field may be unused.
              +     *
              +     * The keys indicate which Scope the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Scope is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); + public Builder putScopeSpecs( + java.lang.String key, com.google.cloud.gkehub.v1.ScopeFeatureSpec value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableScopeSpecs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000400; + return this; } /** * * *
              -     * Output only. When the Feature resource was created.
              +     * Optional. Scope-specific configuration for this Feature. If this Feature
              +     * does not support any per-Scope configuration, this field may be unused.
              +     *
              +     * The keys indicate which Scope the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Scope is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public Builder putAllScopeSpecs( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } + internalGetMutableScopeSpecs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000400; + return this; } /** * * *
              -     * Output only. When the Feature resource was created.
              +     * Optional. Scope-specific configuration for this Feature. If this Feature
              +     * does not support any per-Scope configuration, this field may be unused.
              +     *
              +     * The keys indicate which Scope the configuration is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
              +     *
              +     * {p} will always be returned as the project number, but the project ID is
              +     * also accepted during input. If the same Scope is specified in the map
              +     * twice (using the project ID form, and the project number form), exactly
              +     * ONE of the entries will be saved, with no guarantees as to which. For this
              +     * reason, it is recommended the same format be used for all entries when
              +     * mutating a Feature.
                    * 
              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + public com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder putScopeSpecsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableScopeSpecs().ensureBuilderMap(); + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.gkehub.v1.ScopeFeatureSpec.newBuilder(); + builderMap.put(key, entry); } - return createTimeBuilder_; + if (entry instanceof com.google.cloud.gkehub.v1.ScopeFeatureSpec) { + entry = ((com.google.cloud.gkehub.v1.ScopeFeatureSpec) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder) entry; } - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + private static final class ScopeStatesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureState> { + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState build( + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder val) { + if (val instanceof com.google.cloud.gkehub.v1.ScopeFeatureState) { + return (com.google.cloud.gkehub.v1.ScopeFeatureState) val; + } + return ((com.google.cloud.gkehub.v1.ScopeFeatureState.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + defaultEntry() { + return ScopeStatesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ScopeStatesConverter scopeStatesConverter = new ScopeStatesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureState, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder> + scopeStates_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureState, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder> + internalGetScopeStates() { + if (scopeStates_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(scopeStatesConverter); + } + return scopeStates_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureState, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder> + internalGetMutableScopeStates() { + if (scopeStates_ == null) { + scopeStates_ = new com.google.protobuf.MapFieldBuilder<>(scopeStatesConverter); + } + bitField0_ |= 0x00000800; + onChanged(); + return scopeStates_; + } + + public int getScopeStatesCount() { + return internalGetScopeStates().ensureBuilderMap().size(); + } /** * * *
              -     * Output only. When the Feature resource was last updated.
              -     * 
              - * - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * Output only. Scope-specific Feature status. If this Feature does + * report any per-Scope status, this field may be unused. * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000100) != 0); - } - - /** + * The keys indicate which Scope the state is for, in the form: * + * `projects/{p}/locations/global/scopes/{s}` * - *
              -     * Output only. When the Feature resource was last updated.
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
                    * 
              * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.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(); + @java.lang.Override + public boolean containsScopeStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetScopeStates().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getScopeStatesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getScopeStates() { + return getScopeStatesMap(); } /** * * *
              -     * Output only. When the Feature resource was last updated.
              +     * Output only. Scope-specific Feature status. If this Feature does
              +     * report any per-Scope status, this field may be unused.
              +     *
              +     * The keys indicate which Scope the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
                    * 
              * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.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_ |= 0x00000100; - onChanged(); - return this; + @java.lang.Override + public java.util.Map + getScopeStatesMap() { + return internalGetScopeStates().getImmutableMap(); } /** * * *
              -     * Output only. When the Feature resource was last updated.
              +     * Output only. Scope-specific Feature status. If this Feature does
              +     * report any per-Scope status, this field may be unused.
              +     *
              +     * The keys indicate which Scope the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
                    * 
              * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.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()); + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000100; - onChanged(); - return this; + java.util.Map map = + internalGetMutableScopeStates().ensureBuilderMap(); + return map.containsKey(key) ? scopeStatesConverter.build(map.get(key)) : defaultValue; } /** * * *
              -     * Output only. When the Feature resource was last updated.
              +     * Output only. Scope-specific Feature status. If this Feature does
              +     * report any per-Scope status, this field may be unused.
              +     *
              +     * The keys indicate which Scope the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
                    * 
              * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (updateTime_ != null) { - bitField0_ |= 0x00000100; - onChanged(); + java.util.Map map = + internalGetMutableScopeStates().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return scopeStatesConverter.build(map.get(key)); + } + + public Builder clearScopeStates() { + bitField0_ = (bitField0_ & ~0x00000800); + internalGetMutableScopeStates().clear(); return this; } @@ -3615,211 +5047,235 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
              -     * Output only. When the Feature resource was last updated.
              +     * Output only. Scope-specific Feature status. If this Feature does
              +     * report any per-Scope status, this field may be unused.
              +     *
              +     * The keys indicate which Scope the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
                    * 
              * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000100); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public Builder removeScopeStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + internalGetMutableScopeStates().ensureBuilderMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableScopeStates() { + bitField0_ |= 0x00000800; + return internalGetMutableScopeStates().ensureMessageMap(); + } + /** * * *
              -     * Output only. When the Feature resource was last updated.
              +     * Output only. Scope-specific Feature status. If this Feature does
              +     * report any per-Scope status, this field may be unused.
              +     *
              +     * The keys indicate which Scope the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
                    * 
              * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); + public Builder putScopeStates( + java.lang.String key, com.google.cloud.gkehub.v1.ScopeFeatureState value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableScopeStates().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000800; + return this; } /** * * *
              -     * Output only. When the Feature resource was last updated.
              +     * Output only. Scope-specific Feature status. If this Feature does
              +     * report any per-Scope status, this field may be unused.
              +     *
              +     * The keys indicate which Scope the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
                    * 
              * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.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_; + public Builder putAllScopeStates( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } + internalGetMutableScopeStates().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000800; + return this; } /** * * *
              -     * Output only. When the Feature resource was last updated.
              +     * Output only. Scope-specific Feature status. If this Feature does
              +     * report any per-Scope status, this field may be unused.
              +     *
              +     * The keys indicate which Scope the state is for, in the form:
              +     *
              +     * `projects/{p}/locations/global/scopes/{s}`
              +     *
              +     * Where {p} is the project, {s} is a valid Scope in this project.
              +     * {p} WILL match the Feature's project.
                    * 
              * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; + public com.google.cloud.gkehub.v1.ScopeFeatureState.Builder putScopeStatesBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableScopeStates().ensureBuilderMap(); + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.gkehub.v1.ScopeFeatureState.newBuilder(); + builderMap.put(key, entry); } - return updateTimeBuilder_; + if (entry instanceof com.google.cloud.gkehub.v1.ScopeFeatureState) { + entry = ((com.google.cloud.gkehub.v1.ScopeFeatureState) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.gkehub.v1.ScopeFeatureState.Builder) entry; } - private com.google.protobuf.Timestamp deleteTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + 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_ |= 0x00001000; + } /** * * *
              -     * Output only. When the Feature resource was deleted.
              +     * Output only. List of locations that could not be reached while fetching
              +     * this feature.
                    * 
              * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the deleteTime field is set. + * @return A list containing the unreachable. */ - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000200) != 0); + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; } /** * * *
              -     * Output only. When the Feature resource was deleted.
              +     * Output only. List of locations that could not be reached while fetching
              +     * this feature.
                    * 
              * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The deleteTime. + * @return The count of unreachable. */ - public com.google.protobuf.Timestamp getDeleteTime() { - if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } else { - return deleteTimeBuilder_.getMessage(); - } + public int getUnreachableCount() { + return unreachable_.size(); } /** * * *
              -     * Output only. When the Feature resource was deleted.
              +     * Output only. List of locations that could not be reached while fetching
              +     * this feature.
                    * 
              * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. */ - public Builder setDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteTime_ = value; - } else { - deleteTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); } /** * * *
              -     * Output only. When the Feature resource was deleted.
              +     * Output only. List of locations that could not be reached while fetching
              +     * this feature.
                    * 
              * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (deleteTimeBuilder_ == null) { - deleteTime_ = builderForValue.build(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); } /** * * *
              -     * Output only. When the Feature resource was deleted.
              +     * Output only. List of locations that could not be reached while fetching
              +     * this feature.
                    * 
              * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. */ - public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeleteTimeBuilder().mergeFrom(value); - } else { - deleteTime_ = value; - } - } else { - deleteTimeBuilder_.mergeFrom(value); - } - if (deleteTime_ != null) { - bitField0_ |= 0x00000200; - onChanged(); + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00001000; + onChanged(); return this; } @@ -3827,20 +5283,22 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { * * *
              -     * Output only. When the Feature resource was deleted.
              +     * Output only. List of locations that could not be reached while fetching
              +     * this feature.
                    * 
              * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The unreachable to add. + * @return This builder for chaining. */ - public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000200); - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3849,66 +5307,66 @@ public Builder clearDeleteTime() { * * *
              -     * Output only. When the Feature resource was deleted.
              +     * Output only. List of locations that could not be reached while fetching
              +     * this feature.
                    * 
              * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The unreachable to add. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000200; + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00001000; onChanged(); - return internalGetDeleteTimeFieldBuilder().getBuilder(); + return this; } /** * * *
              -     * Output only. When the Feature resource was deleted.
              +     * Output only. List of locations that could not be reached while fetching
              +     * this feature.
                    * 
              * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - if (deleteTimeBuilder_ != null) { - return deleteTimeBuilder_.getMessageOrBuilder(); - } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + ; + onChanged(); + return this; } /** * * *
              -     * Output only. When the Feature resource was deleted.
              +     * Output only. List of locations that could not be reached while fetching
              +     * this feature.
                    * 
              * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetDeleteTimeFieldBuilder() { - if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); - deleteTime_ = null; + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return deleteTimeBuilder_; + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; } // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Feature) diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java index bea565676b91..46cc8172ffb2 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java @@ -58,7 +58,7 @@ public interface FeatureOrBuilder * * *
              -   * GCP labels for this Feature.
              +   * Labels for this Feature.
                  * 
              * * map<string, string> labels = 2; @@ -69,7 +69,7 @@ public interface FeatureOrBuilder * * *
              -   * GCP labels for this Feature.
              +   * Labels for this Feature.
                  * 
              * * map<string, string> labels = 2; @@ -84,7 +84,7 @@ public interface FeatureOrBuilder * * *
              -   * GCP labels for this Feature.
              +   * Labels for this Feature.
                  * 
              * * map<string, string> labels = 2; @@ -95,7 +95,7 @@ public interface FeatureOrBuilder * * *
              -   * GCP labels for this Feature.
              +   * Labels for this Feature.
                  * 
              * * map<string, string> labels = 2; @@ -110,7 +110,7 @@ java.lang.String getLabelsOrDefault( * * *
              -   * GCP labels for this Feature.
              +   * Labels for this Feature.
                  * 
              * * map<string, string> labels = 2; @@ -164,8 +164,8 @@ java.lang.String getLabelsOrDefault( * * *
              -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -   * Hub-wide configuration, this field may be unused.
              +   * Optional. Fleet-wide Feature configuration. If this Feature does not
              +   * support any Fleet-wide configuration, this field may be unused.
                  * 
              * * @@ -180,8 +180,8 @@ java.lang.String getLabelsOrDefault( * * *
              -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -   * Hub-wide configuration, this field may be unused.
              +   * Optional. Fleet-wide Feature configuration. If this Feature does not
              +   * support any Fleet-wide configuration, this field may be unused.
                  * 
              * * @@ -196,8 +196,8 @@ java.lang.String getLabelsOrDefault( * * *
              -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
              -   * Hub-wide configuration, this field may be unused.
              +   * Optional. Fleet-wide Feature configuration. If this Feature does not
              +   * support any Fleet-wide configuration, this field may be unused.
                  * 
              * * @@ -210,12 +210,13 @@ java.lang.String getLabelsOrDefault( * * *
              -   * Optional. Membership-specific configuration for this Feature. If this Feature does
              -   * not support any per-Membership configuration, this field may be unused.
              +   * Optional. Membership-specific configuration for this Feature. If this
              +   * Feature does not support any per-Membership configuration, this field may
              +   * be unused.
                  *
                  * The keys indicate which Membership the configuration is for, in the form:
                  *
              -   * projects/{p}/locations/{l}/memberships/{m}
              +   * `projects/{p}/locations/{l}/memberships/{m}`
                  *
                  * Where {p} is the project, {l} is a valid location and {m} is a valid
                  * Membership in this project at that location. {p} WILL match the Feature's
              @@ -239,12 +240,13 @@ java.lang.String getLabelsOrDefault(
                  *
                  *
                  * 
              -   * Optional. Membership-specific configuration for this Feature. If this Feature does
              -   * not support any per-Membership configuration, this field may be unused.
              +   * Optional. Membership-specific configuration for this Feature. If this
              +   * Feature does not support any per-Membership configuration, this field may
              +   * be unused.
                  *
                  * The keys indicate which Membership the configuration is for, in the form:
                  *
              -   * projects/{p}/locations/{l}/memberships/{m}
              +   * `projects/{p}/locations/{l}/memberships/{m}`
                  *
                  * Where {p} is the project, {l} is a valid location and {m} is a valid
                  * Membership in this project at that location. {p} WILL match the Feature's
              @@ -273,12 +275,13 @@ java.lang.String getLabelsOrDefault(
                  *
                  *
                  * 
              -   * Optional. Membership-specific configuration for this Feature. If this Feature does
              -   * not support any per-Membership configuration, this field may be unused.
              +   * Optional. Membership-specific configuration for this Feature. If this
              +   * Feature does not support any per-Membership configuration, this field may
              +   * be unused.
                  *
                  * The keys indicate which Membership the configuration is for, in the form:
                  *
              -   * projects/{p}/locations/{l}/memberships/{m}
              +   * `projects/{p}/locations/{l}/memberships/{m}`
                  *
                  * Where {p} is the project, {l} is a valid location and {m} is a valid
                  * Membership in this project at that location. {p} WILL match the Feature's
              @@ -303,12 +306,13 @@ java.lang.String getLabelsOrDefault(
                  *
                  *
                  * 
              -   * Optional. Membership-specific configuration for this Feature. If this Feature does
              -   * not support any per-Membership configuration, this field may be unused.
              +   * Optional. Membership-specific configuration for this Feature. If this
              +   * Feature does not support any per-Membership configuration, this field may
              +   * be unused.
                  *
                  * The keys indicate which Membership the configuration is for, in the form:
                  *
              -   * projects/{p}/locations/{l}/memberships/{m}
              +   * `projects/{p}/locations/{l}/memberships/{m}`
                  *
                  * Where {p} is the project, {l} is a valid location and {m} is a valid
                  * Membership in this project at that location. {p} WILL match the Feature's
              @@ -336,12 +340,13 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
                  *
                  *
                  * 
              -   * Optional. Membership-specific configuration for this Feature. If this Feature does
              -   * not support any per-Membership configuration, this field may be unused.
              +   * Optional. Membership-specific configuration for this Feature. If this
              +   * Feature does not support any per-Membership configuration, this field may
              +   * be unused.
                  *
                  * The keys indicate which Membership the configuration is for, in the form:
                  *
              -   * projects/{p}/locations/{l}/memberships/{m}
              +   * `projects/{p}/locations/{l}/memberships/{m}`
                  *
                  * Where {p} is the project, {l} is a valid location and {m} is a valid
                  * Membership in this project at that location. {p} WILL match the Feature's
              @@ -365,7 +370,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
                  *
                  *
                  * 
              -   * Output only. The Hub-wide Feature state.
              +   * Output only. The Fleet-wide Feature state.
                  * 
              * * @@ -380,7 +385,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * *
              -   * Output only. The Hub-wide Feature state.
              +   * Output only. The Fleet-wide Feature state.
                  * 
              * * @@ -395,7 +400,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * *
              -   * Output only. The Hub-wide Feature state.
              +   * Output only. The Fleet-wide Feature state.
                  * 
              * * @@ -413,7 +418,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -435,7 +440,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -462,7 +467,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -485,7 +490,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -511,7 +516,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -644,4 +649,323 @@ com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
              +   * Optional. Scope-specific configuration for this Feature. If this Feature
              +   * does not support any per-Scope configuration, this field may be unused.
              +   *
              +   * The keys indicate which Scope the configuration is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   *
              +   * {p} will always be returned as the project number, but the project ID is
              +   * also accepted during input. If the same Scope is specified in the map
              +   * twice (using the project ID form, and the project number form), exactly
              +   * ONE of the entries will be saved, with no guarantees as to which. For this
              +   * reason, it is recommended the same format be used for all entries when
              +   * mutating a Feature.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getScopeSpecsCount(); + + /** + * + * + *
              +   * Optional. Scope-specific configuration for this Feature. If this Feature
              +   * does not support any per-Scope configuration, this field may be unused.
              +   *
              +   * The keys indicate which Scope the configuration is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   *
              +   * {p} will always be returned as the project number, but the project ID is
              +   * also accepted during input. If the same Scope is specified in the map
              +   * twice (using the project ID form, and the project number form), exactly
              +   * ONE of the entries will be saved, with no guarantees as to which. For this
              +   * reason, it is recommended the same format be used for all entries when
              +   * mutating a Feature.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsScopeSpecs(java.lang.String key); + + /** Use {@link #getScopeSpecsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getScopeSpecs(); + + /** + * + * + *
              +   * Optional. Scope-specific configuration for this Feature. If this Feature
              +   * does not support any per-Scope configuration, this field may be unused.
              +   *
              +   * The keys indicate which Scope the configuration is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   *
              +   * {p} will always be returned as the project number, but the project ID is
              +   * also accepted during input. If the same Scope is specified in the map
              +   * twice (using the project ID form, and the project number form), exactly
              +   * ONE of the entries will be saved, with no guarantees as to which. For this
              +   * reason, it is recommended the same format be used for all entries when
              +   * mutating a Feature.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getScopeSpecsMap(); + + /** + * + * + *
              +   * Optional. Scope-specific configuration for this Feature. If this Feature
              +   * does not support any per-Scope configuration, this field may be unused.
              +   *
              +   * The keys indicate which Scope the configuration is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   *
              +   * {p} will always be returned as the project number, but the project ID is
              +   * also accepted during input. If the same Scope is specified in the map
              +   * twice (using the project ID form, and the project number form), exactly
              +   * ONE of the entries will be saved, with no guarantees as to which. For this
              +   * reason, it is recommended the same format be used for all entries when
              +   * mutating a Feature.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec defaultValue); + + /** + * + * + *
              +   * Optional. Scope-specific configuration for this Feature. If this Feature
              +   * does not support any per-Scope configuration, this field may be unused.
              +   *
              +   * The keys indicate which Scope the configuration is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   *
              +   * {p} will always be returned as the project number, but the project ID is
              +   * also accepted during input. If the same Scope is specified in the map
              +   * twice (using the project ID form, and the project number form), exactly
              +   * ONE of the entries will be saved, with no guarantees as to which. For this
              +   * reason, it is recommended the same format be used for all entries when
              +   * mutating a Feature.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrThrow(java.lang.String key); + + /** + * + * + *
              +   * Output only. Scope-specific Feature status. If this Feature does
              +   * report any per-Scope status, this field may be unused.
              +   *
              +   * The keys indicate which Scope the state is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getScopeStatesCount(); + + /** + * + * + *
              +   * Output only. Scope-specific Feature status. If this Feature does
              +   * report any per-Scope status, this field may be unused.
              +   *
              +   * The keys indicate which Scope the state is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsScopeStates(java.lang.String key); + + /** Use {@link #getScopeStatesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getScopeStates(); + + /** + * + * + *
              +   * Output only. Scope-specific Feature status. If this Feature does
              +   * report any per-Scope status, this field may be unused.
              +   *
              +   * The keys indicate which Scope the state is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getScopeStatesMap(); + + /** + * + * + *
              +   * Output only. Scope-specific Feature status. If this Feature does
              +   * report any per-Scope status, this field may be unused.
              +   *
              +   * The keys indicate which Scope the state is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureState defaultValue); + + /** + * + * + *
              +   * Output only. Scope-specific Feature status. If this Feature does
              +   * report any per-Scope status, this field may be unused.
              +   *
              +   * The keys indicate which Scope the state is for, in the form:
              +   *
              +   * `projects/{p}/locations/global/scopes/{s}`
              +   *
              +   * Where {p} is the project, {s} is a valid Scope in this project.
              +   * {p} WILL match the Feature's project.
              +   * 
              + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrThrow(java.lang.String key); + + /** + * + * + *
              +   * Output only. List of locations that could not be reached while fetching
              +   * this feature.
              +   * 
              + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
              +   * Output only. List of locations that could not be reached while fetching
              +   * this feature.
              +   * 
              + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
              +   * Output only. List of locations that could not be reached while fetching
              +   * this feature.
              +   * 
              + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
              +   * Output only. List of locations that could not be reached while fetching
              +   * this feature.
              +   * 
              + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java index 443c7d329f98..8f9b70115f30 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java @@ -56,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -72,6 +80,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -94,8 +110,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.cloud.gkehub.v1\032\037google/api/field" + "_behavior.proto\032\031google/api/resource.pro" + "to\032>google/cloud/gkehub/v1/configmanagement/configmanagement.proto\032Dgoogle/cloud" - + "/gkehub/v1/multiclusteringress/multiclus" - + "teringress.proto\032\037google/protobuf/timestamp.proto\"\317\007\n" + + "/gkehub/v1/multiclusteringress/multiclusteringress.proto\032Ngoogle/cloud/gkehub/v1" + + "/rbacrolebindingactuation/rbacrolebindin" + + "gactuation.proto\032\037google/protobuf/timestamp.proto\"\275\n\n" + "\007Feature\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022;\n" + "\006labels\030\002 \003(\0132+.google.cloud.gkehub.v1.Feature.LabelsEntry\022I\n" @@ -112,20 +129,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\n" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" + + "\013scope_specs\030\014" + + " \003(\0132/.google.cloud.gkehub.v1.Feature.ScopeSpecsEntryB\003\340A\001\022K\n" + + "\014scope_states\030\r" + + " \003(\01320.google.cloud.gkehub.v1.Feature.ScopeStatesEntryB\003\340A\003\022\030\n" + + "\013unreachable\030\017 \003(\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\032e\n" + "\024MembershipSpecsEntry\022\013\n" + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002" - + " \001(\0132-.google.cloud.gkehub.v1.MembershipFeatureSpec:\0028\001\032g\n" + + "\005value\030\002 \001(\0132-.goog" + + "le.cloud.gkehub.v1.MembershipFeatureSpec:\0028\001\032g\n" + "\025MembershipStatesEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132" - + "..google.cloud.gkehub.v1.MembershipFeatureState:\0028\001:^\352A[\n" - + "\035gkehub.googleapis.com/" - + "Feature\022:projects/{project}/locations/{location}/features/{feature}\"\306\001\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.gkehub.v1.MembershipFeatureState:\0028\001\032[\n" + + "\017ScopeSpecsEntry\022\013\n" + + "\003key\030\001 \001(\t\0227\n" + + "\005value\030\002 \001(\0132(.google.cloud.gkehub.v1.ScopeFeatureSpec:\0028\001\032]\n" + + "\020ScopeStatesEntry\022\013\n" + + "\003key\030\001 \001(\t\0228\n" + + "\005value\030\002" + + " \001(\0132).google.cloud.gkehub.v1.ScopeFeatureState:\0028\001:^\352A[\n" + + "\035gkehub.googleapi" + + "s.com/Feature\022:projects/{project}/locations/{location}/features/{feature}\"\306\001\n" + "\024FeatureResourceState\022A\n" + "\005state\030\001 \001(\01622.google.cloud.gkehub.v1.FeatureResourceState.State\"k\n" + "\005State\022\025\n" @@ -147,22 +176,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CommonFeatureSpec\022V\n" + "\023multiclusteringress\030f" + " \001(\01327.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecH\000B\016\n" - + "\014feature_spec\"N\n" - + "\022CommonFeatureState\0228\n" + + "\014feature_spec\"\302\001\n" + + "\022CommonFeatureState\022a\n" + + "\030rbacrolebindingactuation\030x \001(\0132=.google.cloud.gk" + + "ehub.rbacrolebindingactuation.v1.FeatureStateH\000\0228\n" + + "\005state\030\001" + + " \001(\0132$.google.cloud.gkehub.v1.FeatureStateB\003\340A\003B\017\n\r" + + "feature_state\"\022\n" + + "\020ScopeFeatureSpec\"M\n" + + "\021ScopeFeatureState\0228\n" + "\005state\030\001 \001(\0132$.google.cloud.gkehub.v1.FeatureStateB\003\340A\003\"|\n" + "\025MembershipFeatureSpec\022S\n" - + "\020configmanagement\030j" - + " \001(\01327.google.cloud.gkehub.configmanagement.v1.MembershipSpecH\000B\016\n" + + "\020configmanagement\030j \001(\01327.googl" + + "e.cloud.gkehub.configmanagement.v1.MembershipSpecH\000B\016\n" + "\014feature_spec\"\264\001\n" + "\026MembershipFeatureState\022T\n" - + "\020configmanagement\030j \001(\01328.google.cloud.gkehub" - + ".configmanagement.v1.MembershipStateH\000\0223\n" + + "\020configmanagement\030j \001(\013" + + "28.google.cloud.gkehub.configmanagement.v1.MembershipStateH\000\0223\n" + "\005state\030\001 \001(\0132$.google.cloud.gkehub.v1.FeatureStateB\017\n\r" + "feature_stateB\256\001\n" - + "\032com.google.cloud.gkehub.v1B\014FeatureProtoP\001Z2clo" - + "ud.google.com/go/gkehub/apiv1/gkehubpb;g" - + "kehubpb\252\002\026Google.Cloud.GkeHub.V1\312\002\026Googl" - + "e\\Cloud\\GkeHub\\V1\352\002\031Google::Cloud::GkeHub::V1b\006proto3" + + "\032com.google.cloud.gkehub.v1B\014FeatureProtoP\001Z2cloud.google.com/go/g" + + "kehub/apiv1/gkehubpb;gkehubpb\252\002\026Google.C" + + "loud.GkeHub.V1\312\002\026Google\\Cloud\\GkeHub\\V1\352" + + "\002\031Google::Cloud::GkeHub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -173,6 +209,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.getDescriptor(), com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto .getDescriptor(), + com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_gkehub_v1_Feature_descriptor = getDescriptor().getMessageType(0); @@ -190,6 +228,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "DeleteTime", + "ScopeSpecs", + "ScopeStates", + "Unreachable", }); internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor = internal_static_google_cloud_gkehub_v1_Feature_descriptor.getNestedType(0); @@ -215,6 +256,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Feature_descriptor.getNestedType(3); + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Feature_descriptor.getNestedType(4); + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor = getDescriptor().getMessageType(1); internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable = @@ -244,11 +301,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor, + new java.lang.String[] { + "Rbacrolebindingactuation", "State", "FeatureState", + }); + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor, new java.lang.String[] { "State", }); internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor, @@ -256,7 +327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Configmanagement", "FeatureSpec", }); internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor, @@ -268,6 +339,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.getDescriptor(); com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.getDescriptor(); + com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java index 4714a5187e76..54a73fe19a06 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java @@ -26,7 +26,7 @@ *
                * FeatureResourceState describes the state of a Feature *resource* in the
                * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
              - * Hub and across Memberships.
              + * Fleet and across Memberships.
                * 
              * * Protobuf type {@code google.cloud.gkehub.v1.FeatureResourceState} @@ -97,7 +97,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
                    * The Feature is being enabled, and the Feature resource is being created.
              -     * Once complete, the corresponding Feature will be enabled in this Hub.
              +     * Once complete, the corresponding Feature will be enabled in this Fleet.
                    * 
              * * ENABLING = 1; @@ -107,7 +107,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
              -     * The Feature is enabled in this Hub, and the Feature resource is fully
              +     * The Feature is enabled in this Fleet, and the Feature resource is fully
                    * available.
                    * 
              * @@ -118,7 +118,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
              -     * The Feature is being disabled in this Hub, and the Feature resource
              +     * The Feature is being disabled in this Fleet, and the Feature resource
                    * is being deleted.
                    * 
              * @@ -174,7 +174,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
                    * The Feature is being enabled, and the Feature resource is being created.
              -     * Once complete, the corresponding Feature will be enabled in this Hub.
              +     * Once complete, the corresponding Feature will be enabled in this Fleet.
                    * 
              * * ENABLING = 1; @@ -185,7 +185,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
              -     * The Feature is enabled in this Hub, and the Feature resource is fully
              +     * The Feature is enabled in this Fleet, and the Feature resource is fully
                    * available.
                    * 
              * @@ -197,7 +197,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
              -     * The Feature is being disabled in this Hub, and the Feature resource
              +     * The Feature is being disabled in this Fleet, and the Feature resource
                    * is being deleted.
                    * 
              * @@ -523,7 +523,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder *
                  * FeatureResourceState describes the state of a Feature *resource* in the
                  * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
              -   * Hub and across Memberships.
              +   * Fleet and across Memberships.
                  * 
              * * Protobuf type {@code google.cloud.gkehub.v1.FeatureResourceState} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Fleet.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Fleet.java new file mode 100644 index 000000000000..bfe233ad3bcf --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Fleet.java @@ -0,0 +1,2920 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Fleet contains the Fleet-wide metadata and configuration.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.Fleet} + */ +@com.google.protobuf.Generated +public final class Fleet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Fleet) + FleetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Fleet"); + } + + // Use Fleet.newBuilder() to construct. + private Fleet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Fleet() { + name_ = ""; + displayName_ = ""; + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Fleet.class, com.google.cloud.gkehub.v1.Fleet.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Output only. The full, unique resource name of this fleet in the format of
              +   * `projects/{project}/locations/{location}/fleets/{fleet}`.
              +   *
              +   * Each Google Cloud project can have at most one fleet resource, named
              +   * "default".
              +   * 
              + * + * 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. The full, unique resource name of this fleet in the format of
              +   * `projects/{project}/locations/{location}/fleets/{fleet}`.
              +   *
              +   * Each Google Cloud project can have at most one fleet resource, named
              +   * "default".
              +   * 
              + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
              +   * Optional. A user-assigned display name of the Fleet.
              +   * When present, it must be between 4 to 30 characters.
              +   * Allowed characters are: lowercase and uppercase letters, numbers,
              +   * hyphen, single-quote, double-quote, space, and exclamation point.
              +   *
              +   * Example: `Production Fleet`
              +   * 
              + * + * 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. A user-assigned display name of the Fleet.
              +   * When present, it must be between 4 to 30 characters.
              +   * Allowed characters are: lowercase and uppercase letters, numbers,
              +   * hyphen, single-quote, double-quote, space, and exclamation point.
              +   *
              +   * Example: `Production Fleet`
              +   * 
              + * + * 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. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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 DELETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
              +   * Output only. When the Fleet was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +   * Output only. When the Fleet was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
              +   * Output only. When the Fleet was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int UID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all Fleet resources. If a Fleet resource is deleted and another resource
              +   * with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all Fleet resources. If a Fleet resource is deleted and another resource
              +   * with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 9; + private com.google.cloud.gkehub.v1.FleetLifecycleState state_; + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance() + : state_; + } + + public static final int DEFAULT_CLUSTER_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.gkehub.v1.DefaultClusterConfig defaultClusterConfig_; + + /** + * + * + *
              +   * Optional. The default cluster configurations to apply across the fleet.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultClusterConfig field is set. + */ + @java.lang.Override + public boolean hasDefaultClusterConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
              +   * Optional. The default cluster configurations to apply across the fleet.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultClusterConfig. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultClusterConfig() { + return defaultClusterConfig_ == null + ? com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance() + : defaultClusterConfig_; + } + + /** + * + * + *
              +   * Optional. The default cluster configurations to apply across the fleet.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder + getDefaultClusterConfigOrBuilder() { + return defaultClusterConfig_ == null + ? com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance() + : defaultClusterConfig_; + } + + public static final int LABELS_FIELD_NUMBER = 11; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_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 for this Fleet.
              +   * 
              + * + * map<string, string> labels = 11 [(.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 for this Fleet.
              +   * 
              + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +   * Optional. Labels for this Fleet.
              +   * 
              + * + * map<string, string> labels = 11 [(.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 for this Fleet.
              +   * 
              + * + * map<string, string> labels = 11 [(.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); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.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(5, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, uid_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getState()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(10, getDefaultClusterConfig()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.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(5, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, uid_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getState()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDefaultClusterConfig()); + } + 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(11, labels__); + } + 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.v1.Fleet)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.Fleet other = (com.google.cloud.gkehub.v1.Fleet) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!getUid().equals(other.getUid())) return false; + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (hasDefaultClusterConfig() != other.hasDefaultClusterConfig()) return false; + if (hasDefaultClusterConfig()) { + if (!getDefaultClusterConfig().equals(other.getDefaultClusterConfig())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (hasDefaultClusterConfig()) { + hash = (37 * hash) + DEFAULT_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDefaultClusterConfig().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Fleet 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.v1.Fleet parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Fleet 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.v1.Fleet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Fleet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Fleet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.Fleet 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Fleet contains the Fleet-wide metadata and configuration.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.Fleet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Fleet) + com.google.cloud.gkehub.v1.FleetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Fleet.class, + com.google.cloud.gkehub.v1.Fleet.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.Fleet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + internalGetDefaultClusterConfigFieldBuilder(); + } + } + + @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; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + uid_ = ""; + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + defaultClusterConfig_ = null; + if (defaultClusterConfigBuilder_ != null) { + defaultClusterConfigBuilder_.dispose(); + defaultClusterConfigBuilder_ = null; + } + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.Fleet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet build() { + com.google.cloud.gkehub.v1.Fleet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet buildPartial() { + com.google.cloud.gkehub.v1.Fleet result = new com.google.cloud.gkehub.v1.Fleet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.Fleet 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.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.defaultClusterConfig_ = + defaultClusterConfigBuilder_ == null + ? defaultClusterConfig_ + : defaultClusterConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.Fleet) { + return mergeFrom((com.google.cloud.gkehub.v1.Fleet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.Fleet other) { + if (other == com.google.cloud.gkehub.v1.Fleet.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.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasState()) { + mergeState(other.getState()); + } + if (other.hasDefaultClusterConfig()) { + mergeDefaultClusterConfig(other.getDefaultClusterConfig()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 74: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetDefaultClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 90: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
              +     * Output only. The full, unique resource name of this fleet in the format of
              +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
              +     *
              +     * Each Google Cloud project can have at most one fleet resource, named
              +     * "default".
              +     * 
              + * + * 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. The full, unique resource name of this fleet in the format of
              +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
              +     *
              +     * Each Google Cloud project can have at most one fleet resource, named
              +     * "default".
              +     * 
              + * + * 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. The full, unique resource name of this fleet in the format of
              +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
              +     *
              +     * Each Google Cloud project can have at most one fleet resource, named
              +     * "default".
              +     * 
              + * + * 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. The full, unique resource name of this fleet in the format of
              +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
              +     *
              +     * Each Google Cloud project can have at most one fleet resource, named
              +     * "default".
              +     * 
              + * + * 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. The full, unique resource name of this fleet in the format of
              +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
              +     *
              +     * Each Google Cloud project can have at most one fleet resource, named
              +     * "default".
              +     * 
              + * + * 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.lang.Object displayName_ = ""; + + /** + * + * + *
              +     * Optional. A user-assigned display name of the Fleet.
              +     * When present, it must be between 4 to 30 characters.
              +     * Allowed characters are: lowercase and uppercase letters, numbers,
              +     * hyphen, single-quote, double-quote, space, and exclamation point.
              +     *
              +     * Example: `Production Fleet`
              +     * 
              + * + * 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. A user-assigned display name of the Fleet.
              +     * When present, it must be between 4 to 30 characters.
              +     * Allowed characters are: lowercase and uppercase letters, numbers,
              +     * hyphen, single-quote, double-quote, space, and exclamation point.
              +     *
              +     * Example: `Production Fleet`
              +     * 
              + * + * 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. A user-assigned display name of the Fleet.
              +     * When present, it must be between 4 to 30 characters.
              +     * Allowed characters are: lowercase and uppercase letters, numbers,
              +     * hyphen, single-quote, double-quote, space, and exclamation point.
              +     *
              +     * Example: `Production Fleet`
              +     * 
              + * + * 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. A user-assigned display name of the Fleet.
              +     * When present, it must be between 4 to 30 characters.
              +     * Allowed characters are: lowercase and uppercase letters, numbers,
              +     * hyphen, single-quote, double-quote, space, and exclamation point.
              +     *
              +     * Example: `Production Fleet`
              +     * 
              + * + * 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. A user-assigned display name of the Fleet.
              +     * When present, it must be between 4 to 30 characters.
              +     * Allowed characters are: lowercase and uppercase letters, numbers,
              +     * hyphen, single-quote, double-quote, space, and exclamation point.
              +     *
              +     * Example: `Production Fleet`
              +     * 
              + * + * 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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 internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the Fleet 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. When the Fleet was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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. When the Fleet 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 internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the Fleet 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. When the Fleet was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the Fleet was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
              +     * Output only. When the Fleet was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. When the Fleet was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the Fleet was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the Fleet was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. When the Fleet was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000010); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the Fleet was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the Fleet was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
              +     * Output only. When the Fleet was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all Fleet resources. If a Fleet resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all Fleet resources. If a Fleet resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all Fleet resources. If a Fleet resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all Fleet resources. If a Fleet resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all Fleet resources. If a Fleet resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.FleetLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FleetLifecycleState, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder, + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.FleetLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.FleetLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.FleetLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FleetLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FleetLifecycleState, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder, + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FleetLifecycleState, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder, + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private com.google.cloud.gkehub.v1.DefaultClusterConfig defaultClusterConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.DefaultClusterConfig, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder, + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder> + defaultClusterConfigBuilder_; + + /** + * + * + *
              +     * Optional. The default cluster configurations to apply across the fleet.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultClusterConfig field is set. + */ + public boolean hasDefaultClusterConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
              +     * Optional. The default cluster configurations to apply across the fleet.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultClusterConfig. + */ + public com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultClusterConfig() { + if (defaultClusterConfigBuilder_ == null) { + return defaultClusterConfig_ == null + ? com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance() + : defaultClusterConfig_; + } else { + return defaultClusterConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Optional. The default cluster configurations to apply across the fleet.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultClusterConfig(com.google.cloud.gkehub.v1.DefaultClusterConfig value) { + if (defaultClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultClusterConfig_ = value; + } else { + defaultClusterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The default cluster configurations to apply across the fleet.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultClusterConfig( + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder builderForValue) { + if (defaultClusterConfigBuilder_ == null) { + defaultClusterConfig_ = builderForValue.build(); + } else { + defaultClusterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The default cluster configurations to apply across the fleet.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultClusterConfig( + com.google.cloud.gkehub.v1.DefaultClusterConfig value) { + if (defaultClusterConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && defaultClusterConfig_ != null + && defaultClusterConfig_ + != com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance()) { + getDefaultClusterConfigBuilder().mergeFrom(value); + } else { + defaultClusterConfig_ = value; + } + } else { + defaultClusterConfigBuilder_.mergeFrom(value); + } + if (defaultClusterConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Optional. The default cluster configurations to apply across the fleet.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultClusterConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + defaultClusterConfig_ = null; + if (defaultClusterConfigBuilder_ != null) { + defaultClusterConfigBuilder_.dispose(); + defaultClusterConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The default cluster configurations to apply across the fleet.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder + getDefaultClusterConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetDefaultClusterConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Optional. The default cluster configurations to apply across the fleet.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder + getDefaultClusterConfigOrBuilder() { + if (defaultClusterConfigBuilder_ != null) { + return defaultClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return defaultClusterConfig_ == null + ? com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance() + : defaultClusterConfig_; + } + } + + /** + * + * + *
              +     * Optional. The default cluster configurations to apply across the fleet.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.DefaultClusterConfig, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder, + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder> + internalGetDefaultClusterConfigFieldBuilder() { + if (defaultClusterConfigBuilder_ == null) { + defaultClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.DefaultClusterConfig, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder, + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder>( + getDefaultClusterConfig(), getParentForChildren(), isClean()); + defaultClusterConfig_ = null; + } + return defaultClusterConfigBuilder_; + } + + 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_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
              +     * Optional. Labels for this Fleet.
              +     * 
              + * + * map<string, string> labels = 11 [(.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 for this Fleet.
              +     * 
              + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this Fleet.
              +     * 
              + * + * map<string, string> labels = 11 [(.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 for this Fleet.
              +     * 
              + * + * map<string, string> labels = 11 [(.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_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this Fleet.
              +     * 
              + * + * map<string, string> labels = 11 [(.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_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this Fleet.
              +     * 
              + * + * map<string, string> labels = 11 [(.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_ |= 0x00000100; + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this Fleet.
              +     * 
              + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Fleet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Fleet) + private static final com.google.cloud.gkehub.v1.Fleet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Fleet(); + } + + public static com.google.cloud.gkehub.v1.Fleet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fleet 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.v1.Fleet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleState.java new file mode 100644 index 000000000000..ec2762128fbd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleState.java @@ -0,0 +1,794 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * FleetLifecycleState describes the state of a Fleet resource.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.FleetLifecycleState} + */ +@com.google.protobuf.Generated +public final class FleetLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.FleetLifecycleState) + FleetLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FleetLifecycleState"); + } + + // Use FleetLifecycleState.newBuilder() to construct. + private FleetLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FleetLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.FleetLifecycleState.class, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder.class); + } + + /** + * + * + *
              +   * Code describes the state of a Fleet resource.
              +   * 
              + * + * Protobuf enum {@code google.cloud.gkehub.v1.FleetLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
              +     * The fleet is being created.
              +     * 
              + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
              +     * The fleet active.
              +     * 
              + * + * READY = 2; + */ + READY(2), + /** + * + * + *
              +     * The fleet is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
              +     * The fleet is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The fleet is being created.
              +     * 
              + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
              +     * The fleet active.
              +     * 
              + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
              +     * The fleet is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
              +     * The fleet is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + public static final int UPDATING_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 Code 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 Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + 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 Code findValueByNumber(int number) { + return Code.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetLifecycleState.getDescriptor().getEnumTypes().get(0); + } + + private static final Code[] VALUES = values(); + + public static Code 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 Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.FleetLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
              +   * Output only. The current state of the Fleet resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +   * Output only. The current state of the Fleet resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.FleetLifecycleState.Code result = + com.google.cloud.gkehub.v1.FleetLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.Code.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 (code_ != com.google.cloud.gkehub.v1.FleetLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != com.google.cloud.gkehub.v1.FleetLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + 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.v1.FleetLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.FleetLifecycleState other = + (com.google.cloud.gkehub.v1.FleetLifecycleState) obj; + + if (code_ != other.code_) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState 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.v1.FleetLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState 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.v1.FleetLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.FleetLifecycleState 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * FleetLifecycleState describes the state of a Fleet resource.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.FleetLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.FleetLifecycleState) + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.FleetLifecycleState.class, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.FleetLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState build() { + com.google.cloud.gkehub.v1.FleetLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.FleetLifecycleState result = + new com.google.cloud.gkehub.v1.FleetLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.FleetLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.FleetLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.FleetLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.FleetLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + 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: + { + code_ = 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 code_ = 0; + + /** + * + * + *
              +     * Output only. The current state of the Fleet resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +     * Output only. The current state of the Fleet resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the Fleet resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.FleetLifecycleState.Code result = + com.google.cloud.gkehub.v1.FleetLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Output only. The current state of the Fleet resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.FleetLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the Fleet resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.FleetLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.FleetLifecycleState) + private static final com.google.cloud.gkehub.v1.FleetLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.FleetLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FleetLifecycleState 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.v1.FleetLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..65b7a7972550 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface FleetLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.FleetLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The current state of the Fleet resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
              +   * Output only. The current state of the Fleet resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.FleetLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java new file mode 100644 index 000000000000..f47a82a2f136 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java @@ -0,0 +1,345 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 FleetName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FLEET = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/fleets/{fleet}"); + private static final PathTemplate ORGANIZATION_LOCATION_FLEET = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/fleets/{fleet}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String fleet; + private final String organization; + + @Deprecated + protected FleetName() { + project = null; + location = null; + fleet = null; + organization = null; + } + + private FleetName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + fleet = Preconditions.checkNotNull(builder.getFleet()); + organization = null; + pathTemplate = PROJECT_LOCATION_FLEET; + } + + private FleetName(OrganizationLocationFleetBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + fleet = Preconditions.checkNotNull(builder.getFleet()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_FLEET; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFleet() { + return fleet; + } + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationFleetBuilder() { + return new Builder(); + } + + public static OrganizationLocationFleetBuilder newOrganizationLocationFleetBuilder() { + return new OrganizationLocationFleetBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FleetName of(String project, String location, String fleet) { + return newBuilder().setProject(project).setLocation(location).setFleet(fleet).build(); + } + + public static FleetName ofProjectLocationFleetName( + String project, String location, String fleet) { + return newBuilder().setProject(project).setLocation(location).setFleet(fleet).build(); + } + + public static FleetName ofOrganizationLocationFleetName( + String organization, String location, String fleet) { + return newOrganizationLocationFleetBuilder() + .setOrganization(organization) + .setLocation(location) + .setFleet(fleet) + .build(); + } + + public static String format(String project, String location, String fleet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFleet(fleet) + .build() + .toString(); + } + + public static String formatProjectLocationFleetName( + String project, String location, String fleet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFleet(fleet) + .build() + .toString(); + } + + public static String formatOrganizationLocationFleetName( + String organization, String location, String fleet) { + return newOrganizationLocationFleetBuilder() + .setOrganization(organization) + .setLocation(location) + .setFleet(fleet) + .build() + .toString(); + } + + public static FleetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_FLEET.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_FLEET.match(formattedString); + return ofProjectLocationFleetName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("fleet")); + } else if (ORGANIZATION_LOCATION_FLEET.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_FLEET.match(formattedString); + return ofOrganizationLocationFleetName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("fleet")); + } + throw new ValidationException("FleetName.parse: formattedString not in valid format"); + } + + 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 (FleetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FLEET.matches(formattedString) + || ORGANIZATION_LOCATION_FLEET.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 (fleet != null) { + fieldMapBuilder.put("fleet", fleet); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FleetName that = ((FleetName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.fleet, that.fleet) + && Objects.equals(this.organization, that.organization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(fleet); + h *= 1000003; + h ^= Objects.hashCode(organization); + return h; + } + + /** Builder for projects/{project}/locations/{location}/fleets/{fleet}. */ + public static class Builder { + private String project; + private String location; + private String fleet; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFleet() { + return fleet; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFleet(String fleet) { + this.fleet = fleet; + return this; + } + + private Builder(FleetName fleetName) { + Preconditions.checkArgument( + Objects.equals(fleetName.pathTemplate, PROJECT_LOCATION_FLEET), + "toBuilder is only supported when FleetName has the pattern of" + + " projects/{project}/locations/{location}/fleets/{fleet}"); + this.project = fleetName.project; + this.location = fleetName.location; + this.fleet = fleetName.fleet; + } + + public FleetName build() { + return new FleetName(this); + } + } + + /** Builder for organizations/{organization}/locations/{location}/fleets/{fleet}. */ + public static class OrganizationLocationFleetBuilder { + private String organization; + private String location; + private String fleet; + + protected OrganizationLocationFleetBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFleet() { + return fleet; + } + + public OrganizationLocationFleetBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationFleetBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationFleetBuilder setFleet(String fleet) { + this.fleet = fleet; + return this; + } + + public FleetName build() { + return new FleetName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetOrBuilder.java new file mode 100644 index 000000000000..b98b2bf7018e --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetOrBuilder.java @@ -0,0 +1,397 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface FleetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Fleet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The full, unique resource name of this fleet in the format of
              +   * `projects/{project}/locations/{location}/fleets/{fleet}`.
              +   *
              +   * Each Google Cloud project can have at most one fleet resource, named
              +   * "default".
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Output only. The full, unique resource name of this fleet in the format of
              +   * `projects/{project}/locations/{location}/fleets/{fleet}`.
              +   *
              +   * Each Google Cloud project can have at most one fleet resource, named
              +   * "default".
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Optional. A user-assigned display name of the Fleet.
              +   * When present, it must be between 4 to 30 characters.
              +   * Allowed characters are: lowercase and uppercase letters, numbers,
              +   * hyphen, single-quote, double-quote, space, and exclamation point.
              +   *
              +   * Example: `Production Fleet`
              +   * 
              + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
              +   * Optional. A user-assigned display name of the Fleet.
              +   * When present, it must be between 4 to 30 characters.
              +   * Allowed characters are: lowercase and uppercase letters, numbers,
              +   * hyphen, single-quote, double-quote, space, and exclamation point.
              +   *
              +   * Example: `Production Fleet`
              +   * 
              + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
              +   * Output only. When the Fleet 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. When the Fleet was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
              +   * Output only. When the Fleet was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the Fleet 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. When the Fleet 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. When the Fleet was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the Fleet was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
              +   * Output only. When the Fleet was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
              +   * Output only. When the Fleet was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all Fleet resources. If a Fleet resource is deleted and another resource
              +   * with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all Fleet resources. If a Fleet resource is deleted and another resource
              +   * with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.FleetLifecycleState getState(); + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
              +   * Optional. The default cluster configurations to apply across the fleet.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultClusterConfig field is set. + */ + boolean hasDefaultClusterConfig(); + + /** + * + * + *
              +   * Optional. The default cluster configurations to apply across the fleet.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultClusterConfig. + */ + com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultClusterConfig(); + + /** + * + * + *
              +   * Optional. The default cluster configurations to apply across the fleet.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder getDefaultClusterConfigOrBuilder(); + + /** + * + * + *
              +   * Optional. Labels for this Fleet.
              +   * 
              + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
              +   * Optional. Labels for this Fleet.
              +   * 
              + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
              +   * Optional. Labels for this Fleet.
              +   * 
              + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
              +   * Optional. Labels for this Fleet.
              +   * 
              + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
              +   * Optional. Labels for this Fleet.
              +   * 
              + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetProto.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetProto.java new file mode 100644 index 000000000000..36240fc50e52 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetProto.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public final class FleetProto extends com.google.protobuf.GeneratedFile { + private FleetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FleetProto"); + } + + 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_gkehub_v1_Fleet_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Fleet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Namespace_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Namespace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Scope_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Scope_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipBinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_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/gkehub/v1/fleet.proto\022\026go" + + "ogle.cloud.gkehub.v1\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\212\005\n" + + "\005Fleet\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\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\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\020\n" + + "\003uid\030\006 \001(\tB\003\340A\003\022?\n" + + "\005state\030\t" + + " \001(\0132+.google.cloud.gkehub.v1.FleetLifecycleStateB\003\340A\003\022Q\n" + + "\026default_cluster_config\030\n" + + " \001(\0132,.google.cloud.gkehub.v1.DefaultClusterConfigB\003\340A\001\022>\n" + + "\006labels\030\013 \003(\0132).goog" + + "le.cloud.gkehub.v1.Fleet.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\233\001\352A\227\001\n" + + "\033gkehub.googleapis.com/Fleet\0226projects/{project}/locations/{loca" + + "tion}/fleets/{fleet}\022@organizations/{org" + + "anization}/locations/{location}/fleets/{fleet}\"\234\002\n" + + "\024DefaultClusterConfig\022N\n" + + "\027security_posture_config\030\001" + + " \001(\0132-.google.cloud.gkehub.v1.SecurityPostureConfig\022[\n" + + "\033binary_authorization_config\030\002 \001(\01321.google.cl" + + "oud.gkehub.v1.BinaryAuthorizationConfigB\003\340A\001\022W\n" + + "\031compliance_posture_config\030\003 \001(\0132" + + "/.google.cloud.gkehub.v1.CompliancePostureConfigB\003\340A\001\"\212\003\n" + + "\025SecurityPostureConfig\022@\n" + + "\004mode\030\001 \001(\01622.google.cloud.gkehub.v1.SecurityPostureConfig.Mode\022[\n" + + "\022vulnerability_mode\030\002 \001(\0162?.google.cloud.gkehub.v1.S" + + "ecurityPostureConfig.VulnerabilityMode\"E\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\t\n" + + "\005BASIC\020\002\022\016\n\n" + + "ENTERPRISE\020\003\"\212\001\n" + + "\021VulnerabilityMode\022\"\n" + + "\036VULNERABILITY_MODE_UNSPECIFIED\020\000\022\032\n" + + "\026VULNERABILITY_DISABLED\020\001\022\027\n" + + "\023VULNERABILITY_BASIC\020\002\022\034\n" + + "\030VULNERABILITY_ENTERPRISE\020\003\"\317\002\n" + + "\031BinaryAuthorizationConfig\022^\n" + + "\017evaluation_mode\030\001 \001(\0162@.google.cloud" + + ".gkehub.v1.BinaryAuthorizationConfig.EvaluationModeB\003\340A\001\022]\n" + + "\017policy_bindings\030\002 \003(" + + "\0132?.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingB\003\340A\001\032\035\n\r" + + "PolicyBinding\022\014\n" + + "\004name\030\001 \001(\t\"T\n" + + "\016EvaluationMode\022\037\n" + + "\033EVALUATION_MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\023\n" + + "\017POLICY_BINDINGS\020\002\"\240\002\n" + + "\027CompliancePostureConfig\022B\n" + + "\004mode\030\001 \001(\01624.google." + + "cloud.gkehub.v1.CompliancePostureConfig.Mode\022`\n" + + "\024compliance_standards\030\002 \003(\0132B.goo" + + "gle.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard\032&\n" + + "\022ComplianceStandard\022\020\n" + + "\010standard\030\001 \001(\t\"7\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\013\n" + + "\007ENABLED\020\002\"\255\001\n" + + "\023FleetLifecycleState\022C\n" + + "\004code\030\001 \001(\01620." + + "google.cloud.gkehub.v1.FleetLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004\"\275\005\n" + + "\tNamespace\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\003uid\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.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" + + "\005state\030\006 \001(\0132/" + + ".google.cloud.gkehub.v1.NamespaceLifecycleStateB\003\340A\003\0222\n" + + "\005scope\030\010 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Scope\022U\n" + + "\020namespace_labels\030\t" + + " \003(\01326.google.cloud.gkehub.v1.Namespace.NamespaceLabelsEntryB\003\340A\001\022B\n" + + "\006labels\030\n" + + " \003(\0132-.google.cloud.gkehub.v1.Namespace.LabelsEntryB\003\340A\001\0326\n" + + "\024NamespaceLabelsEntry\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:s\352Ap\n" + + "\037gkehub.googleapis.com/Namespace\022Mprojects/{project}/locations/{location" + + "}/scopes/{scope}/namespaces/{namespace}\"\265\001\n" + + "\027NamespaceLifecycleState\022G\n" + + "\004code\030\001 \001(" + + "\01624.google.cloud.gkehub.v1.NamespaceLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004\"\301\007\n" + + "\017RBACRoleBinding\022\016\n" + + "\004user\030\007 \001(\tH\000\022\017\n" + + "\005group\030\010 \001(\tH\000\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\003uid\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.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" + + "\005state\030\006" + + " \001(\01325.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateB\003\340A\003\022?\n" + + "\004role\030\t \001(\0132" + + ",.google.cloud.gkehub.v1.RBACRoleBinding.RoleB\003\340A\002\022H\n" + + "\006labels\030\n" + + " \003(\01323.google.clou" + + "d.gkehub.v1.RBACRoleBinding.LabelsEntryB\003\340A\001\032\312\001\n" + + "\004Role\022U\n" + + "\017predefined_role\030\001 \001(\0162<" + + ".google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles\022\030\n" + + "\013custom_role\030\002 \001(\tB\003\340A\001\"Q\n" + + "\017PredefinedRoles\022\013\n" + + "\007UNKNOWN\020\000\022\t\n" + + "\005ADMIN\020\001\022\010\n" + + "\004EDIT\020\002\022\010\n" + + "\004VIEW\020\003\022\022\n" + + "\016ANTHOS_SUPPORT\020\004\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\353\001\352A\347\001\n" + + "%gkehub.googleapis.com/RBACRoleBinding\022Yprojects/{projec" + + "t}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}\022cproje" + + "cts/{project}/locations/{location}/membe" + + "rships/{membership}/rbacrolebindings/{rbacrolebinding}B\013\n" + + "\tprincipal\"\301\001\n" + + "\035RBACRoleBindingLifecycleState\022M\n" + + "\004code\030\001 \001(\0162:.go" + + "ogle.cloud.gkehub.v1.RBACRoleBindingLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004\"\336\004\n" + + "\005Scope\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\003uid\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.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n" + + "\005state\030\006 \001" + + "(\0132+.google.cloud.gkehub.v1.ScopeLifecycleStateB\003\340A\003\022Q\n" + + "\020namespace_labels\030\010 \003(\01322" + + ".google.cloud.gkehub.v1.Scope.NamespaceLabelsEntryB\003\340A\001\022>\n" + + "\006labels\030\t \003(\0132).google" + + ".cloud.gkehub.v1.Scope.LabelsEntryB\003\340A\001\0326\n" + + "\024NamespaceLabelsEntry\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:X\352AU\n" + + "\033gkehub.goog" + + "leapis.com/Scope\0226projects/{project}/locations/{location}/scopes/{scope}\"\255\001\n" + + "\023ScopeLifecycleState\022C\n" + + "\004code\030\001 \001(\01620.google." + + "cloud.gkehub.v1.ScopeLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004\"\351\004\n" + + "\021MembershipBinding\0221\n" + + "\005scope\030\003 \001(\tB \372A\035\n" + + "\033gkehub.googleapis.com/ScopeH\000\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\003uid\030\002 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022K\n" + + "\005state\030\010" + + " \001(\01327.google.cloud.gkehub.v1.MembershipBindingLifecycleStateB\003\340A\003\022J\n" + + "\006labels\030\t" + + " \003(\01325.google.cloud.gkehub.v1.MembershipBinding.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\214\001\352A\210\001\n" + + "\'gkehub.googleapis.com/MembershipBinding\022]projects/{project}/locations/{locat" + + "ion}/memberships/{membership}/bindings/{membershipbinding}B\010\n" + + "\006target\"\305\001\n" + + "\037MembershipBindingLifecycleState\022O\n" + + "\004code\030\001 \001(\0162<" + + ".google.cloud.gkehub.v1.MembershipBindingLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004B\254\001\n" + + "\032com.google.cloud.gkehub.v1B\n" + + "FleetProtoP\001Z2cloud.google.com/go/gkehub/apiv1/gkehubpb;gke" + + "hubpb\252\002\026Google.Cloud.GkeHub.V1\312\002\026Google\\" + + "Cloud\\GkeHub\\V1\352\002\031Google::Cloud::GkeHub::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(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1_Fleet_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_gkehub_v1_Fleet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Fleet_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Uid", + "State", + "DefaultClusterConfig", + "Labels", + }); + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Fleet_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor, + new java.lang.String[] { + "SecurityPostureConfig", "BinaryAuthorizationConfig", "CompliancePostureConfig", + }); + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor, + new java.lang.String[] { + "Mode", "VulnerabilityMode", + }); + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor, + new java.lang.String[] { + "EvaluationMode", "PolicyBindings", + }); + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor = + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor.getNestedType( + 0); + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor, + new java.lang.String[] { + "Mode", "ComplianceStandards", + }); + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor = + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor, + new java.lang.String[] { + "Standard", + }); + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_gkehub_v1_Namespace_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_gkehub_v1_Namespace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Namespace_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "DeleteTime", + "State", + "Scope", + "NamespaceLabels", + "Labels", + }); + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Namespace_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Namespace_descriptor.getNestedType(1); + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor, + new java.lang.String[] { + "User", + "Group", + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "DeleteTime", + "State", + "Role", + "Labels", + "Principal", + }); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor = + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor, + new java.lang.String[] { + "PredefinedRole", "CustomRole", + }); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor.getNestedType(1); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_gkehub_v1_Scope_descriptor = getDescriptor().getMessageType(10); + internal_static_google_cloud_gkehub_v1_Scope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Scope_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "DeleteTime", + "State", + "NamespaceLabels", + "Labels", + }); + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Scope_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Scope_descriptor.getNestedType(1); + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_gkehub_v1_MembershipBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor, + new java.lang.String[] { + "Scope", + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "DeleteTime", + "State", + "Labels", + "Target", + }); + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + 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.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequest.java new file mode 100644 index 000000000000..479e25520700 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequest.java @@ -0,0 +1,1204 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to generate a YAML of the RBAC policies for the specified
              + * RoleBinding and its associated impersonation resources.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest} + */ +@com.google.protobuf.Generated +public final class GenerateMembershipRBACRoleBindingYAMLRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateMembershipRBACRoleBindingYAMLRequest"); + } + + // Use GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() to construct. + private GenerateMembershipRBACRoleBindingYAMLRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateMembershipRBACRoleBindingYAMLRequest() { + parent_ = ""; + rbacrolebindingId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.class, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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 RBACROLEBINDING_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rbacrolebindingId_ = ""; + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + @java.lang.Override + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + 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(); + rbacrolebindingId_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RBACROLEBINDING_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
              +   * Required. The rbacrolebindings to generate the YAML for.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The rbacrolebindings to generate the YAML for.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
              +   * Required. The rbacrolebindings to generate the YAML for.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRbacrolebinding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRbacrolebinding()); + } + 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.v1.GenerateMembershipRBACRoleBindingYAMLRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest other = + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRbacrolebindingId().equals(other.getRbacrolebindingId())) return false; + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) 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) + RBACROLEBINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingId().hashCode(); + if (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest 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.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest 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.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.GenerateMembershipRBACRoleBindingYAMLRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to generate a YAML of the RBAC policies for the specified
              +   * RoleBinding and its associated impersonation resources.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.class, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rbacrolebindingId_ = ""; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest build() { + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest buildPartial() { + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest result = + new com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rbacrolebindingId_ = rbacrolebindingId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) { + return mergeFrom( + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest other) { + if (other + == com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRbacrolebindingId().isEmpty()) { + rbacrolebindingId_ = other.rbacrolebindingId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + 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: + { + rbacrolebindingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRbacrolebindingFieldBuilder().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 parent (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the RBACRoleBinding will
              +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 rbacrolebindingId_ = ""; + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rbacrolebindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRbacrolebindingId() { + rbacrolebindingId_ = getDefaultInstance().getRbacrolebindingId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +     * must be a valid RFC 1123 compliant DNS label:
              +     *
              +     * 1. At most 63 characters in length
              +     * 2. It must consist of lower case alphanumeric characters or `-`
              +     * 3. It must start and end with an alphanumeric character
              +     *
              +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +     * with a maximum length of 63 characters.
              +     * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
              +     * Required. The rbacrolebindings to generate the YAML for.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to generate the YAML for.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to generate the YAML for.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to generate the YAML for.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to generate the YAML for.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to generate the YAML for.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000004); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to generate the YAML for.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to generate the YAML for.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
              +     * Required. The rbacrolebindings to generate the YAML for.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + private static final com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest(); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateMembershipRBACRoleBindingYAMLRequest 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.v1.GenerateMembershipRBACRoleBindingYAMLRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder.java new file mode 100644 index 000000000000..bfd73385462d --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the RBACRoleBinding will
              +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + java.lang.String getRbacrolebindingId(); + + /** + * + * + *
              +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
              +   * must be a valid RFC 1123 compliant DNS label:
              +   *
              +   * 1. At most 63 characters in length
              +   * 2. It must consist of lower case alphanumeric characters or `-`
              +   * 3. It must start and end with an alphanumeric character
              +   *
              +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
              +   * with a maximum length of 63 characters.
              +   * 
              + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + com.google.protobuf.ByteString getRbacrolebindingIdBytes(); + + /** + * + * + *
              +   * Required. The rbacrolebindings to generate the YAML for.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
              +   * Required. The rbacrolebindings to generate the YAML for.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
              +   * Required. The rbacrolebindings to generate the YAML for.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponse.java new file mode 100644 index 000000000000..dc0de0264929 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponse.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Response for GenerateRBACRoleBindingYAML.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse} + */ +@com.google.protobuf.Generated +public final class GenerateMembershipRBACRoleBindingYAMLResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateMembershipRBACRoleBindingYAMLResponse"); + } + + // Use GenerateMembershipRBACRoleBindingYAMLResponse.newBuilder() to construct. + private GenerateMembershipRBACRoleBindingYAMLResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateMembershipRBACRoleBindingYAMLResponse() { + roleBindingsYaml_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.class, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.Builder.class); + } + + public static final int ROLE_BINDINGS_YAML_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object roleBindingsYaml_ = ""; + + /** + * + * + *
              +   * a yaml text blob including the RBAC policies.
              +   * 
              + * + * string role_bindings_yaml = 1; + * + * @return The roleBindingsYaml. + */ + @java.lang.Override + public java.lang.String getRoleBindingsYaml() { + java.lang.Object ref = roleBindingsYaml_; + 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(); + roleBindingsYaml_ = s; + return s; + } + } + + /** + * + * + *
              +   * a yaml text blob including the RBAC policies.
              +   * 
              + * + * string role_bindings_yaml = 1; + * + * @return The bytes for roleBindingsYaml. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoleBindingsYamlBytes() { + java.lang.Object ref = roleBindingsYaml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + roleBindingsYaml_ = 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.GeneratedMessage.isStringEmpty(roleBindingsYaml_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, roleBindingsYaml_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(roleBindingsYaml_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, roleBindingsYaml_); + } + 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.v1.GenerateMembershipRBACRoleBindingYAMLResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse other = + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) obj; + + if (!getRoleBindingsYaml().equals(other.getRoleBindingsYaml())) 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) + ROLE_BINDINGS_YAML_FIELD_NUMBER; + hash = (53 * hash) + getRoleBindingsYaml().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse 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.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse 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.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.GenerateMembershipRBACRoleBindingYAMLResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Response for GenerateRBACRoleBindingYAML.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.class, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + roleBindingsYaml_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse build() { + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse buildPartial() { + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse result = + new com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.roleBindingsYaml_ = roleBindingsYaml_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) { + return mergeFrom( + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse other) { + if (other + == com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + .getDefaultInstance()) return this; + if (!other.getRoleBindingsYaml().isEmpty()) { + roleBindingsYaml_ = other.roleBindingsYaml_; + 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: + { + roleBindingsYaml_ = 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 roleBindingsYaml_ = ""; + + /** + * + * + *
              +     * a yaml text blob including the RBAC policies.
              +     * 
              + * + * string role_bindings_yaml = 1; + * + * @return The roleBindingsYaml. + */ + public java.lang.String getRoleBindingsYaml() { + java.lang.Object ref = roleBindingsYaml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + roleBindingsYaml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * a yaml text blob including the RBAC policies.
              +     * 
              + * + * string role_bindings_yaml = 1; + * + * @return The bytes for roleBindingsYaml. + */ + public com.google.protobuf.ByteString getRoleBindingsYamlBytes() { + java.lang.Object ref = roleBindingsYaml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + roleBindingsYaml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * a yaml text blob including the RBAC policies.
              +     * 
              + * + * string role_bindings_yaml = 1; + * + * @param value The roleBindingsYaml to set. + * @return This builder for chaining. + */ + public Builder setRoleBindingsYaml(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + roleBindingsYaml_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * a yaml text blob including the RBAC policies.
              +     * 
              + * + * string role_bindings_yaml = 1; + * + * @return This builder for chaining. + */ + public Builder clearRoleBindingsYaml() { + roleBindingsYaml_ = getDefaultInstance().getRoleBindingsYaml(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * a yaml text blob including the RBAC policies.
              +     * 
              + * + * string role_bindings_yaml = 1; + * + * @param value The bytes for roleBindingsYaml to set. + * @return This builder for chaining. + */ + public Builder setRoleBindingsYamlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + roleBindingsYaml_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + private static final com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse(); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateMembershipRBACRoleBindingYAMLResponse 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.v1.GenerateMembershipRBACRoleBindingYAMLResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder.java new file mode 100644 index 000000000000..1ae050b7f6c7 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * a yaml text blob including the RBAC policies.
              +   * 
              + * + * string role_bindings_yaml = 1; + * + * @return The roleBindingsYaml. + */ + java.lang.String getRoleBindingsYaml(); + + /** + * + * + *
              +   * a yaml text blob including the RBAC policies.
              +   * 
              + * + * string role_bindings_yaml = 1; + * + * @return The bytes for roleBindingsYaml. + */ + com.google.protobuf.ByteString getRoleBindingsYamlBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java index 2161961d6abe..42cd8c15c1ef 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java @@ -125,6 +125,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 2; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
              +   * Optional. If set to true, the response will return partial results when
              +   * some regions are unreachable and the unreachable field in Feature proto
              +   * will be populated. If set to false, the request will fail when some regions
              +   * are unreachable.
              +   * 
              + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -142,6 +164,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } + if (returnPartialSuccess_ != false) { + output.writeBool(2, returnPartialSuccess_); + } getUnknownFields().writeTo(output); } @@ -154,6 +179,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, returnPartialSuccess_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -171,6 +199,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.gkehub.v1.GetFeatureRequest) obj; if (!getName().equals(other.getName())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,6 +213,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -325,6 +356,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + returnPartialSuccess_ = false; return this; } @@ -364,6 +396,9 @@ private void buildPartial0(com.google.cloud.gkehub.v1.GetFeatureRequest result) if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + } } @java.lang.Override @@ -383,6 +418,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.GetFeatureRequest other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -415,6 +453,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -550,6 +594,71 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private boolean returnPartialSuccess_; + + /** + * + * + *
              +     * Optional. If set to true, the response will return partial results when
              +     * some regions are unreachable and the unreachable field in Feature proto
              +     * will be populated. If set to false, the request will fail when some regions
              +     * are unreachable.
              +     * 
              + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
              +     * Optional. If set to true, the response will return partial results when
              +     * some regions are unreachable and the unreachable field in Feature proto
              +     * will be populated. If set to false, the request will fail when some regions
              +     * are unreachable.
              +     * 
              + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. If set to true, the response will return partial results when
              +     * some regions are unreachable and the unreachable field in Feature proto
              +     * will be populated. If set to false, the request will fail when some regions
              +     * are unreachable.
              +     * 
              + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000002); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetFeatureRequest) } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java index e06a91fb0a5e..d14ca835158c 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java @@ -53,4 +53,20 @@ public interface GetFeatureRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Optional. If set to true, the response will return partial results when
              +   * some regions are unreachable and the unreachable field in Feature proto
              +   * will be populated. If set to false, the request will fail when some regions
              +   * are unreachable.
              +   * 
              + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequest.java new file mode 100644 index 000000000000..628f9c43719c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequest.java @@ -0,0 +1,616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request message for the `GkeHub.GetFleet` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetFleetRequest} + */ +@com.google.protobuf.Generated +public final class GetFleetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetFleetRequest) + GetFleetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetFleetRequest"); + } + + // Use GetFleetRequest.newBuilder() to construct. + private GetFleetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFleetRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetFleetRequest.class, + com.google.cloud.gkehub.v1.GetFleetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The Fleet resource name in the format
              +   * `projects/*/locations/*/fleets/*`.
              +   * 
              + * + * + * 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 Fleet resource name in the format
              +   * `projects/*/locations/*/fleets/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.GetFleetRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetFleetRequest other = + (com.google.cloud.gkehub.v1.GetFleetRequest) 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.gkehub.v1.GetFleetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest 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.v1.GetFleetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest 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.v1.GetFleetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.GetFleetRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for the `GkeHub.GetFleet` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetFleetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetFleetRequest) + com.google.cloud.gkehub.v1.GetFleetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetFleetRequest.class, + com.google.cloud.gkehub.v1.GetFleetRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetFleetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetFleetRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetFleetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetFleetRequest build() { + com.google.cloud.gkehub.v1.GetFleetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetFleetRequest buildPartial() { + com.google.cloud.gkehub.v1.GetFleetRequest result = + new com.google.cloud.gkehub.v1.GetFleetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetFleetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetFleetRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetFleetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetFleetRequest other) { + if (other == com.google.cloud.gkehub.v1.GetFleetRequest.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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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 Fleet resource name in the format
              +     * `projects/*/locations/*/fleets/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetFleetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetFleetRequest) + private static final com.google.cloud.gkehub.v1.GetFleetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetFleetRequest(); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFleetRequest 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.v1.GetFleetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequestOrBuilder.java new file mode 100644 index 000000000000..fc5a43dc4f4f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetFleetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetFleetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The Fleet resource name in the format
              +   * `projects/*/locations/*/fleets/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The Fleet resource name in the format
              +   * `projects/*/locations/*/fleets/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequest.java new file mode 100644 index 000000000000..8473e8ce6beb --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request message for the `GkeHub.GetMembershipBinding` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipBindingRequest} + */ +@com.google.protobuf.Generated +public final class GetMembershipBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetMembershipBindingRequest) + GetMembershipBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMembershipBindingRequest"); + } + + // Use GetMembershipBindingRequest.newBuilder() to construct. + private GetMembershipBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMembershipBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.GetMembershipBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The MembershipBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/bindings/*`.
              +   * 
              + * + * + * 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 MembershipBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/bindings/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.GetMembershipBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetMembershipBindingRequest other = + (com.google.cloud.gkehub.v1.GetMembershipBindingRequest) 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.gkehub.v1.GetMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest 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.v1.GetMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest 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.v1.GetMembershipBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.GetMembershipBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for the `GkeHub.GetMembershipBinding` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetMembershipBindingRequest) + com.google.cloud.gkehub.v1.GetMembershipBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.GetMembershipBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetMembershipBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetMembershipBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipBindingRequest build() { + com.google.cloud.gkehub.v1.GetMembershipBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.GetMembershipBindingRequest result = + new com.google.cloud.gkehub.v1.GetMembershipBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetMembershipBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetMembershipBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetMembershipBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetMembershipBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.GetMembershipBindingRequest.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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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 MembershipBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/bindings/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetMembershipBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetMembershipBindingRequest) + private static final com.google.cloud.gkehub.v1.GetMembershipBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetMembershipBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipBindingRequest 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.v1.GetMembershipBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequestOrBuilder.java new file mode 100644 index 000000000000..65dccbd73585 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetMembershipBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetMembershipBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The MembershipBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/bindings/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The MembershipBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/bindings/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequest.java new file mode 100644 index 000000000000..1ba3b3056c72 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request message for the `GkeHub.GetMembershipRBACRoleBinding` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class GetMembershipRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + GetMembershipRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMembershipRBACRoleBindingRequest"); + } + + // Use GetMembershipRBACRoleBindingRequest.newBuilder() to construct. + private GetMembershipRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMembershipRBACRoleBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.GetMembershipRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) 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.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest 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.v1.GetMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest 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.v1.GetMembershipRBACRoleBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.GetMembershipRBACRoleBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for the `GkeHub.GetMembershipRBACRoleBinding` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipRBACRoleBindingRequest 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.v1.GetMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..13522afe962c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetMembershipRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequest.java new file mode 100644 index 000000000000..4ebd9eb05fb8 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request message for the `GkeHub.GetNamespace` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeNamespaceRequest} + */ +@com.google.protobuf.Generated +public final class GetScopeNamespaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + GetScopeNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetScopeNamespaceRequest"); + } + + // Use GetScopeNamespaceRequest.newBuilder() to construct. + private GetScopeNamespaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetScopeNamespaceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The Namespace resource name in the format
              +   * `projects/*/locations/*/scopes/*/namespaces/*`.
              +   * 
              + * + * + * 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 Namespace resource name in the format
              +   * `projects/*/locations/*/scopes/*/namespaces/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.GetScopeNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest other = + (com.google.cloud.gkehub.v1.GetScopeNamespaceRequest) 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.gkehub.v1.GetScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest 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.v1.GetScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest 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.v1.GetScopeNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.GetScopeNamespaceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for the `GkeHub.GetNamespace` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + com.google.cloud.gkehub.v1.GetScopeNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeNamespaceRequest build() { + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeNamespaceRequest buildPartial() { + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest result = + new com.google.cloud.gkehub.v1.GetScopeNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetScopeNamespaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetScopeNamespaceRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetScopeNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetScopeNamespaceRequest other) { + if (other == com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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 Namespace resource name in the format
              +     * `projects/*/locations/*/scopes/*/namespaces/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + private static final com.google.cloud.gkehub.v1.GetScopeNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetScopeNamespaceRequest(); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScopeNamespaceRequest 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.v1.GetScopeNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..4a5365c69686 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetScopeNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The Namespace resource name in the format
              +   * `projects/*/locations/*/scopes/*/namespaces/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The Namespace resource name in the format
              +   * `projects/*/locations/*/scopes/*/namespaces/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequest.java new file mode 100644 index 000000000000..f4f7bd82965d --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request message for the `GkeHub.GetScopeRBACRoleBinding` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class GetScopeRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + GetScopeRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetScopeRBACRoleBindingRequest"); + } + + // Use GetScopeRBACRoleBindingRequest.newBuilder() to construct. + private GetScopeRBACRoleBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetScopeRBACRoleBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.GetScopeRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) 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.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest 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.v1.GetScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest 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.v1.GetScopeRBACRoleBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.GetScopeRBACRoleBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for the `GkeHub.GetScopeRBACRoleBinding` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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 RBACRoleBinding resource name in the format
              +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScopeRBACRoleBindingRequest 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.v1.GetScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..92fee79b0bda --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetScopeRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The RBACRoleBinding resource name in the format
              +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequest.java new file mode 100644 index 000000000000..a31f7cbdb25d --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequest.java @@ -0,0 +1,616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request message for the `GkeHub.GetScope` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeRequest} + */ +@com.google.protobuf.Generated +public final class GetScopeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetScopeRequest) + GetScopeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetScopeRequest"); + } + + // Use GetScopeRequest.newBuilder() to construct. + private GetScopeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetScopeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeRequest.class, + com.google.cloud.gkehub.v1.GetScopeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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 Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.GetScopeRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetScopeRequest other = + (com.google.cloud.gkehub.v1.GetScopeRequest) 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.gkehub.v1.GetScopeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest 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.v1.GetScopeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest 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.v1.GetScopeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.GetScopeRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for the `GkeHub.GetScope` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetScopeRequest) + com.google.cloud.gkehub.v1.GetScopeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeRequest.class, + com.google.cloud.gkehub.v1.GetScopeRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetScopeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetScopeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRequest build() { + com.google.cloud.gkehub.v1.GetScopeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRequest buildPartial() { + com.google.cloud.gkehub.v1.GetScopeRequest result = + new com.google.cloud.gkehub.v1.GetScopeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetScopeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetScopeRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetScopeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetScopeRequest other) { + if (other == com.google.cloud.gkehub.v1.GetScopeRequest.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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetScopeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetScopeRequest) + private static final com.google.cloud.gkehub.v1.GetScopeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetScopeRequest(); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScopeRequest 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.v1.GetScopeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequestOrBuilder.java new file mode 100644 index 000000000000..daaefc88d5d4 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetScopeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetScopeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequest.java new file mode 100644 index 000000000000..6ea551560b0f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequest.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to list Memberships bound to a Scope.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListBoundMembershipsRequest} + */ +@com.google.protobuf.Generated +public final class ListBoundMembershipsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + ListBoundMembershipsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBoundMembershipsRequest"); + } + + // Use ListBoundMembershipsRequest.newBuilder() to construct. + private ListBoundMembershipsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBoundMembershipsRequest() { + scopeName_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.class, + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.Builder.class); + } + + public static final int SCOPE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object scopeName_ = ""; + + /** + * + * + *
              +   * Required. Name of the Scope, in the format
              +   * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
              +   * 
              + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scopeName. + */ + @java.lang.Override + public java.lang.String getScopeName() { + java.lang.Object ref = scopeName_; + 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(); + scopeName_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. Name of the Scope, in the format
              +   * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
              +   * 
              + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scopeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeNameBytes() { + java.lang.Object ref = scopeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeName_ = 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_ = ""; + + /** + * + * + *
              +   * Optional. Lists Memberships that match the filter expression, following the
              +   * syntax outlined in https://google.aip.dev/160. Currently, filtering
              +   * can be done only based on Memberships's `name`, `labels`, `create_time`,
              +   * `update_time`, and `unique_id`.
              +   * 
              + * + * string filter = 2 [(.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. Lists Memberships that match the filter expression, following the
              +   * syntax outlined in https://google.aip.dev/160. Currently, filtering
              +   * can be done only based on Memberships's `name`, `labels`, `create_time`,
              +   * `update_time`, and `unique_id`.
              +   * 
              + * + * string filter = 2 [(.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 PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
              +   * Optional. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned. Pagination is currently not supported; therefore, setting
              +   * this field does not have any impact for now.
              +   * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListBoundMemberships` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 4 [(.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. Token returned by previous call to `ListBoundMemberships` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 4 [(.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; + } + } + + 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.GeneratedMessage.isStringEmpty(scopeName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, scopeName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, scopeName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); + } + 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.v1.ListBoundMembershipsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest other = + (com.google.cloud.gkehub.v1.ListBoundMembershipsRequest) obj; + + if (!getScopeName().equals(other.getScopeName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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_NAME_FIELD_NUMBER; + hash = (53 * hash) + getScopeName().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest 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.v1.ListBoundMembershipsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest 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.v1.ListBoundMembershipsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListBoundMembershipsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to list Memberships bound to a Scope.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListBoundMembershipsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + com.google.cloud.gkehub.v1.ListBoundMembershipsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.class, + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scopeName_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsRequest build() { + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest result = + new com.google.cloud.gkehub.v1.ListBoundMembershipsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListBoundMembershipsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scopeName_ = scopeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListBoundMembershipsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListBoundMembershipsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListBoundMembershipsRequest other) { + if (other == com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.getDefaultInstance()) + return this; + if (!other.getScopeName().isEmpty()) { + scopeName_ = other.scopeName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + scopeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = 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 scopeName_ = ""; + + /** + * + * + *
              +     * Required. Name of the Scope, in the format
              +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
              +     * 
              + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scopeName. + */ + public java.lang.String getScopeName() { + java.lang.Object ref = scopeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scopeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. Name of the Scope, in the format
              +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
              +     * 
              + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scopeName. + */ + public com.google.protobuf.ByteString getScopeNameBytes() { + java.lang.Object ref = scopeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. Name of the Scope, in the format
              +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
              +     * 
              + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The scopeName to set. + * @return This builder for chaining. + */ + public Builder setScopeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scopeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Name of the Scope, in the format
              +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
              +     * 
              + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearScopeName() { + scopeName_ = getDefaultInstance().getScopeName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Name of the Scope, in the format
              +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
              +     * 
              + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for scopeName to set. + * @return This builder for chaining. + */ + public Builder setScopeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scopeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
              +     * Optional. Lists Memberships that match the filter expression, following the
              +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
              +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
              +     * `update_time`, and `unique_id`.
              +     * 
              + * + * string filter = 2 [(.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. Lists Memberships that match the filter expression, following the
              +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
              +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
              +     * `update_time`, and `unique_id`.
              +     * 
              + * + * string filter = 2 [(.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. Lists Memberships that match the filter expression, following the
              +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
              +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
              +     * `update_time`, and `unique_id`.
              +     * 
              + * + * string filter = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Lists Memberships that match the filter expression, following the
              +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
              +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
              +     * `update_time`, and `unique_id`.
              +     * 
              + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Lists Memberships that match the filter expression, following the
              +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
              +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
              +     * `update_time`, and `unique_id`.
              +     * 
              + * + * string filter = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
              +     * Optional. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned. Pagination is currently not supported; therefore, setting
              +     * this field does not have any impact for now.
              +     * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned. Pagination is currently not supported; therefore, setting
              +     * this field does not have any impact for now.
              +     * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned. Pagination is currently not supported; therefore, setting
              +     * this field does not have any impact for now.
              +     * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
              +     * Optional. Token returned by previous call to `ListBoundMemberships` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * string page_token = 4 [(.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. Token returned by previous call to `ListBoundMemberships` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * string page_token = 4 [(.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. Token returned by previous call to `ListBoundMemberships` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Token returned by previous call to `ListBoundMemberships` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Token returned by previous call to `ListBoundMemberships` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + private static final com.google.cloud.gkehub.v1.ListBoundMembershipsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListBoundMembershipsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBoundMembershipsRequest 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.v1.ListBoundMembershipsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequestOrBuilder.java new file mode 100644 index 000000000000..0fcf1de1521e --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListBoundMembershipsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. Name of the Scope, in the format
              +   * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
              +   * 
              + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scopeName. + */ + java.lang.String getScopeName(); + + /** + * + * + *
              +   * Required. Name of the Scope, in the format
              +   * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
              +   * 
              + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scopeName. + */ + com.google.protobuf.ByteString getScopeNameBytes(); + + /** + * + * + *
              +   * Optional. Lists Memberships that match the filter expression, following the
              +   * syntax outlined in https://google.aip.dev/160. Currently, filtering
              +   * can be done only based on Memberships's `name`, `labels`, `create_time`,
              +   * `update_time`, and `unique_id`.
              +   * 
              + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
              +   * Optional. Lists Memberships that match the filter expression, following the
              +   * syntax outlined in https://google.aip.dev/160. Currently, filtering
              +   * can be done only based on Memberships's `name`, `labels`, `create_time`,
              +   * `update_time`, and `unique_id`.
              +   * 
              + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
              +   * Optional. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned. Pagination is currently not supported; therefore, setting
              +   * this field does not have any impact for now.
              +   * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListBoundMemberships` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListBoundMemberships` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponse.java new file mode 100644 index 000000000000..1157ca6b8963 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponse.java @@ -0,0 +1,1416 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * List of Memberships bound to a Scope.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListBoundMembershipsResponse} + */ +@com.google.protobuf.Generated +public final class ListBoundMembershipsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + ListBoundMembershipsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBoundMembershipsResponse"); + } + + // Use ListBoundMembershipsResponse.newBuilder() to construct. + private ListBoundMembershipsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBoundMembershipsResponse() { + memberships_ = java.util.Collections.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.class, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.Builder.class); + } + + public static final int MEMBERSHIPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List memberships_; + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public java.util.List getMembershipsList() { + return memberships_; + } + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public java.util.List + getMembershipsOrBuilderList() { + return memberships_; + } + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public int getMembershipsCount() { + return memberships_.size(); + } + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Membership getMemberships(int index) { + return memberships_.get(index); + } + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipOrBuilder getMembershipsOrBuilder(int index) { + return memberships_.get(index); + } + + public static final int UNREACHABLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 2; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 2; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 2; + * + * @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); + } + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 2; + * + * @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); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListBoundMemberships` method. The value of an empty string means that
              +   * there are no more resources to return.
              +   * 
              + * + * string next_page_token = 3; + * + * @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 to request the next page of resources from the
              +   * `ListBoundMemberships` method. The value of an empty string means that
              +   * there are no more resources to return.
              +   * 
              + * + * string next_page_token = 3; + * + * @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; + } + } + + 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 < memberships_.size(); i++) { + output.writeMessage(1, memberships_.get(i)); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, unreachable_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < memberships_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, memberships_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, nextPageToken_); + } + 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.v1.ListBoundMembershipsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse other = + (com.google.cloud.gkehub.v1.ListBoundMembershipsResponse) obj; + + if (!getMembershipsList().equals(other.getMembershipsList())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getMembershipsCount() > 0) { + hash = (37 * hash) + MEMBERSHIPS_FIELD_NUMBER; + hash = (53 * hash) + getMembershipsList().hashCode(); + } + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse 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.v1.ListBoundMembershipsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse 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.v1.ListBoundMembershipsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListBoundMembershipsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * List of Memberships bound to a Scope.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListBoundMembershipsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + com.google.cloud.gkehub.v1.ListBoundMembershipsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.class, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + } else { + memberships_ = null; + membershipsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse build() { + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse result = + new com.google.cloud.gkehub.v1.ListBoundMembershipsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse result) { + if (membershipsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + memberships_ = java.util.Collections.unmodifiableList(memberships_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.memberships_ = memberships_; + } else { + result.memberships_ = membershipsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListBoundMembershipsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListBoundMembershipsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListBoundMembershipsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListBoundMembershipsResponse other) { + if (other == com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.getDefaultInstance()) + return this; + if (membershipsBuilder_ == null) { + if (!other.memberships_.isEmpty()) { + if (memberships_.isEmpty()) { + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembershipsIsMutable(); + memberships_.addAll(other.memberships_); + } + onChanged(); + } + } else { + if (!other.memberships_.isEmpty()) { + if (membershipsBuilder_.isEmpty()) { + membershipsBuilder_.dispose(); + membershipsBuilder_ = null; + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + membershipsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMembershipsFieldBuilder() + : null; + } else { + membershipsBuilder_.addAllMessages(other.memberships_); + } + } + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000002; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.gkehub.v1.Membership m = + input.readMessage( + com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(m); + } else { + membershipsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 18 + case 26: + { + nextPageToken_ = 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.util.List memberships_ = + java.util.Collections.emptyList(); + + private void ensureMembershipsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + memberships_ = new java.util.ArrayList(memberships_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> + membershipsBuilder_; + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public java.util.List getMembershipsList() { + if (membershipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(memberships_); + } else { + return membershipsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public int getMembershipsCount() { + if (membershipsBuilder_ == null) { + return memberships_.size(); + } else { + return membershipsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.Membership getMemberships(int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder setMemberships(int index, com.google.cloud.gkehub.v1.Membership value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.set(index, value); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder setMemberships( + int index, com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.set(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addMemberships(com.google.cloud.gkehub.v1.Membership value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(value); + onChanged(); + } else { + membershipsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addMemberships(int index, com.google.cloud.gkehub.v1.Membership value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(index, value); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addMemberships(com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addMemberships( + int index, com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addAllMemberships( + java.lang.Iterable values) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, memberships_); + onChanged(); + } else { + membershipsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder clearMemberships() { + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membershipsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder removeMemberships(int index) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.remove(index); + onChanged(); + } else { + membershipsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.Membership.Builder getMembershipsBuilder(int index) { + return internalGetMembershipsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.MembershipOrBuilder getMembershipsOrBuilder(int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public java.util.List + getMembershipsOrBuilderList() { + if (membershipsBuilder_ != null) { + return membershipsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(memberships_); + } + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.Membership.Builder addMembershipsBuilder() { + return internalGetMembershipsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.Membership.Builder addMembershipsBuilder(int index) { + return internalGetMembershipsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of Memberships bound to the given Scope.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public java.util.List + getMembershipsBuilderList() { + return internalGetMembershipsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> + internalGetMembershipsFieldBuilder() { + if (membershipsBuilder_ == null) { + membershipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder>( + memberships_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + memberships_ = null; + } + return membershipsBuilder_; + } + + 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_ |= 0x00000002; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 2; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 2; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 2; + * + * @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); + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 2; + * + * @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); + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 2; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * A token to request the next page of resources from the
              +     * `ListBoundMemberships` method. The value of an empty string means that
              +     * there are no more resources to return.
              +     * 
              + * + * string next_page_token = 3; + * + * @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 to request the next page of resources from the
              +     * `ListBoundMemberships` method. The value of an empty string means that
              +     * there are no more resources to return.
              +     * 
              + * + * string next_page_token = 3; + * + * @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 to request the next page of resources from the
              +     * `ListBoundMemberships` method. The value of an empty string means that
              +     * there are no more resources to return.
              +     * 
              + * + * string next_page_token = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * A token to request the next page of resources from the
              +     * `ListBoundMemberships` method. The value of an empty string means that
              +     * there are no more resources to return.
              +     * 
              + * + * string next_page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * A token to request the next page of resources from the
              +     * `ListBoundMemberships` method. The value of an empty string means that
              +     * there are no more resources to return.
              +     * 
              + * + * string next_page_token = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + private static final com.google.cloud.gkehub.v1.ListBoundMembershipsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListBoundMembershipsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBoundMembershipsResponse 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.v1.ListBoundMembershipsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponseOrBuilder.java new file mode 100644 index 000000000000..fafb94d864e6 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListBoundMembershipsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + java.util.List getMembershipsList(); + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + com.google.cloud.gkehub.v1.Membership getMemberships(int index); + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + int getMembershipsCount(); + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + java.util.List + getMembershipsOrBuilderList(); + + /** + * + * + *
              +   * The list of Memberships bound to the given Scope.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + com.google.cloud.gkehub.v1.MembershipOrBuilder getMembershipsOrBuilder(int index); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 2; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 2; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 2; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 2; + * + * @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); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListBoundMemberships` method. The value of an empty string means that
              +   * there are no more resources to return.
              +   * 
              + * + * string next_page_token = 3; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListBoundMemberships` method. The value of an empty string means that
              +   * there are no more resources to return.
              +   * 
              + * + * string next_page_token = 3; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java index 9df1d041dc6d..5902a1f51f3b 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java @@ -344,6 +344,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 6; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
              +   * Optional. If set to true, the response will return partial results when
              +   * some regions are unreachable and the unreachable field in Feature proto
              +   * will be populated. If set to false, the request will fail when some regions
              +   * are unreachable.
              +   * 
              + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -373,6 +395,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); } + if (returnPartialSuccess_ != false) { + output.writeBool(6, returnPartialSuccess_); + } getUnknownFields().writeTo(output); } @@ -397,6 +422,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, returnPartialSuccess_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -418,6 +446,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -439,6 +468,8 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -584,6 +615,7 @@ public Builder clear() { pageToken_ = ""; filter_ = ""; orderBy_ = ""; + returnPartialSuccess_ = false; return this; } @@ -635,6 +667,9 @@ private void buildPartial0(com.google.cloud.gkehub.v1.ListFeaturesRequest result if (((from_bitField0_ & 0x00000010) != 0)) { result.orderBy_ = orderBy_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + } } @java.lang.Override @@ -672,6 +707,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFeaturesRequest other) { bitField0_ |= 0x00000010; onChanged(); } + if (other.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -728,6 +766,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1348,6 +1392,71 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } + private boolean returnPartialSuccess_; + + /** + * + * + *
              +     * Optional. If set to true, the response will return partial results when
              +     * some regions are unreachable and the unreachable field in Feature proto
              +     * will be populated. If set to false, the request will fail when some regions
              +     * are unreachable.
              +     * 
              + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
              +     * Optional. If set to true, the response will return partial results when
              +     * some regions are unreachable and the unreachable field in Feature proto
              +     * will be populated. If set to false, the request will fail when some regions
              +     * are unreachable.
              +     * 
              + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. If set to true, the response will return partial results when
              +     * some regions are unreachable and the unreachable field in Feature proto
              +     * will be populated. If set to false, the request will fail when some regions
              +     * are unreachable.
              +     * 
              + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000020); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFeaturesRequest) } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java index 5b10536c66a0..a36bc2864ad9 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java @@ -182,4 +182,20 @@ public interface ListFeaturesRequestOrBuilder * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
              +   * Optional. If set to true, the response will return partial results when
              +   * some regions are unreachable and the unreachable field in Feature proto
              +   * will be populated. If set to false, the request will fail when some regions
              +   * are unreachable.
              +   * 
              + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequest.java new file mode 100644 index 000000000000..804c23efef22 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequest.java @@ -0,0 +1,938 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request message for the `GkeHub.ListFleets` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListFleetsRequest} + */ +@com.google.protobuf.Generated +public final class ListFleetsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListFleetsRequest) + ListFleetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFleetsRequest"); + } + + // Use ListFleetsRequest.newBuilder() to construct. + private ListFleetsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFleetsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListFleetsRequest.class, + com.google.cloud.gkehub.v1.ListFleetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The organization or project to list for Fleets under, in the
              +   * format `organizations/*/locations/*` or `projects/*/locations/*`.
              +   * 
              + * + * + * 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 organization or project to list for Fleets under, in the
              +   * format `organizations/*/locations/*` or `projects/*/locations/*`.
              +   * 
              + * + * + * 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_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
              +   * Optional. A page token, received from a previous `ListFleets` call.
              +   * Provide this to retrieve the subsequent page.
              +   *
              +   * When paginating, all other parameters provided to `ListFleets` must match
              +   * the call that provided the page token.
              +   * 
              + * + * string page_token = 2 [(.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 page token, received from a previous `ListFleets` call.
              +   * Provide this to retrieve the subsequent page.
              +   *
              +   * When paginating, all other parameters provided to `ListFleets` must match
              +   * the call that provided the page token.
              +   * 
              + * + * string page_token = 2 [(.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 PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
              +   * Optional. The maximum number of fleets to return. The service may return
              +   * fewer than this value. If unspecified, at most 200 fleets will be returned.
              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +   * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + 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.v1.ListFleetsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListFleetsRequest other = + (com.google.cloud.gkehub.v1.ListFleetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) 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_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest 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.v1.ListFleetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest 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.v1.ListFleetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListFleetsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for the `GkeHub.ListFleets` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListFleetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListFleetsRequest) + com.google.cloud.gkehub.v1.ListFleetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListFleetsRequest.class, + com.google.cloud.gkehub.v1.ListFleetsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListFleetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListFleetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsRequest build() { + com.google.cloud.gkehub.v1.ListFleetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListFleetsRequest result = + new com.google.cloud.gkehub.v1.ListFleetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListFleetsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListFleetsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListFleetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFleetsRequest other) { + if (other == com.google.cloud.gkehub.v1.ListFleetsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + 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: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = 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 parent_ = ""; + + /** + * + * + *
              +     * Required. The organization or project to list for Fleets under, in the
              +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
              +     * 
              + * + * + * 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 organization or project to list for Fleets under, in the
              +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
              +     * 
              + * + * + * 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 organization or project to list for Fleets under, in the
              +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
              +     * 
              + * + * + * 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 organization or project to list for Fleets under, in the
              +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
              +     * 
              + * + * + * 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 organization or project to list for Fleets under, in the
              +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
              +     * 
              + * + * + * 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 pageToken_ = ""; + + /** + * + * + *
              +     * Optional. A page token, received from a previous `ListFleets` call.
              +     * Provide this to retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to `ListFleets` must match
              +     * the call that provided the page token.
              +     * 
              + * + * string page_token = 2 [(.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 page token, received from a previous `ListFleets` call.
              +     * Provide this to retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to `ListFleets` must match
              +     * the call that provided the page token.
              +     * 
              + * + * string page_token = 2 [(.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 page token, received from a previous `ListFleets` call.
              +     * Provide this to retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to `ListFleets` must match
              +     * the call that provided the page token.
              +     * 
              + * + * string page_token = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous `ListFleets` call.
              +     * Provide this to retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to `ListFleets` must match
              +     * the call that provided the page token.
              +     * 
              + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous `ListFleets` call.
              +     * Provide this to retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to `ListFleets` must match
              +     * the call that provided the page token.
              +     * 
              + * + * string page_token = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
              +     * Optional. The maximum number of fleets to return. The service may return
              +     * fewer than this value. If unspecified, at most 200 fleets will be returned.
              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +     * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. The maximum number of fleets to return. The service may return
              +     * fewer than this value. If unspecified, at most 200 fleets will be returned.
              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +     * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The maximum number of fleets to return. The service may return
              +     * fewer than this value. If unspecified, at most 200 fleets will be returned.
              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +     * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFleetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListFleetsRequest) + private static final com.google.cloud.gkehub.v1.ListFleetsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListFleetsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFleetsRequest 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.v1.ListFleetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequestOrBuilder.java new file mode 100644 index 000000000000..ed00bb4338af --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListFleetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListFleetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The organization or project to list for Fleets under, in the
              +   * format `organizations/*/locations/*` or `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The organization or project to list for Fleets under, in the
              +   * format `organizations/*/locations/*` or `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Optional. A page token, received from a previous `ListFleets` call.
              +   * Provide this to retrieve the subsequent page.
              +   *
              +   * When paginating, all other parameters provided to `ListFleets` must match
              +   * the call that provided the page token.
              +   * 
              + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. A page token, received from a previous `ListFleets` call.
              +   * Provide this to retrieve the subsequent page.
              +   *
              +   * When paginating, all other parameters provided to `ListFleets` must match
              +   * the call that provided the page token.
              +   * 
              + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
              +   * Optional. The maximum number of fleets to return. The service may return
              +   * fewer than this value. If unspecified, at most 200 fleets will be returned.
              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +   * 
              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponse.java new file mode 100644 index 000000000000..03d1a42b0b4c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponse.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Response message for the `GkeHub.ListFleetsResponse` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListFleetsResponse} + */ +@com.google.protobuf.Generated +public final class ListFleetsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListFleetsResponse) + ListFleetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFleetsResponse"); + } + + // Use ListFleetsResponse.newBuilder() to construct. + private ListFleetsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFleetsResponse() { + fleets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListFleetsResponse.class, + com.google.cloud.gkehub.v1.ListFleetsResponse.Builder.class); + } + + public static final int FLEETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List fleets_; + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public java.util.List getFleetsList() { + return fleets_; + } + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public java.util.List + getFleetsOrBuilderList() { + return fleets_; + } + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public int getFleetsCount() { + return fleets_.size(); + } + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet getFleets(int index) { + return fleets_.get(index); + } + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetsOrBuilder(int index) { + return fleets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * A token, which can be sent as `page_token` to retrieve the next page.
              +   * If this field is omitted, there are no subsequent pages.
              +   * The token is only valid for 1h.
              +   * 
              + * + * 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, which can be sent as `page_token` to retrieve the next page.
              +   * If this field is omitted, there are no subsequent pages.
              +   * The token is only valid for 1h.
              +   * 
              + * + * 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; + } + } + + 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 < fleets_.size(); i++) { + output.writeMessage(1, fleets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fleets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fleets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.v1.ListFleetsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListFleetsResponse other = + (com.google.cloud.gkehub.v1.ListFleetsResponse) obj; + + if (!getFleetsList().equals(other.getFleetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getFleetsCount() > 0) { + hash = (37 * hash) + FLEETS_FIELD_NUMBER; + hash = (53 * hash) + getFleetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse 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.v1.ListFleetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse 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.v1.ListFleetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListFleetsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Response message for the `GkeHub.ListFleetsResponse` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListFleetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListFleetsResponse) + com.google.cloud.gkehub.v1.ListFleetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListFleetsResponse.class, + com.google.cloud.gkehub.v1.ListFleetsResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListFleetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fleetsBuilder_ == null) { + fleets_ = java.util.Collections.emptyList(); + } else { + fleets_ = null; + fleetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListFleetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsResponse build() { + com.google.cloud.gkehub.v1.ListFleetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListFleetsResponse result = + new com.google.cloud.gkehub.v1.ListFleetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.gkehub.v1.ListFleetsResponse result) { + if (fleetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fleets_ = java.util.Collections.unmodifiableList(fleets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fleets_ = fleets_; + } else { + result.fleets_ = fleetsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListFleetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListFleetsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListFleetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFleetsResponse other) { + if (other == com.google.cloud.gkehub.v1.ListFleetsResponse.getDefaultInstance()) return this; + if (fleetsBuilder_ == null) { + if (!other.fleets_.isEmpty()) { + if (fleets_.isEmpty()) { + fleets_ = other.fleets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFleetsIsMutable(); + fleets_.addAll(other.fleets_); + } + onChanged(); + } + } else { + if (!other.fleets_.isEmpty()) { + if (fleetsBuilder_.isEmpty()) { + fleetsBuilder_.dispose(); + fleetsBuilder_ = null; + fleets_ = other.fleets_; + bitField0_ = (bitField0_ & ~0x00000001); + fleetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFleetsFieldBuilder() + : null; + } else { + fleetsBuilder_.addAllMessages(other.fleets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.gkehub.v1.Fleet m = + input.readMessage(com.google.cloud.gkehub.v1.Fleet.parser(), extensionRegistry); + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.add(m); + } else { + fleetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List fleets_ = + java.util.Collections.emptyList(); + + private void ensureFleetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fleets_ = new java.util.ArrayList(fleets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + fleetsBuilder_; + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public java.util.List getFleetsList() { + if (fleetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fleets_); + } else { + return fleetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public int getFleetsCount() { + if (fleetsBuilder_ == null) { + return fleets_.size(); + } else { + return fleetsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.Fleet getFleets(int index) { + if (fleetsBuilder_ == null) { + return fleets_.get(index); + } else { + return fleetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder setFleets(int index, com.google.cloud.gkehub.v1.Fleet value) { + if (fleetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetsIsMutable(); + fleets_.set(index, value); + onChanged(); + } else { + fleetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder setFleets(int index, com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.set(index, builderForValue.build()); + onChanged(); + } else { + fleetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addFleets(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetsIsMutable(); + fleets_.add(value); + onChanged(); + } else { + fleetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addFleets(int index, com.google.cloud.gkehub.v1.Fleet value) { + if (fleetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetsIsMutable(); + fleets_.add(index, value); + onChanged(); + } else { + fleetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addFleets(com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.add(builderForValue.build()); + onChanged(); + } else { + fleetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addFleets(int index, com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.add(index, builderForValue.build()); + onChanged(); + } else { + fleetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addAllFleets( + java.lang.Iterable values) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fleets_); + onChanged(); + } else { + fleetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder clearFleets() { + if (fleetsBuilder_ == null) { + fleets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fleetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder removeFleets(int index) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.remove(index); + onChanged(); + } else { + fleetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.Fleet.Builder getFleetsBuilder(int index) { + return internalGetFleetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetsOrBuilder(int index) { + if (fleetsBuilder_ == null) { + return fleets_.get(index); + } else { + return fleetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public java.util.List + getFleetsOrBuilderList() { + if (fleetsBuilder_ != null) { + return fleetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fleets_); + } + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.Fleet.Builder addFleetsBuilder() { + return internalGetFleetsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Fleet.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.Fleet.Builder addFleetsBuilder(int index) { + return internalGetFleetsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Fleet.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of matching fleets.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public java.util.List getFleetsBuilderList() { + return internalGetFleetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + internalGetFleetsFieldBuilder() { + if (fleetsBuilder_ == null) { + fleetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder>( + fleets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + fleets_ = null; + } + return fleetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * A token, which can be sent as `page_token` to retrieve the next page.
              +     * If this field is omitted, there are no subsequent pages.
              +     * The token is only valid for 1h.
              +     * 
              + * + * 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, which can be sent as `page_token` to retrieve the next page.
              +     * If this field is omitted, there are no subsequent pages.
              +     * The token is only valid for 1h.
              +     * 
              + * + * 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, which can be sent as `page_token` to retrieve the next page.
              +     * If this field is omitted, there are no subsequent pages.
              +     * The token is only valid for 1h.
              +     * 
              + * + * 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, which can be sent as `page_token` to retrieve the next page.
              +     * If this field is omitted, there are no subsequent pages.
              +     * The token is only valid for 1h.
              +     * 
              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * A token, which can be sent as `page_token` to retrieve the next page.
              +     * If this field is omitted, there are no subsequent pages.
              +     * The token is only valid for 1h.
              +     * 
              + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFleetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListFleetsResponse) + private static final com.google.cloud.gkehub.v1.ListFleetsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListFleetsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFleetsResponse 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.v1.ListFleetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponseOrBuilder.java new file mode 100644 index 000000000000..3172c0bf4c81 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListFleetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListFleetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + java.util.List getFleetsList(); + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + com.google.cloud.gkehub.v1.Fleet getFleets(int index); + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + int getFleetsCount(); + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + java.util.List getFleetsOrBuilderList(); + + /** + * + * + *
              +   * The list of matching fleets.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + com.google.cloud.gkehub.v1.FleetOrBuilder getFleetsOrBuilder(int index); + + /** + * + * + *
              +   * A token, which can be sent as `page_token` to retrieve the next page.
              +   * If this field is omitted, there are no subsequent pages.
              +   * The token is only valid for 1h.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * A token, which can be sent as `page_token` to retrieve the next page.
              +   * If this field is omitted, there are no subsequent pages.
              +   * The token is only valid for 1h.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequest.java new file mode 100644 index 000000000000..7ec4ee5ccb74 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequest.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to list MembershipBinding.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipBindingsRequest} + */ +@com.google.protobuf.Generated +public final class ListMembershipBindingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + ListMembershipBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMembershipBindingsRequest"); + } + + // Use ListMembershipBindingsRequest.newBuilder() to construct. + private ListMembershipBindingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMembershipBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent Membership for which the MembershipBindings will be
              +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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 Membership for which the MembershipBindings will be
              +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * 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. Token returned by previous call to `ListMembershipBindings` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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. Token returned by previous call to `ListMembershipBindings` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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. Lists MembershipBindings that match the filter expression,
              +   * following the syntax outlined in 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. Lists MembershipBindings that match the filter expression,
              +   * following the syntax outlined in 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; + } + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + 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.v1.ListMembershipBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest other = + (com.google.cloud.gkehub.v1.ListMembershipBindingsRequest) 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 (!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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest 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.v1.ListMembershipBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest 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.v1.ListMembershipBindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListMembershipBindingsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to list MembershipBinding.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + com.google.cloud.gkehub.v1.ListMembershipBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsRequest build() { + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest result = + new com.google.cloud.gkehub.v1.ListMembershipBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListMembershipBindingsRequest 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_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListMembershipBindingsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipBindingsRequest other) { + if (other == com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.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(); + } + 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 + 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 Membership for which the MembershipBindings will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 Membership for which the MembershipBindings will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 Membership for which the MembershipBindings will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 Membership for which the MembershipBindings will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 Membership for which the MembershipBindings will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. Token returned by previous call to `ListMembershipBindings` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListMembershipBindings` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListMembershipBindings` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListMembershipBindings` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListMembershipBindings` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Lists MembershipBindings that match the filter expression,
              +     * following the syntax outlined in 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. Lists MembershipBindings that match the filter expression,
              +     * following the syntax outlined in 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. Lists MembershipBindings that match the filter expression,
              +     * following the syntax outlined in 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. Lists MembershipBindings that match the filter expression,
              +     * following the syntax outlined in 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. Lists MembershipBindings that match the filter expression,
              +     * following the syntax outlined in 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + private static final com.google.cloud.gkehub.v1.ListMembershipBindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipBindingsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipBindingsRequest 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.v1.ListMembershipBindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..0316ed4a38af --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListMembershipBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent Membership for which the MembershipBindings will be
              +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent Membership for which the MembershipBindings will be
              +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Optional. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListMembershipBindings` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListMembershipBindings` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
              +   * Optional. Lists MembershipBindings that match the filter expression,
              +   * following the syntax outlined in https://google.aip.dev/160.
              +   * 
              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
              +   * Optional. Lists MembershipBindings that match the filter expression,
              +   * following the syntax outlined in https://google.aip.dev/160.
              +   * 
              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponse.java new file mode 100644 index 000000000000..a80d3e551e39 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponse.java @@ -0,0 +1,1430 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * List of MembershipBindings.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipBindingsResponse} + */ +@com.google.protobuf.Generated +public final class ListMembershipBindingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + ListMembershipBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMembershipBindingsResponse"); + } + + // Use ListMembershipBindingsResponse.newBuilder() to construct. + private ListMembershipBindingsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMembershipBindingsResponse() { + membershipBindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.Builder.class); + } + + public static final int MEMBERSHIP_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List membershipBindings_; + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public java.util.List getMembershipBindingsList() { + return membershipBindings_; + } + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public java.util.List + getMembershipBindingsOrBuilderList() { + return membershipBindings_; + } + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public int getMembershipBindingsCount() { + return membershipBindings_.size(); + } + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBindings(int index) { + return membershipBindings_.get(index); + } + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingsOrBuilder( + int index) { + return membershipBindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListMembershipBindings` method. The value of an empty string means
              +   * that there are no more resources to 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 to request the next page of resources from the
              +   * `ListMembershipBindings` method. The value of an empty string means
              +   * that there are no more resources to 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(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * 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); + } + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * 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 < membershipBindings_.size(); i++) { + output.writeMessage(1, membershipBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < membershipBindings_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, membershipBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.ListMembershipBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse other = + (com.google.cloud.gkehub.v1.ListMembershipBindingsResponse) obj; + + if (!getMembershipBindingsList().equals(other.getMembershipBindingsList())) 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 (getMembershipBindingsCount() > 0) { + hash = (37 * hash) + MEMBERSHIP_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBindingsList().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.gkehub.v1.ListMembershipBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse 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.v1.ListMembershipBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse 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.v1.ListMembershipBindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListMembershipBindingsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * List of MembershipBindings.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + com.google.cloud.gkehub.v1.ListMembershipBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membershipBindingsBuilder_ == null) { + membershipBindings_ = java.util.Collections.emptyList(); + } else { + membershipBindings_ = null; + membershipBindingsBuilder_.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse build() { + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse result = + new com.google.cloud.gkehub.v1.ListMembershipBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse result) { + if (membershipBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + membershipBindings_ = java.util.Collections.unmodifiableList(membershipBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.membershipBindings_ = membershipBindings_; + } else { + result.membershipBindings_ = membershipBindingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListMembershipBindingsResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListMembershipBindingsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipBindingsResponse other) { + if (other == com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.getDefaultInstance()) + return this; + if (membershipBindingsBuilder_ == null) { + if (!other.membershipBindings_.isEmpty()) { + if (membershipBindings_.isEmpty()) { + membershipBindings_ = other.membershipBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembershipBindingsIsMutable(); + membershipBindings_.addAll(other.membershipBindings_); + } + onChanged(); + } + } else { + if (!other.membershipBindings_.isEmpty()) { + if (membershipBindingsBuilder_.isEmpty()) { + membershipBindingsBuilder_.dispose(); + membershipBindingsBuilder_ = null; + membershipBindings_ = other.membershipBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + membershipBindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMembershipBindingsFieldBuilder() + : null; + } else { + membershipBindingsBuilder_.addAllMessages(other.membershipBindings_); + } + } + } + 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.gkehub.v1.MembershipBinding m = + input.readMessage( + com.google.cloud.gkehub.v1.MembershipBinding.parser(), extensionRegistry); + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(m); + } else { + membershipBindingsBuilder_.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 membershipBindings_ = + java.util.Collections.emptyList(); + + private void ensureMembershipBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + membershipBindings_ = + new java.util.ArrayList( + membershipBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + membershipBindingsBuilder_; + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public java.util.List + getMembershipBindingsList() { + if (membershipBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(membershipBindings_); + } else { + return membershipBindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public int getMembershipBindingsCount() { + if (membershipBindingsBuilder_ == null) { + return membershipBindings_.size(); + } else { + return membershipBindingsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBindings(int index) { + if (membershipBindingsBuilder_ == null) { + return membershipBindings_.get(index); + } else { + return membershipBindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder setMembershipBindings( + int index, com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipBindingsIsMutable(); + membershipBindings_.set(index, value); + onChanged(); + } else { + membershipBindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder setMembershipBindings( + int index, com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + membershipBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addMembershipBindings(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(value); + onChanged(); + } else { + membershipBindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addMembershipBindings( + int index, com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(index, value); + onChanged(); + } else { + membershipBindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addMembershipBindings( + com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(builderForValue.build()); + onChanged(); + } else { + membershipBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addMembershipBindings( + int index, com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + membershipBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addAllMembershipBindings( + java.lang.Iterable values) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, membershipBindings_); + onChanged(); + } else { + membershipBindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder clearMembershipBindings() { + if (membershipBindingsBuilder_ == null) { + membershipBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membershipBindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder removeMembershipBindings(int index) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.remove(index); + onChanged(); + } else { + membershipBindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder getMembershipBindingsBuilder( + int index) { + return internalGetMembershipBindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingsOrBuilder( + int index) { + if (membershipBindingsBuilder_ == null) { + return membershipBindings_.get(index); + } else { + return membershipBindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public java.util.List + getMembershipBindingsOrBuilderList() { + if (membershipBindingsBuilder_ != null) { + return membershipBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(membershipBindings_); + } + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder addMembershipBindingsBuilder() { + return internalGetMembershipBindingsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder addMembershipBindingsBuilder( + int index) { + return internalGetMembershipBindingsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of membership_bindings
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public java.util.List + getMembershipBindingsBuilderList() { + return internalGetMembershipBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + internalGetMembershipBindingsFieldBuilder() { + if (membershipBindingsBuilder_ == null) { + membershipBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder>( + membershipBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + membershipBindings_ = null; + } + return membershipBindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * A token to request the next page of resources from the
              +     * `ListMembershipBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListMembershipBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListMembershipBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListMembershipBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListMembershipBindings` method. The value of an empty string means
              +     * that there are no more resources to 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; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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); + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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); + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + private static final com.google.cloud.gkehub.v1.ListMembershipBindingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipBindingsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipBindingsResponse 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.v1.ListMembershipBindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..f3b49d994f1e --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListMembershipBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + java.util.List getMembershipBindingsList(); + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + com.google.cloud.gkehub.v1.MembershipBinding getMembershipBindings(int index); + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + int getMembershipBindingsCount(); + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + java.util.List + getMembershipBindingsOrBuilderList(); + + /** + * + * + *
              +   * The list of membership_bindings
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingsOrBuilder(int index); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListMembershipBindings` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListMembershipBindings` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * 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); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequest.java new file mode 100644 index 000000000000..2ea808f33a4c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequest.java @@ -0,0 +1,935 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to list Membership RBACRoleBindings.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest} + */ +@com.google.protobuf.Generated +public final class ListMembershipRBACRoleBindingsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + ListMembershipRBACRoleBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMembershipRBACRoleBindingsRequest"); + } + + // Use ListMembershipRBACRoleBindingsRequest.newBuilder() to construct. + private ListMembershipRBACRoleBindingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMembershipRBACRoleBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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 (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * 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. Token returned by previous call to
              +   * `ListMembershipRBACRoleBindings` which specifies the position in the list
              +   * from where to continue listing the resources.
              +   * 
              + * + * 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. Token returned by previous call to
              +   * `ListMembershipRBACRoleBindings` which specifies the position in the list
              +   * from where to continue listing the resources.
              +   * 
              + * + * 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; + } + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.v1.ListMembershipRBACRoleBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest other = + (com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest 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.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest 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.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListMembershipRBACRoleBindingsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to list Membership RBACRoleBindings.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest build() { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest result = + new com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest 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_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest other) { + if (other + == com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.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(); + } + 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 + 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +     * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. Token returned by previous call to
              +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
              +     * from where to continue listing the resources.
              +     * 
              + * + * 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. Token returned by previous call to
              +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
              +     * from where to continue listing the resources.
              +     * 
              + * + * 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. Token returned by previous call to
              +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
              +     * from where to continue listing the resources.
              +     * 
              + * + * 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. Token returned by previous call to
              +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
              +     * from where to continue listing the resources.
              +     * 
              + * + * 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. Token returned by previous call to
              +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
              +     * from where to continue listing the resources.
              +     * 
              + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + private static final com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipRBACRoleBindingsRequest 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.v1.ListMembershipRBACRoleBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..e152268889e0 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListMembershipRBACRoleBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Optional. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to
              +   * `ListMembershipRBACRoleBindings` which specifies the position in the list
              +   * from where to continue listing the resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to
              +   * `ListMembershipRBACRoleBindings` which specifies the position in the list
              +   * from where to continue listing the resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponse.java new file mode 100644 index 000000000000..79af74026233 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponse.java @@ -0,0 +1,1438 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * List of Membership RBACRoleBindings.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse} + */ +@com.google.protobuf.Generated +public final class ListMembershipRBACRoleBindingsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + ListMembershipRBACRoleBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMembershipRBACRoleBindingsResponse"); + } + + // Use ListMembershipRBACRoleBindingsResponse.newBuilder() to construct. + private ListMembershipRBACRoleBindingsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMembershipRBACRoleBindingsResponse() { + rbacrolebindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.Builder.class); + } + + public static final int RBACROLEBINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List rbacrolebindings_; + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public java.util.List getRbacrolebindingsList() { + return rbacrolebindings_; + } + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public java.util.List + getRbacrolebindingsOrBuilderList() { + return rbacrolebindings_; + } + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public int getRbacrolebindingsCount() { + return rbacrolebindings_.size(); + } + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index) { + return rbacrolebindings_.get(index); + } + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder( + int index) { + return rbacrolebindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListMembershipRBACRoleBindings` method. The value of an empty string means
              +   * that there are no more resources to 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 to request the next page of resources from the
              +   * `ListMembershipRBACRoleBindings` method. The value of an empty string means
              +   * that there are no more resources to 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(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * 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); + } + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * 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 < rbacrolebindings_.size(); i++) { + output.writeMessage(1, rbacrolebindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < rbacrolebindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rbacrolebindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.gkehub.v1.ListMembershipRBACRoleBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse other = + (com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) obj; + + if (!getRbacrolebindingsList().equals(other.getRbacrolebindingsList())) 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 (getRbacrolebindingsCount() > 0) { + hash = (37 * hash) + RBACROLEBINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingsList().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.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse 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.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse 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.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListMembershipRBACRoleBindingsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * List of Membership RBACRoleBindings.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindings_ = java.util.Collections.emptyList(); + } else { + rbacrolebindings_ = null; + rbacrolebindingsBuilder_.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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse build() { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse result = + new com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse result) { + if (rbacrolebindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rbacrolebindings_ = java.util.Collections.unmodifiableList(rbacrolebindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rbacrolebindings_ = rbacrolebindings_; + } else { + result.rbacrolebindings_ = rbacrolebindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse other) { + if (other + == com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.getDefaultInstance()) + return this; + if (rbacrolebindingsBuilder_ == null) { + if (!other.rbacrolebindings_.isEmpty()) { + if (rbacrolebindings_.isEmpty()) { + rbacrolebindings_ = other.rbacrolebindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.addAll(other.rbacrolebindings_); + } + onChanged(); + } + } else { + if (!other.rbacrolebindings_.isEmpty()) { + if (rbacrolebindingsBuilder_.isEmpty()) { + rbacrolebindingsBuilder_.dispose(); + rbacrolebindingsBuilder_ = null; + rbacrolebindings_ = other.rbacrolebindings_; + bitField0_ = (bitField0_ & ~0x00000001); + rbacrolebindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRbacrolebindingsFieldBuilder() + : null; + } else { + rbacrolebindingsBuilder_.addAllMessages(other.rbacrolebindings_); + } + } + } + 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.gkehub.v1.RBACRoleBinding m = + input.readMessage( + com.google.cloud.gkehub.v1.RBACRoleBinding.parser(), extensionRegistry); + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(m); + } else { + rbacrolebindingsBuilder_.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 rbacrolebindings_ = + java.util.Collections.emptyList(); + + private void ensureRbacrolebindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rbacrolebindings_ = + new java.util.ArrayList(rbacrolebindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingsBuilder_; + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List getRbacrolebindingsList() { + if (rbacrolebindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rbacrolebindings_); + } else { + return rbacrolebindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public int getRbacrolebindingsCount() { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.size(); + } else { + return rbacrolebindingsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index) { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.get(index); + } else { + return rbacrolebindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder setRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.set(index, value); + onChanged(); + } else { + rbacrolebindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder setRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.set(index, builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(value); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(index, value); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(index, builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addAllRbacrolebindings( + java.lang.Iterable values) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rbacrolebindings_); + onChanged(); + } else { + rbacrolebindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder clearRbacrolebindings() { + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rbacrolebindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder removeRbacrolebindings(int index) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.remove(index); + onChanged(); + } else { + rbacrolebindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingsBuilder( + int index) { + return internalGetRbacrolebindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder( + int index) { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.get(index); + } else { + return rbacrolebindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List + getRbacrolebindingsOrBuilderList() { + if (rbacrolebindingsBuilder_ != null) { + return rbacrolebindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rbacrolebindings_); + } + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder addRbacrolebindingsBuilder() { + return internalGetRbacrolebindingsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder addRbacrolebindingsBuilder( + int index) { + return internalGetRbacrolebindingsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of Membership RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List + getRbacrolebindingsBuilderList() { + return internalGetRbacrolebindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingsFieldBuilder() { + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + rbacrolebindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rbacrolebindings_ = null; + } + return rbacrolebindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * A token to request the next page of resources from the
              +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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); + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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); + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +     * List of locations that could not be reached while fetching this list.
              +     * 
              + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + private static final com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipRBACRoleBindingsResponse 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.v1.ListMembershipRBACRoleBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..905b36a313e1 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListMembershipRBACRoleBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + java.util.List getRbacrolebindingsList(); + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index); + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + int getRbacrolebindingsCount(); + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + java.util.List + getRbacrolebindingsOrBuilderList(); + + /** + * + * + *
              +   * The list of Membership RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder(int index); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListMembershipRBACRoleBindings` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListMembershipRBACRoleBindings` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * 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); + + /** + * + * + *
              +   * List of locations that could not be reached while fetching this list.
              +   * 
              + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequest.java new file mode 100644 index 000000000000..0b36ce7c0010 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequest.java @@ -0,0 +1,926 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to list permitted Scopes.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListPermittedScopesRequest} + */ +@com.google.protobuf.Generated +public final class ListPermittedScopesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListPermittedScopesRequest) + ListPermittedScopesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListPermittedScopesRequest"); + } + + // Use ListPermittedScopesRequest.newBuilder() to construct. + private ListPermittedScopesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListPermittedScopesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest.class, + com.google.cloud.gkehub.v1.ListPermittedScopesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the Scope will be listed.
              +   * Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +   * Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * 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. Token returned by previous call to `ListPermittedScopes` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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. Token returned by previous call to `ListPermittedScopes` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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; + } + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.v1.ListPermittedScopesRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListPermittedScopesRequest other = + (com.google.cloud.gkehub.v1.ListPermittedScopesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest 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.v1.ListPermittedScopesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest 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.v1.ListPermittedScopesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListPermittedScopesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to list permitted Scopes.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListPermittedScopesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListPermittedScopesRequest) + com.google.cloud.gkehub.v1.ListPermittedScopesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest.class, + com.google.cloud.gkehub.v1.ListPermittedScopesRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListPermittedScopesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListPermittedScopesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesRequest build() { + com.google.cloud.gkehub.v1.ListPermittedScopesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesRequest buildPartial() { + com.google.cloud.gkehub.v1.ListPermittedScopesRequest result = + new com.google.cloud.gkehub.v1.ListPermittedScopesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListPermittedScopesRequest 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_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListPermittedScopesRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListPermittedScopesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListPermittedScopesRequest other) { + if (other == com.google.cloud.gkehub.v1.ListPermittedScopesRequest.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(); + } + 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 + 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. Token returned by previous call to `ListPermittedScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListPermittedScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListPermittedScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListPermittedScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListPermittedScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListPermittedScopesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListPermittedScopesRequest) + private static final com.google.cloud.gkehub.v1.ListPermittedScopesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListPermittedScopesRequest(); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPermittedScopesRequest 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.v1.ListPermittedScopesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequestOrBuilder.java new file mode 100644 index 000000000000..84ee6f7b43a2 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListPermittedScopesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListPermittedScopesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the Scope will be listed.
              +   * Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the Scope will be listed.
              +   * Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Optional. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListPermittedScopes` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListPermittedScopes` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponse.java new file mode 100644 index 000000000000..e06a30728b30 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponse.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * List of permitted Scopes.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListPermittedScopesResponse} + */ +@com.google.protobuf.Generated +public final class ListPermittedScopesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListPermittedScopesResponse) + ListPermittedScopesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListPermittedScopesResponse"); + } + + // Use ListPermittedScopesResponse.newBuilder() to construct. + private ListPermittedScopesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListPermittedScopesResponse() { + scopes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListPermittedScopesResponse.class, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse.Builder.class); + } + + public static final int SCOPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List scopes_; + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public java.util.List getScopesList() { + return scopes_; + } + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public java.util.List + getScopesOrBuilderList() { + return scopes_; + } + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index) { + return scopes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListPermittedScopes` method. The value of an empty string means
              +   * that there are no more resources to 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 to request the next page of resources from the
              +   * `ListPermittedScopes` method. The value of an empty string means
              +   * that there are no more resources to 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; + } + } + + 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 < scopes_.size(); i++) { + output.writeMessage(1, scopes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < scopes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scopes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.v1.ListPermittedScopesResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListPermittedScopesResponse other = + (com.google.cloud.gkehub.v1.ListPermittedScopesResponse) obj; + + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse 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.v1.ListPermittedScopesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse 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.v1.ListPermittedScopesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListPermittedScopesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * List of permitted Scopes.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListPermittedScopesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListPermittedScopesResponse) + com.google.cloud.gkehub.v1.ListPermittedScopesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListPermittedScopesResponse.class, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListPermittedScopesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (scopesBuilder_ == null) { + scopes_ = java.util.Collections.emptyList(); + } else { + scopes_ = null; + scopesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListPermittedScopesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse build() { + com.google.cloud.gkehub.v1.ListPermittedScopesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse buildPartial() { + com.google.cloud.gkehub.v1.ListPermittedScopesResponse result = + new com.google.cloud.gkehub.v1.ListPermittedScopesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListPermittedScopesResponse result) { + if (scopesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + scopes_ = java.util.Collections.unmodifiableList(scopes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.scopes_ = scopes_; + } else { + result.scopes_ = scopesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListPermittedScopesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListPermittedScopesResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListPermittedScopesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListPermittedScopesResponse other) { + if (other == com.google.cloud.gkehub.v1.ListPermittedScopesResponse.getDefaultInstance()) + return this; + if (scopesBuilder_ == null) { + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + } else { + if (!other.scopes_.isEmpty()) { + if (scopesBuilder_.isEmpty()) { + scopesBuilder_.dispose(); + scopesBuilder_ = null; + scopes_ = other.scopes_; + bitField0_ = (bitField0_ & ~0x00000001); + scopesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetScopesFieldBuilder() + : null; + } else { + scopesBuilder_.addAllMessages(other.scopes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.gkehub.v1.Scope m = + input.readMessage(com.google.cloud.gkehub.v1.Scope.parser(), extensionRegistry); + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(m); + } else { + scopesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List scopes_ = + java.util.Collections.emptyList(); + + private void ensureScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + scopes_ = new java.util.ArrayList(scopes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + scopesBuilder_; + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List getScopesList() { + if (scopesBuilder_ == null) { + return java.util.Collections.unmodifiableList(scopes_); + } else { + return scopesBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public int getScopesCount() { + if (scopesBuilder_ == null) { + return scopes_.size(); + } else { + return scopesBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope getScopes(int index) { + if (scopesBuilder_ == null) { + return scopes_.get(index); + } else { + return scopesBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder setScopes(int index, com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + onChanged(); + } else { + scopesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder setScopes(int index, com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.set(index, builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + onChanged(); + } else { + scopesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(int index, com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(index, value); + onChanged(); + } else { + scopesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(int index, com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(index, builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addAllScopes( + java.lang.Iterable values) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + onChanged(); + } else { + scopesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder clearScopes() { + if (scopesBuilder_ == null) { + scopes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + scopesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder removeScopes(int index) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.remove(index); + onChanged(); + } else { + scopesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder getScopesBuilder(int index) { + return internalGetScopesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index) { + if (scopesBuilder_ == null) { + return scopes_.get(index); + } else { + return scopesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List + getScopesOrBuilderList() { + if (scopesBuilder_ != null) { + return scopesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scopes_); + } + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder addScopesBuilder() { + return internalGetScopesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Scope.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder addScopesBuilder(int index) { + return internalGetScopesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Scope.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of permitted Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List getScopesBuilderList() { + return internalGetScopesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + internalGetScopesFieldBuilder() { + if (scopesBuilder_ == null) { + scopesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder>( + scopes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scopes_ = null; + } + return scopesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * A token to request the next page of resources from the
              +     * `ListPermittedScopes` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListPermittedScopes` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListPermittedScopes` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListPermittedScopes` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListPermittedScopes` method. The value of an empty string means
              +     * that there are no more resources to 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListPermittedScopesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListPermittedScopesResponse) + private static final com.google.cloud.gkehub.v1.ListPermittedScopesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListPermittedScopesResponse(); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPermittedScopesResponse 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.v1.ListPermittedScopesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponseOrBuilder.java new file mode 100644 index 000000000000..bca21c8d07c5 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListPermittedScopesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListPermittedScopesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + java.util.List getScopesList(); + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + com.google.cloud.gkehub.v1.Scope getScopes(int index); + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + int getScopesCount(); + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + java.util.List getScopesOrBuilderList(); + + /** + * + * + *
              +   * The list of permitted Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListPermittedScopes` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListPermittedScopes` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequest.java new file mode 100644 index 000000000000..d74cbe2ae0d3 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequest.java @@ -0,0 +1,926 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to list fleet namespaces.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeNamespacesRequest} + */ +@com.google.protobuf.Generated +public final class ListScopeNamespacesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + ListScopeNamespacesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopeNamespacesRequest"); + } + + // Use ListScopeNamespacesRequest.newBuilder() to construct. + private ListScopeNamespacesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopeNamespacesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.class, + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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 (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * 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. Token returned by previous call to `ListFeatures` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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. Token returned by previous call to `ListFeatures` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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; + } + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.v1.ListScopeNamespacesRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest other = + (com.google.cloud.gkehub.v1.ListScopeNamespacesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest 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.v1.ListScopeNamespacesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest 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.v1.ListScopeNamespacesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListScopeNamespacesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to list fleet namespaces.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeNamespacesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + com.google.cloud.gkehub.v1.ListScopeNamespacesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.class, + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesRequest build() { + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesRequest buildPartial() { + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest result = + new com.google.cloud.gkehub.v1.ListScopeNamespacesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopeNamespacesRequest 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_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopeNamespacesRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopeNamespacesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopeNamespacesRequest other) { + if (other == com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.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(); + } + 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 + 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. Token returned by previous call to `ListFeatures` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListFeatures` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListFeatures` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListFeatures` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListFeatures` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + private static final com.google.cloud.gkehub.v1.ListScopeNamespacesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopeNamespacesRequest(); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopeNamespacesRequest 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.v1.ListScopeNamespacesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequestOrBuilder.java new file mode 100644 index 000000000000..279bb553ad63 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopeNamespacesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Optional. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListFeatures` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListFeatures` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponse.java new file mode 100644 index 000000000000..884d0b8de2ce --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponse.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * List of fleet namespaces.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeNamespacesResponse} + */ +@com.google.protobuf.Generated +public final class ListScopeNamespacesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + ListScopeNamespacesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopeNamespacesResponse"); + } + + // Use ListScopeNamespacesResponse.newBuilder() to construct. + private ListScopeNamespacesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopeNamespacesResponse() { + scopeNamespaces_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.class, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.Builder.class); + } + + public static final int SCOPE_NAMESPACES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List scopeNamespaces_; + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public java.util.List getScopeNamespacesList() { + return scopeNamespaces_; + } + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public java.util.List + getScopeNamespacesOrBuilderList() { + return scopeNamespaces_; + } + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public int getScopeNamespacesCount() { + return scopeNamespaces_.size(); + } + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace getScopeNamespaces(int index) { + return scopeNamespaces_.get(index); + } + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespacesOrBuilder(int index) { + return scopeNamespaces_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListNamespaces` method. The value of an empty string means
              +   * that there are no more resources to 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 to request the next page of resources from the
              +   * `ListNamespaces` method. The value of an empty string means
              +   * that there are no more resources to 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; + } + } + + 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 < scopeNamespaces_.size(); i++) { + output.writeMessage(1, scopeNamespaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < scopeNamespaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scopeNamespaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.v1.ListScopeNamespacesResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse other = + (com.google.cloud.gkehub.v1.ListScopeNamespacesResponse) obj; + + if (!getScopeNamespacesList().equals(other.getScopeNamespacesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getScopeNamespacesCount() > 0) { + hash = (37 * hash) + SCOPE_NAMESPACES_FIELD_NUMBER; + hash = (53 * hash) + getScopeNamespacesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse 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.v1.ListScopeNamespacesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse 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.v1.ListScopeNamespacesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListScopeNamespacesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * List of fleet namespaces.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeNamespacesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + com.google.cloud.gkehub.v1.ListScopeNamespacesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.class, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (scopeNamespacesBuilder_ == null) { + scopeNamespaces_ = java.util.Collections.emptyList(); + } else { + scopeNamespaces_ = null; + scopeNamespacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse build() { + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse buildPartial() { + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse result = + new com.google.cloud.gkehub.v1.ListScopeNamespacesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse result) { + if (scopeNamespacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + scopeNamespaces_ = java.util.Collections.unmodifiableList(scopeNamespaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.scopeNamespaces_ = scopeNamespaces_; + } else { + result.scopeNamespaces_ = scopeNamespacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopeNamespacesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopeNamespacesResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopeNamespacesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopeNamespacesResponse other) { + if (other == com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.getDefaultInstance()) + return this; + if (scopeNamespacesBuilder_ == null) { + if (!other.scopeNamespaces_.isEmpty()) { + if (scopeNamespaces_.isEmpty()) { + scopeNamespaces_ = other.scopeNamespaces_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.addAll(other.scopeNamespaces_); + } + onChanged(); + } + } else { + if (!other.scopeNamespaces_.isEmpty()) { + if (scopeNamespacesBuilder_.isEmpty()) { + scopeNamespacesBuilder_.dispose(); + scopeNamespacesBuilder_ = null; + scopeNamespaces_ = other.scopeNamespaces_; + bitField0_ = (bitField0_ & ~0x00000001); + scopeNamespacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetScopeNamespacesFieldBuilder() + : null; + } else { + scopeNamespacesBuilder_.addAllMessages(other.scopeNamespaces_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.gkehub.v1.Namespace m = + input.readMessage( + com.google.cloud.gkehub.v1.Namespace.parser(), extensionRegistry); + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(m); + } else { + scopeNamespacesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List scopeNamespaces_ = + java.util.Collections.emptyList(); + + private void ensureScopeNamespacesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + scopeNamespaces_ = + new java.util.ArrayList(scopeNamespaces_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + scopeNamespacesBuilder_; + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public java.util.List getScopeNamespacesList() { + if (scopeNamespacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(scopeNamespaces_); + } else { + return scopeNamespacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public int getScopeNamespacesCount() { + if (scopeNamespacesBuilder_ == null) { + return scopeNamespaces_.size(); + } else { + return scopeNamespacesBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespaces(int index) { + if (scopeNamespacesBuilder_ == null) { + return scopeNamespaces_.get(index); + } else { + return scopeNamespacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder setScopeNamespaces(int index, com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.set(index, value); + onChanged(); + } else { + scopeNamespacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder setScopeNamespaces( + int index, com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.set(index, builderForValue.build()); + onChanged(); + } else { + scopeNamespacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addScopeNamespaces(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(value); + onChanged(); + } else { + scopeNamespacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addScopeNamespaces(int index, com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(index, value); + onChanged(); + } else { + scopeNamespacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addScopeNamespaces( + com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(builderForValue.build()); + onChanged(); + } else { + scopeNamespacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addScopeNamespaces( + int index, com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(index, builderForValue.build()); + onChanged(); + } else { + scopeNamespacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addAllScopeNamespaces( + java.lang.Iterable values) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopeNamespaces_); + onChanged(); + } else { + scopeNamespacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder clearScopeNamespaces() { + if (scopeNamespacesBuilder_ == null) { + scopeNamespaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + scopeNamespacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder removeScopeNamespaces(int index) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.remove(index); + onChanged(); + } else { + scopeNamespacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.Namespace.Builder getScopeNamespacesBuilder(int index) { + return internalGetScopeNamespacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespacesOrBuilder(int index) { + if (scopeNamespacesBuilder_ == null) { + return scopeNamespaces_.get(index); + } else { + return scopeNamespacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public java.util.List + getScopeNamespacesOrBuilderList() { + if (scopeNamespacesBuilder_ != null) { + return scopeNamespacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scopeNamespaces_); + } + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.Namespace.Builder addScopeNamespacesBuilder() { + return internalGetScopeNamespacesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.Namespace.Builder addScopeNamespacesBuilder(int index) { + return internalGetScopeNamespacesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of fleet namespaces
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public java.util.List + getScopeNamespacesBuilderList() { + return internalGetScopeNamespacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + internalGetScopeNamespacesFieldBuilder() { + if (scopeNamespacesBuilder_ == null) { + scopeNamespacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder>( + scopeNamespaces_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + scopeNamespaces_ = null; + } + return scopeNamespacesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * A token to request the next page of resources from the
              +     * `ListNamespaces` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListNamespaces` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListNamespaces` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListNamespaces` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListNamespaces` method. The value of an empty string means
              +     * that there are no more resources to 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + private static final com.google.cloud.gkehub.v1.ListScopeNamespacesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopeNamespacesResponse(); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopeNamespacesResponse 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.v1.ListScopeNamespacesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponseOrBuilder.java new file mode 100644 index 000000000000..8ef5df12ce03 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopeNamespacesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + java.util.List getScopeNamespacesList(); + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + com.google.cloud.gkehub.v1.Namespace getScopeNamespaces(int index); + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + int getScopeNamespacesCount(); + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + java.util.List + getScopeNamespacesOrBuilderList(); + + /** + * + * + *
              +   * The list of fleet namespaces
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespacesOrBuilder(int index); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListNamespaces` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListNamespaces` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequest.java new file mode 100644 index 000000000000..d0a725211280 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequest.java @@ -0,0 +1,927 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to list Scope RBACRoleBindings.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest} + */ +@com.google.protobuf.Generated +public final class ListScopeRBACRoleBindingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + ListScopeRBACRoleBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopeRBACRoleBindingsRequest"); + } + + // Use ListScopeRBACRoleBindingsRequest.newBuilder() to construct. + private ListScopeRBACRoleBindingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopeRBACRoleBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.class, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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 (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * 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. Token returned by previous call to `ListScopeRBACRoleBindings`
              +   * which specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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. Token returned by previous call to `ListScopeRBACRoleBindings`
              +   * which specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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; + } + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.v1.ListScopeRBACRoleBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest other = + (com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest 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.v1.ListScopeRBACRoleBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest 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.v1.ListScopeRBACRoleBindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListScopeRBACRoleBindingsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to list Scope RBACRoleBindings.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.class, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest build() { + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest result = + new com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest 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_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest other) { + if (other == com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.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(); + } + 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 + 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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 (project and location) where the Features will be
              +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopeRBACRoleBindings`
              +     * which specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopeRBACRoleBindings`
              +     * which specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopeRBACRoleBindings`
              +     * which specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopeRBACRoleBindings`
              +     * which specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopeRBACRoleBindings`
              +     * which specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + private static final com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopeRBACRoleBindingsRequest 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.v1.ListScopeRBACRoleBindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..f3ce42a2525c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopeRBACRoleBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the Features will be
              +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Optional. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
              +   * which specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
              +   * which specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponse.java new file mode 100644 index 000000000000..2bafb2e02bba --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponse.java @@ -0,0 +1,1142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * List of Scope RBACRoleBindings.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse} + */ +@com.google.protobuf.Generated +public final class ListScopeRBACRoleBindingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + ListScopeRBACRoleBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopeRBACRoleBindingsResponse"); + } + + // Use ListScopeRBACRoleBindingsResponse.newBuilder() to construct. + private ListScopeRBACRoleBindingsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopeRBACRoleBindingsResponse() { + rbacrolebindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.class, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.Builder.class); + } + + public static final int RBACROLEBINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List rbacrolebindings_; + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public java.util.List getRbacrolebindingsList() { + return rbacrolebindings_; + } + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public java.util.List + getRbacrolebindingsOrBuilderList() { + return rbacrolebindings_; + } + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public int getRbacrolebindingsCount() { + return rbacrolebindings_.size(); + } + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index) { + return rbacrolebindings_.get(index); + } + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder( + int index) { + return rbacrolebindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListScopeRBACRoleBindings` method. The value of an empty string means
              +   * that there are no more resources to 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 to request the next page of resources from the
              +   * `ListScopeRBACRoleBindings` method. The value of an empty string means
              +   * that there are no more resources to 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; + } + } + + 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 < rbacrolebindings_.size(); i++) { + output.writeMessage(1, rbacrolebindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rbacrolebindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rbacrolebindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.v1.ListScopeRBACRoleBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse other = + (com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) obj; + + if (!getRbacrolebindingsList().equals(other.getRbacrolebindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getRbacrolebindingsCount() > 0) { + hash = (37 * hash) + RBACROLEBINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse 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.v1.ListScopeRBACRoleBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse 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.v1.ListScopeRBACRoleBindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListScopeRBACRoleBindingsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * List of Scope RBACRoleBindings.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.class, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindings_ = java.util.Collections.emptyList(); + } else { + rbacrolebindings_ = null; + rbacrolebindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse build() { + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse result = + new com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse result) { + if (rbacrolebindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rbacrolebindings_ = java.util.Collections.unmodifiableList(rbacrolebindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rbacrolebindings_ = rbacrolebindings_; + } else { + result.rbacrolebindings_ = rbacrolebindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse other) { + if (other + == com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.getDefaultInstance()) + return this; + if (rbacrolebindingsBuilder_ == null) { + if (!other.rbacrolebindings_.isEmpty()) { + if (rbacrolebindings_.isEmpty()) { + rbacrolebindings_ = other.rbacrolebindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.addAll(other.rbacrolebindings_); + } + onChanged(); + } + } else { + if (!other.rbacrolebindings_.isEmpty()) { + if (rbacrolebindingsBuilder_.isEmpty()) { + rbacrolebindingsBuilder_.dispose(); + rbacrolebindingsBuilder_ = null; + rbacrolebindings_ = other.rbacrolebindings_; + bitField0_ = (bitField0_ & ~0x00000001); + rbacrolebindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRbacrolebindingsFieldBuilder() + : null; + } else { + rbacrolebindingsBuilder_.addAllMessages(other.rbacrolebindings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.gkehub.v1.RBACRoleBinding m = + input.readMessage( + com.google.cloud.gkehub.v1.RBACRoleBinding.parser(), extensionRegistry); + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(m); + } else { + rbacrolebindingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List rbacrolebindings_ = + java.util.Collections.emptyList(); + + private void ensureRbacrolebindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rbacrolebindings_ = + new java.util.ArrayList(rbacrolebindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingsBuilder_; + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List getRbacrolebindingsList() { + if (rbacrolebindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rbacrolebindings_); + } else { + return rbacrolebindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public int getRbacrolebindingsCount() { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.size(); + } else { + return rbacrolebindingsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index) { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.get(index); + } else { + return rbacrolebindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder setRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.set(index, value); + onChanged(); + } else { + rbacrolebindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder setRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.set(index, builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(value); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(index, value); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(index, builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addAllRbacrolebindings( + java.lang.Iterable values) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rbacrolebindings_); + onChanged(); + } else { + rbacrolebindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder clearRbacrolebindings() { + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rbacrolebindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder removeRbacrolebindings(int index) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.remove(index); + onChanged(); + } else { + rbacrolebindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingsBuilder( + int index) { + return internalGetRbacrolebindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder( + int index) { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.get(index); + } else { + return rbacrolebindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List + getRbacrolebindingsOrBuilderList() { + if (rbacrolebindingsBuilder_ != null) { + return rbacrolebindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rbacrolebindings_); + } + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder addRbacrolebindingsBuilder() { + return internalGetRbacrolebindingsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder addRbacrolebindingsBuilder( + int index) { + return internalGetRbacrolebindingsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of Scope RBACRoleBindings.
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List + getRbacrolebindingsBuilderList() { + return internalGetRbacrolebindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingsFieldBuilder() { + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + rbacrolebindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rbacrolebindings_ = null; + } + return rbacrolebindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * A token to request the next page of resources from the
              +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
              +     * that there are no more resources to 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + private static final com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopeRBACRoleBindingsResponse 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.v1.ListScopeRBACRoleBindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..899136093e92 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopeRBACRoleBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + java.util.List getRbacrolebindingsList(); + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index); + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + int getRbacrolebindingsCount(); + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + java.util.List + getRbacrolebindingsOrBuilderList(); + + /** + * + * + *
              +   * The list of Scope RBACRoleBindings.
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder(int index); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListScopeRBACRoleBindings` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListScopeRBACRoleBindings` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequest.java new file mode 100644 index 000000000000..590fccab4e32 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequest.java @@ -0,0 +1,924 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to list Scopes.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopesRequest} + */ +@com.google.protobuf.Generated +public final class ListScopesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopesRequest) + ListScopesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopesRequest"); + } + + // Use ListScopesRequest.newBuilder() to construct. + private ListScopesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopesRequest.class, + com.google.cloud.gkehub.v1.ListScopesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent (project and location) where the Scope will be listed.
              +   * Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +   * Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * 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. Token returned by previous call to `ListScopes` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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. Token returned by previous call to `ListScopes` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * 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; + } + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.v1.ListScopesRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopesRequest other = + (com.google.cloud.gkehub.v1.ListScopesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest 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.v1.ListScopesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest 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.v1.ListScopesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListScopesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to list Scopes.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopesRequest) + com.google.cloud.gkehub.v1.ListScopesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopesRequest.class, + com.google.cloud.gkehub.v1.ListScopesRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesRequest build() { + com.google.cloud.gkehub.v1.ListScopesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesRequest buildPartial() { + com.google.cloud.gkehub.v1.ListScopesRequest result = + new com.google.cloud.gkehub.v1.ListScopesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopesRequest 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_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopesRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopesRequest other) { + if (other == com.google.cloud.gkehub.v1.ListScopesRequest.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(); + } + 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 + 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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 (project and location) where the Scope will be listed.
              +     * Specified in the format `projects/*/locations/*`.
              +     * 
              + * + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. When requesting a 'page' of resources, `page_size` specifies
              +     * number of resources to return. If unspecified or set to 0, all resources
              +     * will be returned.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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. Token returned by previous call to `ListScopes` which
              +     * specifies the position in the list from where to continue listing the
              +     * resources.
              +     * 
              + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopesRequest) + private static final com.google.cloud.gkehub.v1.ListScopesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopesRequest(); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopesRequest 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.v1.ListScopesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequestOrBuilder.java new file mode 100644 index 000000000000..7204881b1d41 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent (project and location) where the Scope will be listed.
              +   * Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent (project and location) where the Scope will be listed.
              +   * Specified in the format `projects/*/locations/*`.
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Optional. When requesting a 'page' of resources, `page_size` specifies
              +   * number of resources to return. If unspecified or set to 0, all resources
              +   * will be returned.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListScopes` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. Token returned by previous call to `ListScopes` which
              +   * specifies the position in the list from where to continue listing the
              +   * resources.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponse.java new file mode 100644 index 000000000000..929d2c699747 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponse.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * List of Scopes.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopesResponse} + */ +@com.google.protobuf.Generated +public final class ListScopesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopesResponse) + ListScopesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopesResponse"); + } + + // Use ListScopesResponse.newBuilder() to construct. + private ListScopesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopesResponse() { + scopes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopesResponse.class, + com.google.cloud.gkehub.v1.ListScopesResponse.Builder.class); + } + + public static final int SCOPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List scopes_; + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public java.util.List getScopesList() { + return scopes_; + } + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public java.util.List + getScopesOrBuilderList() { + return scopes_; + } + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index) { + return scopes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListScopes` method. The value of an empty string means
              +   * that there are no more resources to 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 to request the next page of resources from the
              +   * `ListScopes` method. The value of an empty string means
              +   * that there are no more resources to 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; + } + } + + 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 < scopes_.size(); i++) { + output.writeMessage(1, scopes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < scopes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scopes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.v1.ListScopesResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopesResponse other = + (com.google.cloud.gkehub.v1.ListScopesResponse) obj; + + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse 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.v1.ListScopesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse 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.v1.ListScopesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ListScopesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * List of Scopes.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopesResponse) + com.google.cloud.gkehub.v1.ListScopesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopesResponse.class, + com.google.cloud.gkehub.v1.ListScopesResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (scopesBuilder_ == null) { + scopes_ = java.util.Collections.emptyList(); + } else { + scopes_ = null; + scopesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesResponse build() { + com.google.cloud.gkehub.v1.ListScopesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesResponse buildPartial() { + com.google.cloud.gkehub.v1.ListScopesResponse result = + new com.google.cloud.gkehub.v1.ListScopesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.gkehub.v1.ListScopesResponse result) { + if (scopesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + scopes_ = java.util.Collections.unmodifiableList(scopes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.scopes_ = scopes_; + } else { + result.scopes_ = scopesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopesResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopesResponse other) { + if (other == com.google.cloud.gkehub.v1.ListScopesResponse.getDefaultInstance()) return this; + if (scopesBuilder_ == null) { + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + } else { + if (!other.scopes_.isEmpty()) { + if (scopesBuilder_.isEmpty()) { + scopesBuilder_.dispose(); + scopesBuilder_ = null; + scopes_ = other.scopes_; + bitField0_ = (bitField0_ & ~0x00000001); + scopesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetScopesFieldBuilder() + : null; + } else { + scopesBuilder_.addAllMessages(other.scopes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.gkehub.v1.Scope m = + input.readMessage(com.google.cloud.gkehub.v1.Scope.parser(), extensionRegistry); + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(m); + } else { + scopesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List scopes_ = + java.util.Collections.emptyList(); + + private void ensureScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + scopes_ = new java.util.ArrayList(scopes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + scopesBuilder_; + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List getScopesList() { + if (scopesBuilder_ == null) { + return java.util.Collections.unmodifiableList(scopes_); + } else { + return scopesBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public int getScopesCount() { + if (scopesBuilder_ == null) { + return scopes_.size(); + } else { + return scopesBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope getScopes(int index) { + if (scopesBuilder_ == null) { + return scopes_.get(index); + } else { + return scopesBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder setScopes(int index, com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + onChanged(); + } else { + scopesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder setScopes(int index, com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.set(index, builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + onChanged(); + } else { + scopesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(int index, com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(index, value); + onChanged(); + } else { + scopesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(int index, com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(index, builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addAllScopes( + java.lang.Iterable values) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + onChanged(); + } else { + scopesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder clearScopes() { + if (scopesBuilder_ == null) { + scopes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + scopesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder removeScopes(int index) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.remove(index); + onChanged(); + } else { + scopesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder getScopesBuilder(int index) { + return internalGetScopesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index) { + if (scopesBuilder_ == null) { + return scopes_.get(index); + } else { + return scopesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List + getScopesOrBuilderList() { + if (scopesBuilder_ != null) { + return scopesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scopes_); + } + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder addScopesBuilder() { + return internalGetScopesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Scope.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder addScopesBuilder(int index) { + return internalGetScopesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Scope.getDefaultInstance()); + } + + /** + * + * + *
              +     * The list of Scopes
              +     * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List getScopesBuilderList() { + return internalGetScopesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + internalGetScopesFieldBuilder() { + if (scopesBuilder_ == null) { + scopesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder>( + scopes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scopes_ = null; + } + return scopesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * A token to request the next page of resources from the
              +     * `ListScopes` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListScopes` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListScopes` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListScopes` method. The value of an empty string means
              +     * that there are no more resources to 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 to request the next page of resources from the
              +     * `ListScopes` method. The value of an empty string means
              +     * that there are no more resources to 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopesResponse) + private static final com.google.cloud.gkehub.v1.ListScopesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopesResponse(); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopesResponse 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.v1.ListScopesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponseOrBuilder.java new file mode 100644 index 000000000000..ffcd7a8e3681 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + java.util.List getScopesList(); + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + com.google.cloud.gkehub.v1.Scope getScopes(int index); + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + int getScopesCount(); + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + java.util.List getScopesOrBuilderList(); + + /** + * + * + *
              +   * The list of Scopes
              +   * 
              + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListScopes` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * A token to request the next page of resources from the
              +   * `ListScopes` method. The value of an empty string means
              +   * that there are no more resources to return.
              +   * 
              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBinding.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBinding.java new file mode 100644 index 000000000000..07c94ecfd14b --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBinding.java @@ -0,0 +1,2709 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * MembershipBinding is a subresource of a Membership, representing
              + * what Fleet Scopes (or other, future Fleet resources) a Membership is bound
              + * to.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipBinding} + */ +@com.google.protobuf.Generated +public final class MembershipBinding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipBinding) + MembershipBindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MembershipBinding"); + } + + // Use MembershipBinding.newBuilder() to construct. + private MembershipBinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MembershipBinding() { + name_ = ""; + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipBinding.class, + com.google.cloud.gkehub.v1.MembershipBinding.Builder.class); + } + + private int bitField0_; + private int targetCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object target_; + + public enum TargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SCOPE(3), + TARGET_NOT_SET(0); + private final int value; + + private TargetCase(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 TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 3: + return SCOPE; + case 0: + return TARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public static final int SCOPE_FIELD_NUMBER = 3; + + /** + * + * + *
              +   * A Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return targetCase_ == 3; + } + + /** + * + * + *
              +   * A Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + 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(); + if (targetCase_ == 3) { + target_ = s; + } + return s; + } + } + + /** + * + * + *
              +   * A Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 3) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * The resource name for the membershipbinding itself
              +   * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
              +   * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +   * The resource name for the membershipbinding itself
              +   * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
              +   * 
              + * + * string name = 1; + * + * @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 UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all membershipbinding resources. If a membershipbinding resource is deleted
              +   * and another resource with the same name is created, it gets a different
              +   * uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all membershipbinding resources. If a membershipbinding resource is deleted
              +   * and another resource with the same name is created, it gets a different
              +   * uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
              +   * Output only. When the membership binding was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 5 [(.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. When the membership binding was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 5 [(.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. When the membership binding was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 5 [(.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 = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
              +   * Output only. When the membership binding was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 6 [(.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. When the membership binding was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 6 [(.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. When the membership binding was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 6 [(.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 DELETE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
              +   * Output only. When the membership binding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +   * Output only. When the membership binding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
              +   * Output only. When the membership binding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int STATE_FIELD_NUMBER = 8; + private com.google.cloud.gkehub.v1.MembershipBindingLifecycleState state_; + + /** + * + * + *
              +   * Output only. State of the membership binding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
              +   * Output only. State of the membership binding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
              +   * Output only. State of the membership binding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance() + : state_; + } + + public static final int LABELS_FIELD_NUMBER = 9; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_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 for this MembershipBinding.
              +   * 
              + * + * map<string, string> labels = 9 [(.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 for this MembershipBinding.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +   * Optional. Labels for this MembershipBinding.
              +   * 
              + * + * map<string, string> labels = 9 [(.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 for this MembershipBinding.
              +   * 
              + * + * map<string, string> labels = 9 [(.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); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (targetCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getState()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + if (targetCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getState()); + } + 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(9, labels__); + } + 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.v1.MembershipBinding)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.MembershipBinding other = + (com.google.cloud.gkehub.v1.MembershipBinding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 3: + if (!getScope().equals(other.getScope())) 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(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().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 (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + switch (targetCase_) { + case 3: + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding 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.v1.MembershipBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding 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.v1.MembershipBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.MembershipBinding 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * MembershipBinding is a subresource of a Membership, representing
              +   * what Fleet Scopes (or other, future Fleet resources) a Membership is bound
              +   * to.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipBinding) + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipBinding.class, + com.google.cloud.gkehub.v1.MembershipBinding.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.MembershipBinding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + internalGetMutableLabels().clear(); + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding build() { + com.google.cloud.gkehub.v1.MembershipBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding buildPartial() { + com.google.cloud.gkehub.v1.MembershipBinding result = + new com.google.cloud.gkehub.v1.MembershipBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.MembershipBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uid_ = uid_; + } + 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.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.gkehub.v1.MembershipBinding result) { + result.targetCase_ = targetCase_; + result.target_ = this.target_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.MembershipBinding) { + return mergeFrom((com.google.cloud.gkehub.v1.MembershipBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipBinding other) { + if (other == com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; + switch (other.getTargetCase()) { + case SCOPE: + { + targetCase_ = 3; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 3; + target_ = s; + break; + } // case 26 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + 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 targetCase_ = 0; + private java.lang.Object target_; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
              +     * A Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return targetCase_ == 3; + } + + /** + * + * + *
              +     * A Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 3) { + target_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * A Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 3) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * A Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetCase_ = 3; + target_ = value; + onChanged(); + return this; + } + + /** + * + * + *
              +     * A Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearScope() { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * A Scope resource name in the format
              +     * `projects/*/locations/*/scopes/*`.
              +     * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetCase_ = 3; + target_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
              +     * The resource name for the membershipbinding itself
              +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +     * The resource name for the membershipbinding itself
              +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +     * The resource name for the membershipbinding itself
              +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + + /** + * + * + *
              +     * The resource name for the membershipbinding itself
              +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
              +     * 
              + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * The resource name for the membershipbinding itself
              +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all membershipbinding resources. If a membershipbinding resource is deleted
              +     * and another resource with the same name is created, it gets a different
              +     * uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all membershipbinding resources. If a membershipbinding resource is deleted
              +     * and another resource with the same name is created, it gets a different
              +     * uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all membershipbinding resources. If a membershipbinding resource is deleted
              +     * and another resource with the same name is created, it gets a different
              +     * uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all membershipbinding resources. If a membershipbinding resource is deleted
              +     * and another resource with the same name is created, it gets a different
              +     * uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all membershipbinding resources. If a membershipbinding resource is deleted
              +     * and another resource with the same name is created, it gets a different
              +     * uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the membership binding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
              +     * Output only. When the membership binding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. When the membership binding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. When the membership binding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. When the membership binding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. When the membership binding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. When the membership binding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the membership binding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. When the membership binding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the membership binding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
              +     * Output only. When the membership binding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. When the membership binding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. When the membership binding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. When the membership binding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. When the membership binding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. When the membership binding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the membership binding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. When the membership binding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the membership binding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
              +     * Output only. When the membership binding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. When the membership binding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the membership binding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the membership binding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. When the membership binding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000020); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the membership binding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the membership binding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
              +     * Output only. When the membership binding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.cloud.gkehub.v1.MembershipBindingLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
              +     * Output only. State of the membership binding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
              +     * Output only. State of the membership binding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. State of the membership binding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the membership binding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the membership binding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && state_ != null + && state_ + != com.google.cloud.gkehub.v1.MembershipBindingLifecycleState + .getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. State of the membership binding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the membership binding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. State of the membership binding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
              +     * Output only. State of the membership binding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + 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_ |= 0x00000080; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
              +     * Optional. Labels for this MembershipBinding.
              +     * 
              + * + * map<string, string> labels = 9 [(.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 for this MembershipBinding.
              +     * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this MembershipBinding.
              +     * 
              + * + * map<string, string> labels = 9 [(.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 for this MembershipBinding.
              +     * 
              + * + * map<string, string> labels = 9 [(.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_ & ~0x00000080); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this MembershipBinding.
              +     * 
              + * + * map<string, string> labels = 9 [(.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_ |= 0x00000080; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this MembershipBinding.
              +     * 
              + * + * map<string, string> labels = 9 [(.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_ |= 0x00000080; + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this MembershipBinding.
              +     * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipBinding) + private static final com.google.cloud.gkehub.v1.MembershipBinding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipBinding(); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipBinding 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.v1.MembershipBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleState.java new file mode 100644 index 000000000000..36f0b257c86f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleState.java @@ -0,0 +1,802 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * MembershipBindingLifecycleState describes the state of a Binding resource.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipBindingLifecycleState} + */ +@com.google.protobuf.Generated +public final class MembershipBindingLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + MembershipBindingLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MembershipBindingLifecycleState"); + } + + // Use MembershipBindingLifecycleState.newBuilder() to construct. + private MembershipBindingLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MembershipBindingLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.class, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder.class); + } + + /** + * + * + *
              +   * Code describes the state of a MembershipBinding resource.
              +   * 
              + * + * Protobuf enum {@code google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
              +     * The membershipbinding is being created.
              +     * 
              + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
              +     * The membershipbinding active.
              +     * 
              + * + * READY = 2; + */ + READY(2), + /** + * + * + *
              +     * The membershipbinding is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
              +     * The membershipbinding is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The membershipbinding is being created.
              +     * 
              + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
              +     * The membershipbinding active.
              +     * 
              + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
              +     * The membershipbinding is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
              +     * The membershipbinding is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + public static final int UPDATING_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 Code 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 Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + 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 Code findValueByNumber(int number) { + return Code.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Code[] VALUES = values(); + + public static Code 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 Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
              +   * Output only. The current state of the MembershipBinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +   * Output only. The current state of the MembershipBinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code result = + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.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 (code_ + != com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ + != com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + 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.v1.MembershipBindingLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState other = + (com.google.cloud.gkehub.v1.MembershipBindingLifecycleState) obj; + + if (code_ != other.code_) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState 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.v1.MembershipBindingLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState 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.v1.MembershipBindingLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.MembershipBindingLifecycleState 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * MembershipBindingLifecycleState describes the state of a Binding resource.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipBindingLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.class, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState build() { + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState result = + new com.google.cloud.gkehub.v1.MembershipBindingLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.MembershipBindingLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.MembershipBindingLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance()) + return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + 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: + { + code_ = 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 code_ = 0; + + /** + * + * + *
              +     * Output only. The current state of the MembershipBinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +     * Output only. The current state of the MembershipBinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the MembershipBinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code result = + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Output only. The current state of the MembershipBinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the MembershipBinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + private static final com.google.cloud.gkehub.v1.MembershipBindingLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipBindingLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipBindingLifecycleState 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.v1.MembershipBindingLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..0bb92eb6f166 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface MembershipBindingLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The current state of the MembershipBinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
              +   * Output only. The current state of the MembershipBinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java new file mode 100644 index 000000000000..33c646608994 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.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 MembershipBindingName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MEMBERSHIP_MEMBERSHIPBINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String membership; + private final String membershipbinding; + + @Deprecated + protected MembershipBindingName() { + project = null; + location = null; + membership = null; + membershipbinding = null; + } + + private MembershipBindingName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + membership = Preconditions.checkNotNull(builder.getMembership()); + membershipbinding = Preconditions.checkNotNull(builder.getMembershipbinding()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMembership() { + return membership; + } + + public String getMembershipbinding() { + return membershipbinding; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MembershipBindingName of( + String project, String location, String membership, String membershipbinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMembership(membership) + .setMembershipbinding(membershipbinding) + .build(); + } + + public static String format( + String project, String location, String membership, String membershipbinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMembership(membership) + .setMembershipbinding(membershipbinding) + .build() + .toString(); + } + + public static MembershipBindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MEMBERSHIP_MEMBERSHIPBINDING.validatedMatch( + formattedString, "MembershipBindingName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("membership"), + matchMap.get("membershipbinding")); + } + + 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 (MembershipBindingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MEMBERSHIP_MEMBERSHIPBINDING.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 (membership != null) { + fieldMapBuilder.put("membership", membership); + } + if (membershipbinding != null) { + fieldMapBuilder.put("membershipbinding", membershipbinding); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MEMBERSHIP_MEMBERSHIPBINDING.instantiate( + "project", + project, + "location", + location, + "membership", + membership, + "membershipbinding", + membershipbinding); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MembershipBindingName that = ((MembershipBindingName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.membership, that.membership) + && Objects.equals(this.membershipbinding, that.membershipbinding); + } + 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(membership); + h *= 1000003; + h ^= Objects.hashCode(membershipbinding); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}. + */ + public static class Builder { + private String project; + private String location; + private String membership; + private String membershipbinding; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMembership() { + return membership; + } + + public String getMembershipbinding() { + return membershipbinding; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMembership(String membership) { + this.membership = membership; + return this; + } + + public Builder setMembershipbinding(String membershipbinding) { + this.membershipbinding = membershipbinding; + return this; + } + + private Builder(MembershipBindingName membershipBindingName) { + this.project = membershipBindingName.project; + this.location = membershipBindingName.location; + this.membership = membershipBindingName.membership; + this.membershipbinding = membershipBindingName.membershipbinding; + } + + public MembershipBindingName build() { + return new MembershipBindingName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingOrBuilder.java new file mode 100644 index 000000000000..f58d48e6d058 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingOrBuilder.java @@ -0,0 +1,358 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface MembershipBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * A Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
              +   * A Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The scope. + */ + java.lang.String getScope(); + + /** + * + * + *
              +   * A Scope resource name in the format
              +   * `projects/*/locations/*/scopes/*`.
              +   * 
              + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for scope. + */ + com.google.protobuf.ByteString getScopeBytes(); + + /** + * + * + *
              +   * The resource name for the membershipbinding itself
              +   * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
              +   * 
              + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * The resource name for the membershipbinding itself
              +   * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
              +   * 
              + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all membershipbinding resources. If a membershipbinding resource is deleted
              +   * and another resource with the same name is created, it gets a different
              +   * uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all membershipbinding resources. If a membershipbinding resource is deleted
              +   * and another resource with the same name is created, it gets a different
              +   * uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
              +   * Output only. When the membership binding was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
              +   * Output only. When the membership binding was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
              +   * Output only. When the membership binding was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the membership binding was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
              +   * Output only. When the membership binding was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
              +   * Output only. When the membership binding was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the membership binding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
              +   * Output only. When the membership binding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
              +   * Output only. When the membership binding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. State of the membership binding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
              +   * Output only. State of the membership binding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getState(); + + /** + * + * + *
              +   * Output only. State of the membership binding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
              +   * Optional. Labels for this MembershipBinding.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
              +   * Optional. Labels for this MembershipBinding.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
              +   * Optional. Labels for this MembershipBinding.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
              +   * Optional. Labels for this MembershipBinding.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
              +   * Optional. Labels for this MembershipBinding.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + com.google.cloud.gkehub.v1.MembershipBinding.TargetCase getTargetCase(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Namespace.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Namespace.java new file mode 100644 index 000000000000..8e6cdf8191fd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Namespace.java @@ -0,0 +1,2953 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Namespace represents a namespace across the Fleet
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.Namespace} + */ +@com.google.protobuf.Generated +public final class Namespace extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Namespace) + NamespaceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Namespace"); + } + + // Use Namespace.newBuilder() to construct. + private Namespace(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Namespace() { + name_ = ""; + uid_ = ""; + scope_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetNamespaceLabels(); + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Namespace.class, + com.google.cloud.gkehub.v1.Namespace.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * The resource name for the namespace
              +   * `projects/{project}/locations/{location}/namespaces/{namespace}`
              +   * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +   * The resource name for the namespace
              +   * `projects/{project}/locations/{location}/namespaces/{namespace}`
              +   * 
              + * + * string name = 1; + * + * @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 UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all namespace resources. If a namespace resource is deleted and another
              +   * resource with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all namespace resources. If a namespace resource is deleted and another
              +   * resource with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = 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. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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 DELETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
              +   * Output only. When the namespace was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +   * Output only. When the namespace was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
              +   * Output only. When the namespace was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private com.google.cloud.gkehub.v1.NamespaceLifecycleState state_; + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance() + : state_; + } + + public static final int SCOPE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; + + /** + * + * + *
              +   * Required. Scope associated with the namespace
              +   * 
              + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + 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(); + scope_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. Scope associated with the namespace
              +   * 
              + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMESPACE_LABELS_FIELD_NUMBER = 9; + + private static final class NamespaceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField namespaceLabels_; + + private com.google.protobuf.MapField + internalGetNamespaceLabels() { + if (namespaceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + return namespaceLabels_; + } + + public int getNamespaceLabelsCount() { + return internalGetNamespaceLabels().getMap().size(); + } + + /** + * + * + *
              +   * Optional. Namespace-level cluster namespace labels. These labels are
              +   * applied to the related namespace of the member clusters bound to the parent
              +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +   * resource) take precedence over Namespace-level labels if they share
              +   * a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNamespaceLabels().getMap().containsKey(key); + } + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNamespaceLabels() { + return getNamespaceLabelsMap(); + } + + /** + * + * + *
              +   * Optional. Namespace-level cluster namespace labels. These labels are
              +   * applied to the related namespace of the member clusters bound to the parent
              +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +   * resource) take precedence over Namespace-level labels if they share
              +   * a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getNamespaceLabelsMap() { + return internalGetNamespaceLabels().getMap(); + } + + /** + * + * + *
              +   * Optional. Namespace-level cluster namespace labels. These labels are
              +   * applied to the related namespace of the member clusters bound to the parent
              +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +   * resource) take precedence over Namespace-level labels if they share
              +   * a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
              +   * Optional. Namespace-level cluster namespace labels. These labels are
              +   * applied to the related namespace of the member clusters bound to the parent
              +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +   * resource) take precedence over Namespace-level labels if they share
              +   * a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getNamespaceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_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 for this Namespace.
              +   * 
              + * + * map<string, string> labels = 10 [(.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 for this Namespace.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +   * Optional. Labels for this Namespace.
              +   * 
              + * + * map<string, string> labels = 10 [(.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 for this Namespace.
              +   * 
              + * + * map<string, string> labels = 10 [(.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); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getState()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scope_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, scope_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetNamespaceLabels(), NamespaceLabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + 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(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scope_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, scope_); + } + for (java.util.Map.Entry entry : + internalGetNamespaceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry namespaceLabels__ = + NamespaceLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, namespaceLabels__); + } + 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(10, labels__); + } + 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.v1.Namespace)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.Namespace other = (com.google.cloud.gkehub.v1.Namespace) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!getScope().equals(other.getScope())) return false; + if (!internalGetNamespaceLabels().equals(other.internalGetNamespaceLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().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 (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + if (!internalGetNamespaceLabels().getMap().isEmpty()) { + hash = (37 * hash) + NAMESPACE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetNamespaceLabels().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Namespace 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.v1.Namespace parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Namespace 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.v1.Namespace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Namespace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Namespace parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.Namespace 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Namespace represents a namespace across the Fleet
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.Namespace} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Namespace) + com.google.cloud.gkehub.v1.NamespaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetNamespaceLabels(); + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableNamespaceLabels(); + case 10: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Namespace.class, + com.google.cloud.gkehub.v1.Namespace.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.Namespace.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + scope_ = ""; + internalGetMutableNamespaceLabels().clear(); + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.Namespace.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace build() { + com.google.cloud.gkehub.v1.Namespace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace buildPartial() { + com.google.cloud.gkehub.v1.Namespace result = new com.google.cloud.gkehub.v1.Namespace(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.Namespace result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + 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.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.namespaceLabels_ = internalGetNamespaceLabels(); + result.namespaceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.Namespace) { + return mergeFrom((com.google.cloud.gkehub.v1.Namespace) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.Namespace other) { + if (other == com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + if (!other.getScope().isEmpty()) { + scope_ = other.scope_; + bitField0_ |= 0x00000040; + onChanged(); + } + internalGetMutableNamespaceLabels().mergeFrom(other.internalGetNamespaceLabels()); + bitField0_ |= 0x00000080; + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + 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: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.protobuf.MapEntry namespaceLabels__ = + input.readMessage( + NamespaceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableNamespaceLabels() + .getMutableMap() + .put(namespaceLabels__.getKey(), namespaceLabels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + 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_ = ""; + + /** + * + * + *
              +     * The resource name for the namespace
              +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +     * The resource name for the namespace
              +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +     * The resource name for the namespace
              +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + + /** + * + * + *
              +     * The resource name for the namespace
              +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
              +     * 
              + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * The resource name for the namespace
              +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
              +     * 
              + * + * string name = 1; + * + * @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 uid_ = ""; + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all namespace resources. If a namespace resource is deleted and another
              +     * resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all namespace resources. If a namespace resource is deleted and another
              +     * resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all namespace resources. If a namespace resource is deleted and another
              +     * resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all namespace resources. If a namespace resource is deleted and another
              +     * resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all namespace resources. If a namespace resource is deleted and another
              +     * resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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 internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the namespace 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. When the namespace was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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. When the namespace 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 internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the namespace 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. When the namespace was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the namespace was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
              +     * Output only. When the namespace was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. When the namespace was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the namespace was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the namespace was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. When the namespace was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000010); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the namespace was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the namespace was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
              +     * Output only. When the namespace was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.cloud.gkehub.v1.NamespaceLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.NamespaceLifecycleState, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder, + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.NamespaceLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.NamespaceLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.NamespaceLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
              +     * Output only. State of the namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.NamespaceLifecycleState, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder, + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.NamespaceLifecycleState, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder, + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private java.lang.Object scope_ = ""; + + /** + * + * + *
              +     * Required. Scope associated with the namespace
              +     * 
              + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. Scope associated with the namespace
              +     * 
              + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. Scope associated with the namespace
              +     * 
              + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Scope associated with the namespace
              +     * 
              + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Scope associated with the namespace
              +     * 
              + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.MapField namespaceLabels_; + + private com.google.protobuf.MapField + internalGetNamespaceLabels() { + if (namespaceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + return namespaceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableNamespaceLabels() { + if (namespaceLabels_ == null) { + namespaceLabels_ = + com.google.protobuf.MapField.newMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + if (!namespaceLabels_.isMutable()) { + namespaceLabels_ = namespaceLabels_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return namespaceLabels_; + } + + public int getNamespaceLabelsCount() { + return internalGetNamespaceLabels().getMap().size(); + } + + /** + * + * + *
              +     * Optional. Namespace-level cluster namespace labels. These labels are
              +     * applied to the related namespace of the member clusters bound to the parent
              +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +     * resource) take precedence over Namespace-level labels if they share
              +     * a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNamespaceLabels().getMap().containsKey(key); + } + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNamespaceLabels() { + return getNamespaceLabelsMap(); + } + + /** + * + * + *
              +     * Optional. Namespace-level cluster namespace labels. These labels are
              +     * applied to the related namespace of the member clusters bound to the parent
              +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +     * resource) take precedence over Namespace-level labels if they share
              +     * a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getNamespaceLabelsMap() { + return internalGetNamespaceLabels().getMap(); + } + + /** + * + * + *
              +     * Optional. Namespace-level cluster namespace labels. These labels are
              +     * applied to the related namespace of the member clusters bound to the parent
              +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +     * resource) take precedence over Namespace-level labels if they share
              +     * a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
              +     * Optional. Namespace-level cluster namespace labels. These labels are
              +     * applied to the related namespace of the member clusters bound to the parent
              +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +     * resource) take precedence over Namespace-level labels if they share
              +     * a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getNamespaceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNamespaceLabels() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableNamespaceLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
              +     * Optional. Namespace-level cluster namespace labels. These labels are
              +     * applied to the related namespace of the member clusters bound to the parent
              +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +     * resource) take precedence over Namespace-level labels if they share
              +     * a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableNamespaceLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableNamespaceLabels() { + bitField0_ |= 0x00000080; + return internalGetMutableNamespaceLabels().getMutableMap(); + } + + /** + * + * + *
              +     * Optional. Namespace-level cluster namespace labels. These labels are
              +     * applied to the related namespace of the member clusters bound to the parent
              +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +     * resource) take precedence over Namespace-level labels if they share
              +     * a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putNamespaceLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableNamespaceLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
              +     * Optional. Namespace-level cluster namespace labels. These labels are
              +     * applied to the related namespace of the member clusters bound to the parent
              +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +     * resource) take precedence over Namespace-level labels if they share
              +     * a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllNamespaceLabels(java.util.Map values) { + internalGetMutableNamespaceLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + 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_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
              +     * Optional. Labels for this Namespace.
              +     * 
              + * + * map<string, string> labels = 10 [(.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 for this Namespace.
              +     * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this Namespace.
              +     * 
              + * + * map<string, string> labels = 10 [(.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 for this Namespace.
              +     * 
              + * + * map<string, string> labels = 10 [(.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_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this Namespace.
              +     * 
              + * + * map<string, string> labels = 10 [(.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_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this Namespace.
              +     * 
              + * + * map<string, string> labels = 10 [(.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_ |= 0x00000100; + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this Namespace.
              +     * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Namespace) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Namespace) + private static final com.google.cloud.gkehub.v1.Namespace DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Namespace(); + } + + public static com.google.cloud.gkehub.v1.Namespace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Namespace 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.v1.Namespace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleState.java new file mode 100644 index 000000000000..b38c63808255 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleState.java @@ -0,0 +1,799 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * NamespaceLifecycleState describes the state of a Namespace resource.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.NamespaceLifecycleState} + */ +@com.google.protobuf.Generated +public final class NamespaceLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.NamespaceLifecycleState) + NamespaceLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NamespaceLifecycleState"); + } + + // Use NamespaceLifecycleState.newBuilder() to construct. + private NamespaceLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NamespaceLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.NamespaceLifecycleState.class, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder.class); + } + + /** + * + * + *
              +   * Code describes the state of a Namespace resource.
              +   * 
              + * + * Protobuf enum {@code google.cloud.gkehub.v1.NamespaceLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
              +     * The namespace is being created.
              +     * 
              + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
              +     * The namespace active.
              +     * 
              + * + * READY = 2; + */ + READY(2), + /** + * + * + *
              +     * The namespace is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
              +     * The namespace is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The namespace is being created.
              +     * 
              + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
              +     * The namespace active.
              +     * 
              + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
              +     * The namespace is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
              +     * The namespace is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + public static final int UPDATING_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 Code 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 Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + 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 Code findValueByNumber(int number) { + return Code.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Code[] VALUES = values(); + + public static Code 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 Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.NamespaceLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
              +   * Output only. The current state of the Namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +   * Output only. The current state of the Namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code result = + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.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 (code_ + != com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ + != com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + 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.v1.NamespaceLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.NamespaceLifecycleState other = + (com.google.cloud.gkehub.v1.NamespaceLifecycleState) obj; + + if (code_ != other.code_) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState 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.v1.NamespaceLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState 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.v1.NamespaceLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.NamespaceLifecycleState 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * NamespaceLifecycleState describes the state of a Namespace resource.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.NamespaceLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.NamespaceLifecycleState) + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.NamespaceLifecycleState.class, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.NamespaceLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState build() { + com.google.cloud.gkehub.v1.NamespaceLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.NamespaceLifecycleState result = + new com.google.cloud.gkehub.v1.NamespaceLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.NamespaceLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.NamespaceLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.NamespaceLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.NamespaceLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance()) + return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + 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: + { + code_ = 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 code_ = 0; + + /** + * + * + *
              +     * Output only. The current state of the Namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +     * Output only. The current state of the Namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the Namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code result = + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Output only. The current state of the Namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the Namespace resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.NamespaceLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.NamespaceLifecycleState) + private static final com.google.cloud.gkehub.v1.NamespaceLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.NamespaceLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamespaceLifecycleState 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.v1.NamespaceLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..75d19f21e136 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface NamespaceLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.NamespaceLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The current state of the Namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
              +   * Output only. The current state of the Namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java new file mode 100644 index 000000000000..6969dab0449f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.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 NamespaceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SCOPE_NAMESPACE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/scopes/{scope}/namespaces/{namespace}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String scope; + private final String namespace; + + @Deprecated + protected NamespaceName() { + project = null; + location = null; + scope = null; + namespace = null; + } + + private NamespaceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + scope = Preconditions.checkNotNull(builder.getScope()); + namespace = Preconditions.checkNotNull(builder.getNamespace()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public String getNamespace() { + return namespace; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static NamespaceName of(String project, String location, String scope, String namespace) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setNamespace(namespace) + .build(); + } + + public static String format(String project, String location, String scope, String namespace) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setNamespace(namespace) + .build() + .toString(); + } + + public static NamespaceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SCOPE_NAMESPACE.validatedMatch( + formattedString, "NamespaceName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("scope"), + matchMap.get("namespace")); + } + + 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 (NamespaceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SCOPE_NAMESPACE.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 (scope != null) { + fieldMapBuilder.put("scope", scope); + } + if (namespace != null) { + fieldMapBuilder.put("namespace", namespace); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SCOPE_NAMESPACE.instantiate( + "project", project, "location", location, "scope", scope, "namespace", namespace); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + NamespaceName that = ((NamespaceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.scope, that.scope) + && Objects.equals(this.namespace, that.namespace); + } + 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(scope); + h *= 1000003; + h ^= Objects.hashCode(namespace); + return h; + } + + /** Builder for projects/{project}/locations/{location}/scopes/{scope}/namespaces/{namespace}. */ + public static class Builder { + private String project; + private String location; + private String scope; + private String namespace; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public String getNamespace() { + return namespace; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setScope(String scope) { + this.scope = scope; + return this; + } + + public Builder setNamespace(String namespace) { + this.namespace = namespace; + return this; + } + + private Builder(NamespaceName namespaceName) { + this.project = namespaceName.project; + this.location = namespaceName.location; + this.scope = namespaceName.scope; + this.namespace = namespaceName.namespace; + } + + public NamespaceName build() { + return new NamespaceName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceOrBuilder.java new file mode 100644 index 000000000000..928a96d118fc --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceOrBuilder.java @@ -0,0 +1,430 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface NamespaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Namespace) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The resource name for the namespace
              +   * `projects/{project}/locations/{location}/namespaces/{namespace}`
              +   * 
              + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * The resource name for the namespace
              +   * `projects/{project}/locations/{location}/namespaces/{namespace}`
              +   * 
              + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all namespace resources. If a namespace resource is deleted and another
              +   * resource with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all namespace resources. If a namespace resource is deleted and another
              +   * resource with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
              +   * Output only. When the namespace 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. When the namespace was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
              +   * Output only. When the namespace was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the namespace 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. When the namespace 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. When the namespace was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the namespace was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
              +   * Output only. When the namespace was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
              +   * Output only. When the namespace was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.NamespaceLifecycleState getState(); + + /** + * + * + *
              +   * Output only. State of the namespace resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
              +   * Required. Scope associated with the namespace
              +   * 
              + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scope. + */ + java.lang.String getScope(); + + /** + * + * + *
              +   * Required. Scope associated with the namespace
              +   * 
              + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scope. + */ + com.google.protobuf.ByteString getScopeBytes(); + + /** + * + * + *
              +   * Optional. Namespace-level cluster namespace labels. These labels are
              +   * applied to the related namespace of the member clusters bound to the parent
              +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +   * resource) take precedence over Namespace-level labels if they share
              +   * a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNamespaceLabelsCount(); + + /** + * + * + *
              +   * Optional. Namespace-level cluster namespace labels. These labels are
              +   * applied to the related namespace of the member clusters bound to the parent
              +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +   * resource) take precedence over Namespace-level labels if they share
              +   * a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsNamespaceLabels(java.lang.String key); + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getNamespaceLabels(); + + /** + * + * + *
              +   * Optional. Namespace-level cluster namespace labels. These labels are
              +   * applied to the related namespace of the member clusters bound to the parent
              +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +   * resource) take precedence over Namespace-level labels if they share
              +   * a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getNamespaceLabelsMap(); + + /** + * + * + *
              +   * Optional. Namespace-level cluster namespace labels. These labels are
              +   * applied to the related namespace of the member clusters bound to the parent
              +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +   * resource) take precedence over Namespace-level labels if they share
              +   * a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
              +   * Optional. Namespace-level cluster namespace labels. These labels are
              +   * applied to the related namespace of the member clusters bound to the parent
              +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
              +   * resource) take precedence over Namespace-level labels if they share
              +   * a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getNamespaceLabelsOrThrow(java.lang.String key); + + /** + * + * + *
              +   * Optional. Labels for this Namespace.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
              +   * Optional. Labels for this Namespace.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
              +   * Optional. Labels for this Namespace.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
              +   * Optional. Labels for this Namespace.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
              +   * Optional. Labels for this Namespace.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java index 48cbf720a8f5..084e7b351a1f 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java @@ -346,9 +346,10 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { *
                  * Output only. Identifies whether the user has requested cancellation
                  * of the operation. Operations that have successfully been cancelled
              -   * have [Operation.error][] value with a
              -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
              -   * `Code.CANCELLED`.
              +   * have
              +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
              +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
              +   * corresponding to `Code.CANCELLED`.
                  * 
              * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1645,9 +1646,10 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { *
                    * Output only. Identifies whether the user has requested cancellation
                    * of the operation. Operations that have successfully been cancelled
              -     * have [Operation.error][] value with a
              -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
              -     * `Code.CANCELLED`.
              +     * have
              +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
              +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
              +     * corresponding to `Code.CANCELLED`.
                    * 
              * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1665,9 +1667,10 @@ public boolean getCancelRequested() { *
                    * Output only. Identifies whether the user has requested cancellation
                    * of the operation. Operations that have successfully been cancelled
              -     * have [Operation.error][] value with a
              -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
              -     * `Code.CANCELLED`.
              +     * have
              +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
              +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
              +     * corresponding to `Code.CANCELLED`.
                    * 
              * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1689,9 +1692,10 @@ public Builder setCancelRequested(boolean value) { *
                    * Output only. Identifies whether the user has requested cancellation
                    * of the operation. Operations that have successfully been cancelled
              -     * have [Operation.error][] value with a
              -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
              -     * `Code.CANCELLED`.
              +     * have
              +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
              +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
              +     * corresponding to `Code.CANCELLED`.
                    * 
              * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java index 0ce0ebcb2f8f..8ecb6a8a2d30 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java @@ -190,9 +190,10 @@ public interface OperationMetadataOrBuilder *
                  * Output only. Identifies whether the user has requested cancellation
                  * of the operation. Operations that have successfully been cancelled
              -   * have [Operation.error][] value with a
              -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
              -   * `Code.CANCELLED`.
              +   * have
              +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
              +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
              +   * corresponding to `Code.CANCELLED`.
                  * 
              * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBinding.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBinding.java new file mode 100644 index 000000000000..e4f573403982 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBinding.java @@ -0,0 +1,4295 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * RBACRoleBinding represents a rbacrolebinding across the Fleet
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBinding} + */ +@com.google.protobuf.Generated +public final class RBACRoleBinding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.RBACRoleBinding) + RBACRoleBindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RBACRoleBinding"); + } + + // Use RBACRoleBinding.newBuilder() to construct. + private RBACRoleBinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RBACRoleBinding() { + name_ = ""; + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBinding.class, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder.class); + } + + public interface RoleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.RBACRoleBinding.Role) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +     * predefined_role is the Kubernetes default role to use
              +     * 
              + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The enum numeric value on the wire for predefinedRole. + */ + int getPredefinedRoleValue(); + + /** + * + * + *
              +     * predefined_role is the Kubernetes default role to use
              +     * 
              + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The predefinedRole. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles getPredefinedRole(); + + /** + * + * + *
              +     * Optional. custom_role is the name of a custom KubernetesClusterRole to
              +     * use.
              +     * 
              + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customRole. + */ + java.lang.String getCustomRole(); + + /** + * + * + *
              +     * Optional. custom_role is the name of a custom KubernetesClusterRole to
              +     * use.
              +     * 
              + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customRole. + */ + com.google.protobuf.ByteString getCustomRoleBytes(); + } + + /** + * + * + *
              +   * Role is the type for Kubernetes roles
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBinding.Role} + */ + public static final class Role extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.RBACRoleBinding.Role) + RoleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Role"); + } + + // Use Role.newBuilder() to construct. + private Role(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Role() { + predefinedRole_ = 0; + customRole_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.class, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder.class); + } + + /** + * + * + *
              +     * PredefinedRoles is an ENUM representation of the default Kubernetes Roles
              +     * 
              + * + * Protobuf enum {@code google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles} + */ + public enum PredefinedRoles implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +       * UNKNOWN
              +       * 
              + * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
              +       * ADMIN has EDIT and RBAC permissions
              +       * 
              + * + * ADMIN = 1; + */ + ADMIN(1), + /** + * + * + *
              +       * EDIT can edit all resources except RBAC
              +       * 
              + * + * EDIT = 2; + */ + EDIT(2), + /** + * + * + *
              +       * VIEW can only read resources
              +       * 
              + * + * VIEW = 3; + */ + VIEW(3), + /** + * + * + *
              +       * ANTHOS_SUPPORT gives Google Support read-only access to a number of
              +       * cluster resources.
              +       * 
              + * + * ANTHOS_SUPPORT = 4; + */ + ANTHOS_SUPPORT(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PredefinedRoles"); + } + + /** + * + * + *
              +       * UNKNOWN
              +       * 
              + * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + + /** + * + * + *
              +       * ADMIN has EDIT and RBAC permissions
              +       * 
              + * + * ADMIN = 1; + */ + public static final int ADMIN_VALUE = 1; + + /** + * + * + *
              +       * EDIT can edit all resources except RBAC
              +       * 
              + * + * EDIT = 2; + */ + public static final int EDIT_VALUE = 2; + + /** + * + * + *
              +       * VIEW can only read resources
              +       * 
              + * + * VIEW = 3; + */ + public static final int VIEW_VALUE = 3; + + /** + * + * + *
              +       * ANTHOS_SUPPORT gives Google Support read-only access to a number of
              +       * cluster resources.
              +       * 
              + * + * ANTHOS_SUPPORT = 4; + */ + public static final int ANTHOS_SUPPORT_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 PredefinedRoles 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 PredefinedRoles forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return ADMIN; + case 2: + return EDIT; + case 3: + return VIEW; + case 4: + return ANTHOS_SUPPORT; + 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 PredefinedRoles findValueByNumber(int number) { + return PredefinedRoles.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PredefinedRoles[] VALUES = values(); + + public static PredefinedRoles 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 PredefinedRoles(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles) + } + + public static final int PREDEFINED_ROLE_FIELD_NUMBER = 1; + private int predefinedRole_ = 0; + + /** + * + * + *
              +     * predefined_role is the Kubernetes default role to use
              +     * 
              + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The enum numeric value on the wire for predefinedRole. + */ + @java.lang.Override + public int getPredefinedRoleValue() { + return predefinedRole_; + } + + /** + * + * + *
              +     * predefined_role is the Kubernetes default role to use
              +     * 
              + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The predefinedRole. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles getPredefinedRole() { + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles result = + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.forNumber( + predefinedRole_); + return result == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.UNRECOGNIZED + : result; + } + + public static final int CUSTOM_ROLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object customRole_ = ""; + + /** + * + * + *
              +     * Optional. custom_role is the name of a custom KubernetesClusterRole to
              +     * use.
              +     * 
              + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customRole. + */ + @java.lang.Override + public java.lang.String getCustomRole() { + java.lang.Object ref = customRole_; + 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(); + customRole_ = s; + return s; + } + } + + /** + * + * + *
              +     * Optional. custom_role is the name of a custom KubernetesClusterRole to
              +     * use.
              +     * 
              + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customRole. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomRoleBytes() { + java.lang.Object ref = customRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customRole_ = 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 (predefinedRole_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.UNKNOWN.getNumber()) { + output.writeEnum(1, predefinedRole_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customRole_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, customRole_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (predefinedRole_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, predefinedRole_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customRole_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, customRole_); + } + 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.v1.RBACRoleBinding.Role)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.RBACRoleBinding.Role other = + (com.google.cloud.gkehub.v1.RBACRoleBinding.Role) obj; + + if (predefinedRole_ != other.predefinedRole_) return false; + if (!getCustomRole().equals(other.getCustomRole())) 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) + PREDEFINED_ROLE_FIELD_NUMBER; + hash = (53 * hash) + predefinedRole_; + hash = (37 * hash) + CUSTOM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getCustomRole().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role 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.v1.RBACRoleBinding.Role parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role 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.v1.RBACRoleBinding.Role parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.RBACRoleBinding.Role 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +     * Role is the type for Kubernetes roles
              +     * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBinding.Role} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.RBACRoleBinding.Role) + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.class, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.RBACRoleBinding.Role.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predefinedRole_ = 0; + customRole_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role build() { + com.google.cloud.gkehub.v1.RBACRoleBinding.Role result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role buildPartial() { + com.google.cloud.gkehub.v1.RBACRoleBinding.Role result = + new com.google.cloud.gkehub.v1.RBACRoleBinding.Role(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.RBACRoleBinding.Role result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predefinedRole_ = predefinedRole_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customRole_ = customRole_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.RBACRoleBinding.Role) { + return mergeFrom((com.google.cloud.gkehub.v1.RBACRoleBinding.Role) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.RBACRoleBinding.Role other) { + if (other == com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance()) + return this; + if (other.predefinedRole_ != 0) { + setPredefinedRoleValue(other.getPredefinedRoleValue()); + } + if (!other.getCustomRole().isEmpty()) { + customRole_ = other.customRole_; + 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: + { + predefinedRole_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + customRole_ = 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 predefinedRole_ = 0; + + /** + * + * + *
              +       * predefined_role is the Kubernetes default role to use
              +       * 
              + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The enum numeric value on the wire for predefinedRole. + */ + @java.lang.Override + public int getPredefinedRoleValue() { + return predefinedRole_; + } + + /** + * + * + *
              +       * predefined_role is the Kubernetes default role to use
              +       * 
              + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @param value The enum numeric value on the wire for predefinedRole to set. + * @return This builder for chaining. + */ + public Builder setPredefinedRoleValue(int value) { + predefinedRole_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +       * predefined_role is the Kubernetes default role to use
              +       * 
              + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The predefinedRole. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles getPredefinedRole() { + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles result = + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.forNumber( + predefinedRole_); + return result == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +       * predefined_role is the Kubernetes default role to use
              +       * 
              + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @param value The predefinedRole to set. + * @return This builder for chaining. + */ + public Builder setPredefinedRole( + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + predefinedRole_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +       * predefined_role is the Kubernetes default role to use
              +       * 
              + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearPredefinedRole() { + bitField0_ = (bitField0_ & ~0x00000001); + predefinedRole_ = 0; + onChanged(); + return this; + } + + private java.lang.Object customRole_ = ""; + + /** + * + * + *
              +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
              +       * use.
              +       * 
              + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customRole. + */ + public java.lang.String getCustomRole() { + java.lang.Object ref = customRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
              +       * use.
              +       * 
              + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customRole. + */ + public com.google.protobuf.ByteString getCustomRoleBytes() { + java.lang.Object ref = customRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
              +       * use.
              +       * 
              + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The customRole to set. + * @return This builder for chaining. + */ + public Builder setCustomRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customRole_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
              +       * use.
              +       * 
              + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCustomRole() { + customRole_ = getDefaultInstance().getCustomRole(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
              +       * use.
              +       * 
              + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for customRole to set. + * @return This builder for chaining. + */ + public Builder setCustomRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customRole_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.RBACRoleBinding.Role) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.RBACRoleBinding.Role) + private static final com.google.cloud.gkehub.v1.RBACRoleBinding.Role DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.RBACRoleBinding.Role(); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Role 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.v1.RBACRoleBinding.Role getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int principalCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object principal_; + + public enum PrincipalCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER(7), + GROUP(8), + PRINCIPAL_NOT_SET(0); + private final int value; + + private PrincipalCase(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 PrincipalCase valueOf(int value) { + return forNumber(value); + } + + public static PrincipalCase forNumber(int value) { + switch (value) { + case 7: + return USER; + case 8: + return GROUP; + case 0: + return PRINCIPAL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public static final int USER_FIELD_NUMBER = 7; + + /** + * + * + *
              +   * user is the name of the user as seen by the kubernetes cluster, example
              +   * "alice" or "alice@domain.tld"
              +   * 
              + * + * string user = 7; + * + * @return Whether the user field is set. + */ + public boolean hasUser() { + return principalCase_ == 7; + } + + /** + * + * + *
              +   * user is the name of the user as seen by the kubernetes cluster, example
              +   * "alice" or "alice@domain.tld"
              +   * 
              + * + * string user = 7; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (principalCase_ == 7) { + ref = principal_; + } + 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(); + if (principalCase_ == 7) { + principal_ = s; + } + return s; + } + } + + /** + * + * + *
              +   * user is the name of the user as seen by the kubernetes cluster, example
              +   * "alice" or "alice@domain.tld"
              +   * 
              + * + * string user = 7; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 7) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 7) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_FIELD_NUMBER = 8; + + /** + * + * + *
              +   * group is the group, as seen by the kubernetes cluster.
              +   * 
              + * + * string group = 8; + * + * @return Whether the group field is set. + */ + public boolean hasGroup() { + return principalCase_ == 8; + } + + /** + * + * + *
              +   * group is the group, as seen by the kubernetes cluster.
              +   * 
              + * + * string group = 8; + * + * @return The group. + */ + public java.lang.String getGroup() { + java.lang.Object ref = ""; + if (principalCase_ == 8) { + ref = principal_; + } + 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(); + if (principalCase_ == 8) { + principal_ = s; + } + return s; + } + } + + /** + * + * + *
              +   * group is the group, as seen by the kubernetes cluster.
              +   * 
              + * + * string group = 8; + * + * @return The bytes for group. + */ + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 8) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 8) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * The resource name for the rbacrolebinding
              +   * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
              +   * or
              +   * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
              +   * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +   * The resource name for the rbacrolebinding
              +   * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
              +   * or
              +   * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
              +   * 
              + * + * string name = 1; + * + * @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 UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
              +   * another resource with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
              +   * another resource with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = 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. When the rbacrolebinding 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. When the rbacrolebinding 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. When the rbacrolebinding 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. When the rbacrolebinding 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. When the rbacrolebinding 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. When the rbacrolebinding 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 DELETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
              +   * Output only. When the rbacrolebinding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +   * Output only. When the rbacrolebinding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
              +   * Output only. When the rbacrolebinding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state_; + + /** + * + * + *
              +   * Output only. State of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
              +   * Output only. State of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
              +   * Output only. State of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance() + : state_; + } + + public static final int ROLE_FIELD_NUMBER = 9; + private com.google.cloud.gkehub.v1.RBACRoleBinding.Role role_; + + /** + * + * + *
              +   * Required. Role to bind to the principal
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the role field is set. + */ + @java.lang.Override + public boolean hasRole() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
              +   * Required. Role to bind to the principal
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The role. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role getRole() { + return role_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance() + : role_; + } + + /** + * + * + *
              +   * Required. Role to bind to the principal
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder getRoleOrBuilder() { + return role_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance() + : role_; + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_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 for this RBACRolebinding.
              +   * 
              + * + * map<string, string> labels = 10 [(.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 for this RBACRolebinding.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +   * Optional. Labels for this RBACRolebinding.
              +   * 
              + * + * map<string, string> labels = 10 [(.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 for this RBACRolebinding.
              +   * 
              + * + * map<string, string> labels = 10 [(.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); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getState()); + } + if (principalCase_ == 7) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, principal_); + } + if (principalCase_ == 8) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, principal_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(9, getRole()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + 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(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + if (principalCase_ == 7) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, principal_); + } + if (principalCase_ == 8) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, principal_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRole()); + } + 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(10, labels__); + } + 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.v1.RBACRoleBinding)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.RBACRoleBinding other = + (com.google.cloud.gkehub.v1.RBACRoleBinding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (hasRole() != other.hasRole()) return false; + if (hasRole()) { + if (!getRole().equals(other.getRole())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getPrincipalCase().equals(other.getPrincipalCase())) return false; + switch (principalCase_) { + case 7: + if (!getUser().equals(other.getUser())) return false; + break; + case 8: + if (!getGroup().equals(other.getGroup())) 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(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().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 (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (hasRole()) { + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + switch (principalCase_) { + case 7: + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + break; + case 8: + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding 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.v1.RBACRoleBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding 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.v1.RBACRoleBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.RBACRoleBinding 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * RBACRoleBinding represents a rbacrolebinding across the Fleet
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.RBACRoleBinding) + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBinding.class, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.RBACRoleBinding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + internalGetRoleFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + role_ = null; + if (roleBuilder_ != null) { + roleBuilder_.dispose(); + roleBuilder_ = null; + } + internalGetMutableLabels().clear(); + principalCase_ = 0; + principal_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding build() { + com.google.cloud.gkehub.v1.RBACRoleBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding buildPartial() { + com.google.cloud.gkehub.v1.RBACRoleBinding result = + new com.google.cloud.gkehub.v1.RBACRoleBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.RBACRoleBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.role_ = roleBuilder_ == null ? role_ : roleBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.gkehub.v1.RBACRoleBinding result) { + result.principalCase_ = principalCase_; + result.principal_ = this.principal_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.RBACRoleBinding) { + return mergeFrom((com.google.cloud.gkehub.v1.RBACRoleBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.RBACRoleBinding other) { + if (other == com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + if (other.hasRole()) { + mergeRole(other.getRole()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000200; + switch (other.getPrincipalCase()) { + case USER: + { + principalCase_ = 7; + principal_ = other.principal_; + onChanged(); + break; + } + case GROUP: + { + principalCase_ = 8; + principal_ = other.principal_; + onChanged(); + break; + } + case PRINCIPAL_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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 7; + principal_ = s; + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 8; + principal_ = s; + break; + } // case 66 + case 74: + { + input.readMessage(internalGetRoleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + 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 principalCase_ = 0; + private java.lang.Object principal_; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public Builder clearPrincipal() { + principalCase_ = 0; + principal_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
              +     * user is the name of the user as seen by the kubernetes cluster, example
              +     * "alice" or "alice@domain.tld"
              +     * 
              + * + * string user = 7; + * + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return principalCase_ == 7; + } + + /** + * + * + *
              +     * user is the name of the user as seen by the kubernetes cluster, example
              +     * "alice" or "alice@domain.tld"
              +     * 
              + * + * string user = 7; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (principalCase_ == 7) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 7) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * user is the name of the user as seen by the kubernetes cluster, example
              +     * "alice" or "alice@domain.tld"
              +     * 
              + * + * string user = 7; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 7) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 7) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * user is the name of the user as seen by the kubernetes cluster, example
              +     * "alice" or "alice@domain.tld"
              +     * 
              + * + * string user = 7; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 7; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
              +     * user is the name of the user as seen by the kubernetes cluster, example
              +     * "alice" or "alice@domain.tld"
              +     * 
              + * + * string user = 7; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + if (principalCase_ == 7) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * user is the name of the user as seen by the kubernetes cluster, example
              +     * "alice" or "alice@domain.tld"
              +     * 
              + * + * string user = 7; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 7; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
              +     * group is the group, as seen by the kubernetes cluster.
              +     * 
              + * + * string group = 8; + * + * @return Whether the group field is set. + */ + @java.lang.Override + public boolean hasGroup() { + return principalCase_ == 8; + } + + /** + * + * + *
              +     * group is the group, as seen by the kubernetes cluster.
              +     * 
              + * + * string group = 8; + * + * @return The group. + */ + @java.lang.Override + public java.lang.String getGroup() { + java.lang.Object ref = ""; + if (principalCase_ == 8) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 8) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * group is the group, as seen by the kubernetes cluster.
              +     * 
              + * + * string group = 8; + * + * @return The bytes for group. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 8) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 8) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * group is the group, as seen by the kubernetes cluster.
              +     * 
              + * + * string group = 8; + * + * @param value The group to set. + * @return This builder for chaining. + */ + public Builder setGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 8; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
              +     * group is the group, as seen by the kubernetes cluster.
              +     * 
              + * + * string group = 8; + * + * @return This builder for chaining. + */ + public Builder clearGroup() { + if (principalCase_ == 8) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * group is the group, as seen by the kubernetes cluster.
              +     * 
              + * + * string group = 8; + * + * @param value The bytes for group to set. + * @return This builder for chaining. + */ + public Builder setGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 8; + principal_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
              +     * The resource name for the rbacrolebinding
              +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
              +     * or
              +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +     * The resource name for the rbacrolebinding
              +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
              +     * or
              +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +     * The resource name for the rbacrolebinding
              +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
              +     * or
              +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
              +     * 
              + * + * string name = 1; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * The resource name for the rbacrolebinding
              +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
              +     * or
              +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
              +     * 
              + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * The resource name for the rbacrolebinding
              +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
              +     * or
              +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
              +     * 
              + * + * string name = 1; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
              +     * another resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
              +     * another resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
              +     * another resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
              +     * another resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
              +     * another resource with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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_ & 0x00000010) != 0); + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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. When the rbacrolebinding 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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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. When the rbacrolebinding was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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_ & 0x00000020) != 0); + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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. When the rbacrolebinding 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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding 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. When the rbacrolebinding was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000040); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
              +     * Output only. When the rbacrolebinding was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
              +     * Output only. State of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
              +     * Output only. State of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. State of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && state_ != null + && state_ + != com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. State of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. State of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
              +     * Output only. State of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private com.google.cloud.gkehub.v1.RBACRoleBinding.Role role_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding.Role, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder, + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder> + roleBuilder_; + + /** + * + * + *
              +     * Required. Role to bind to the principal
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the role field is set. + */ + public boolean hasRole() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
              +     * Required. Role to bind to the principal
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The role. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role getRole() { + if (roleBuilder_ == null) { + return role_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance() + : role_; + } else { + return roleBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. Role to bind to the principal
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRole(com.google.cloud.gkehub.v1.RBACRoleBinding.Role value) { + if (roleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + role_ = value; + } else { + roleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Role to bind to the principal
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRole( + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder builderForValue) { + if (roleBuilder_ == null) { + role_ = builderForValue.build(); + } else { + roleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Role to bind to the principal
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRole(com.google.cloud.gkehub.v1.RBACRoleBinding.Role value) { + if (roleBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && role_ != null + && role_ != com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance()) { + getRoleBuilder().mergeFrom(value); + } else { + role_ = value; + } + } else { + roleBuilder_.mergeFrom(value); + } + if (role_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. Role to bind to the principal
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRole() { + bitField0_ = (bitField0_ & ~0x00000100); + role_ = null; + if (roleBuilder_ != null) { + roleBuilder_.dispose(); + roleBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Role to bind to the principal
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder getRoleBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetRoleFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. Role to bind to the principal
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder getRoleOrBuilder() { + if (roleBuilder_ != null) { + return roleBuilder_.getMessageOrBuilder(); + } else { + return role_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance() + : role_; + } + } + + /** + * + * + *
              +     * Required. Role to bind to the principal
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding.Role, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder, + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder> + internalGetRoleFieldBuilder() { + if (roleBuilder_ == null) { + roleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding.Role, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder, + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder>( + getRole(), getParentForChildren(), isClean()); + role_ = null; + } + return roleBuilder_; + } + + 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_ |= 0x00000200; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
              +     * Optional. Labels for this RBACRolebinding.
              +     * 
              + * + * map<string, string> labels = 10 [(.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 for this RBACRolebinding.
              +     * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this RBACRolebinding.
              +     * 
              + * + * map<string, string> labels = 10 [(.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 for this RBACRolebinding.
              +     * 
              + * + * map<string, string> labels = 10 [(.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_ & ~0x00000200); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this RBACRolebinding.
              +     * 
              + * + * map<string, string> labels = 10 [(.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_ |= 0x00000200; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this RBACRolebinding.
              +     * 
              + * + * map<string, string> labels = 10 [(.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_ |= 0x00000200; + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this RBACRolebinding.
              +     * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000200; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.RBACRoleBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.RBACRoleBinding) + private static final com.google.cloud.gkehub.v1.RBACRoleBinding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.RBACRoleBinding(); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RBACRoleBinding 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.v1.RBACRoleBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleState.java new file mode 100644 index 000000000000..4175ea2880e1 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleState.java @@ -0,0 +1,804 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding
              + * resource.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBindingLifecycleState} + */ +@com.google.protobuf.Generated +public final class RBACRoleBindingLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + RBACRoleBindingLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RBACRoleBindingLifecycleState"); + } + + // Use RBACRoleBindingLifecycleState.newBuilder() to construct. + private RBACRoleBindingLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RBACRoleBindingLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.class, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder.class); + } + + /** + * + * + *
              +   * Code describes the state of a rbacrolebinding resource.
              +   * 
              + * + * Protobuf enum {@code google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
              +     * The rbacrolebinding is being created.
              +     * 
              + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
              +     * The rbacrolebinding active.
              +     * 
              + * + * READY = 2; + */ + READY(2), + /** + * + * + *
              +     * The rbacrolebinding is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
              +     * The rbacrolebinding is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The rbacrolebinding is being created.
              +     * 
              + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
              +     * The rbacrolebinding active.
              +     * 
              + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
              +     * The rbacrolebinding is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
              +     * The rbacrolebinding is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + public static final int UPDATING_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 Code 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 Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + 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 Code findValueByNumber(int number) { + return Code.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Code[] VALUES = values(); + + public static Code 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 Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
              +   * Output only. The current state of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +   * Output only. The current state of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code result = + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.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 (code_ + != com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ + != com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + 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.v1.RBACRoleBindingLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState other = + (com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) obj; + + if (code_ != other.code_) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState 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.v1.RBACRoleBindingLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState 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.v1.RBACRoleBindingLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.RBACRoleBindingLifecycleState 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding
              +   * resource.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBindingLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.class, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState build() { + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState result = + new com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance()) + return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + 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: + { + code_ = 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 code_ = 0; + + /** + * + * + *
              +     * Output only. The current state of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +     * Output only. The current state of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code result = + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Output only. The current state of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the rbacrolebinding resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + private static final com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RBACRoleBindingLifecycleState 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.v1.RBACRoleBindingLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..49735fd9f0ad --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface RBACRoleBindingLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The current state of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
              +   * Output only. The current state of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java new file mode 100644 index 000000000000..75da08410a70 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java @@ -0,0 +1,411 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 RBACRoleBindingName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SCOPE_RBACROLEBINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}"); + private static final PathTemplate PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String scope; + private final String rbacrolebinding; + private final String membership; + + @Deprecated + protected RBACRoleBindingName() { + project = null; + location = null; + scope = null; + rbacrolebinding = null; + membership = null; + } + + private RBACRoleBindingName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + scope = Preconditions.checkNotNull(builder.getScope()); + rbacrolebinding = Preconditions.checkNotNull(builder.getRbacrolebinding()); + membership = null; + pathTemplate = PROJECT_LOCATION_SCOPE_RBACROLEBINDING; + } + + private RBACRoleBindingName(ProjectLocationMembershipRbacrolebindingBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + membership = Preconditions.checkNotNull(builder.getMembership()); + rbacrolebinding = Preconditions.checkNotNull(builder.getRbacrolebinding()); + scope = null; + pathTemplate = PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public String getRbacrolebinding() { + return rbacrolebinding; + } + + public String getMembership() { + return membership; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationScopeRbacrolebindingBuilder() { + return new Builder(); + } + + public static ProjectLocationMembershipRbacrolebindingBuilder + newProjectLocationMembershipRbacrolebindingBuilder() { + return new ProjectLocationMembershipRbacrolebindingBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RBACRoleBindingName of( + String project, String location, String scope, String rbacrolebinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setRbacrolebinding(rbacrolebinding) + .build(); + } + + public static RBACRoleBindingName ofProjectLocationScopeRbacrolebindingName( + String project, String location, String scope, String rbacrolebinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setRbacrolebinding(rbacrolebinding) + .build(); + } + + public static RBACRoleBindingName ofProjectLocationMembershipRbacrolebindingName( + String project, String location, String membership, String rbacrolebinding) { + return newProjectLocationMembershipRbacrolebindingBuilder() + .setProject(project) + .setLocation(location) + .setMembership(membership) + .setRbacrolebinding(rbacrolebinding) + .build(); + } + + public static String format( + String project, String location, String scope, String rbacrolebinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setRbacrolebinding(rbacrolebinding) + .build() + .toString(); + } + + public static String formatProjectLocationScopeRbacrolebindingName( + String project, String location, String scope, String rbacrolebinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setRbacrolebinding(rbacrolebinding) + .build() + .toString(); + } + + public static String formatProjectLocationMembershipRbacrolebindingName( + String project, String location, String membership, String rbacrolebinding) { + return newProjectLocationMembershipRbacrolebindingBuilder() + .setProject(project) + .setLocation(location) + .setMembership(membership) + .setRbacrolebinding(rbacrolebinding) + .build() + .toString(); + } + + public static RBACRoleBindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_SCOPE_RBACROLEBINDING.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_SCOPE_RBACROLEBINDING.match(formattedString); + return ofProjectLocationScopeRbacrolebindingName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("scope"), + matchMap.get("rbacrolebinding")); + } else if (PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING.match(formattedString); + return ofProjectLocationMembershipRbacrolebindingName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("membership"), + matchMap.get("rbacrolebinding")); + } + throw new ValidationException("RBACRoleBindingName.parse: formattedString not in valid format"); + } + + 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 (RBACRoleBindingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SCOPE_RBACROLEBINDING.matches(formattedString) + || PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING.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 (scope != null) { + fieldMapBuilder.put("scope", scope); + } + if (rbacrolebinding != null) { + fieldMapBuilder.put("rbacrolebinding", rbacrolebinding); + } + if (membership != null) { + fieldMapBuilder.put("membership", membership); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RBACRoleBindingName that = ((RBACRoleBindingName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.scope, that.scope) + && Objects.equals(this.rbacrolebinding, that.rbacrolebinding) + && Objects.equals(this.membership, that.membership); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(scope); + h *= 1000003; + h ^= Objects.hashCode(rbacrolebinding); + h *= 1000003; + h ^= Objects.hashCode(membership); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}. + */ + public static class Builder { + private String project; + private String location; + private String scope; + private String rbacrolebinding; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public String getRbacrolebinding() { + return rbacrolebinding; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setScope(String scope) { + this.scope = scope; + return this; + } + + public Builder setRbacrolebinding(String rbacrolebinding) { + this.rbacrolebinding = rbacrolebinding; + return this; + } + + private Builder(RBACRoleBindingName rBACRoleBindingName) { + Preconditions.checkArgument( + Objects.equals(rBACRoleBindingName.pathTemplate, PROJECT_LOCATION_SCOPE_RBACROLEBINDING), + "toBuilder is only supported when RBACRoleBindingName has the pattern of" + + " projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}"); + this.project = rBACRoleBindingName.project; + this.location = rBACRoleBindingName.location; + this.scope = rBACRoleBindingName.scope; + this.rbacrolebinding = rBACRoleBindingName.rbacrolebinding; + } + + public RBACRoleBindingName build() { + return new RBACRoleBindingName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}. + */ + public static class ProjectLocationMembershipRbacrolebindingBuilder { + private String project; + private String location; + private String membership; + private String rbacrolebinding; + + protected ProjectLocationMembershipRbacrolebindingBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMembership() { + return membership; + } + + public String getRbacrolebinding() { + return rbacrolebinding; + } + + public ProjectLocationMembershipRbacrolebindingBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationMembershipRbacrolebindingBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationMembershipRbacrolebindingBuilder setMembership(String membership) { + this.membership = membership; + return this; + } + + public ProjectLocationMembershipRbacrolebindingBuilder setRbacrolebinding( + String rbacrolebinding) { + this.rbacrolebinding = rbacrolebinding; + return this; + } + + public RBACRoleBindingName build() { + return new RBACRoleBindingName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingOrBuilder.java new file mode 100644 index 000000000000..b16f7f8900bd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingOrBuilder.java @@ -0,0 +1,442 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface RBACRoleBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.RBACRoleBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * user is the name of the user as seen by the kubernetes cluster, example
              +   * "alice" or "alice@domain.tld"
              +   * 
              + * + * string user = 7; + * + * @return Whether the user field is set. + */ + boolean hasUser(); + + /** + * + * + *
              +   * user is the name of the user as seen by the kubernetes cluster, example
              +   * "alice" or "alice@domain.tld"
              +   * 
              + * + * string user = 7; + * + * @return The user. + */ + java.lang.String getUser(); + + /** + * + * + *
              +   * user is the name of the user as seen by the kubernetes cluster, example
              +   * "alice" or "alice@domain.tld"
              +   * 
              + * + * string user = 7; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * + * + *
              +   * group is the group, as seen by the kubernetes cluster.
              +   * 
              + * + * string group = 8; + * + * @return Whether the group field is set. + */ + boolean hasGroup(); + + /** + * + * + *
              +   * group is the group, as seen by the kubernetes cluster.
              +   * 
              + * + * string group = 8; + * + * @return The group. + */ + java.lang.String getGroup(); + + /** + * + * + *
              +   * group is the group, as seen by the kubernetes cluster.
              +   * 
              + * + * string group = 8; + * + * @return The bytes for group. + */ + com.google.protobuf.ByteString getGroupBytes(); + + /** + * + * + *
              +   * The resource name for the rbacrolebinding
              +   * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
              +   * or
              +   * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
              +   * 
              + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * The resource name for the rbacrolebinding
              +   * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
              +   * or
              +   * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
              +   * 
              + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
              +   * another resource with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
              +   * another resource with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
              +   * Output only. When the rbacrolebinding 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. When the rbacrolebinding was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
              +   * Output only. When the rbacrolebinding was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the rbacrolebinding 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. When the rbacrolebinding 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. When the rbacrolebinding was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the rbacrolebinding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
              +   * Output only. When the rbacrolebinding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
              +   * Output only. When the rbacrolebinding was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. State of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
              +   * Output only. State of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getState(); + + /** + * + * + *
              +   * Output only. State of the rbacrolebinding resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
              +   * Required. Role to bind to the principal
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the role field is set. + */ + boolean hasRole(); + + /** + * + * + *
              +   * Required. Role to bind to the principal
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The role. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding.Role getRole(); + + /** + * + * + *
              +   * Required. Role to bind to the principal
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder getRoleOrBuilder(); + + /** + * + * + *
              +   * Optional. Labels for this RBACRolebinding.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
              +   * Optional. Labels for this RBACRolebinding.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
              +   * Optional. Labels for this RBACRolebinding.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
              +   * Optional. Labels for this RBACRolebinding.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
              +   * Optional. Labels for this RBACRolebinding.
              +   * 
              + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + com.google.cloud.gkehub.v1.RBACRoleBinding.PrincipalCase getPrincipalCase(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Scope.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Scope.java new file mode 100644 index 000000000000..7d26330fd9e2 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Scope.java @@ -0,0 +1,2749 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Scope represents a Scope in a Fleet.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.Scope} + */ +@com.google.protobuf.Generated +public final class Scope extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Scope) + ScopeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Scope"); + } + + // Use Scope.newBuilder() to construct. + private Scope(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Scope() { + name_ = ""; + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetNamespaceLabels(); + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Scope.class, com.google.cloud.gkehub.v1.Scope.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * The resource name for the scope
              +   * `projects/{project}/locations/{location}/scopes/{scope}`
              +   * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +   * The resource name for the scope
              +   * `projects/{project}/locations/{location}/scopes/{scope}`
              +   * 
              + * + * string name = 1; + * + * @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 UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all scope resources. If a scope resource is deleted and another resource
              +   * with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all scope resources. If a scope resource is deleted and another resource
              +   * with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = 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. When the scope 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. When the scope 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. When the scope 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. When the scope 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. When the scope 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. When the scope 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 DELETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
              +   * Output only. When the scope was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +   * Output only. When the scope was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
              +   * Output only. When the scope was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private com.google.cloud.gkehub.v1.ScopeLifecycleState state_; + + /** + * + * + *
              +   * Output only. State of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
              +   * Output only. State of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
              +   * Output only. State of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance() + : state_; + } + + public static final int NAMESPACE_LABELS_FIELD_NUMBER = 8; + + private static final class NamespaceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField namespaceLabels_; + + private com.google.protobuf.MapField + internalGetNamespaceLabels() { + if (namespaceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + return namespaceLabels_; + } + + public int getNamespaceLabelsCount() { + return internalGetNamespaceLabels().getMap().size(); + } + + /** + * + * + *
              +   * Optional. Scope-level cluster namespace labels. For the member clusters
              +   * bound to the Scope, these labels are applied to each namespace under the
              +   * Scope. Scope-level labels take precedence over Namespace-level
              +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +   * share a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNamespaceLabels().getMap().containsKey(key); + } + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNamespaceLabels() { + return getNamespaceLabelsMap(); + } + + /** + * + * + *
              +   * Optional. Scope-level cluster namespace labels. For the member clusters
              +   * bound to the Scope, these labels are applied to each namespace under the
              +   * Scope. Scope-level labels take precedence over Namespace-level
              +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +   * share a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getNamespaceLabelsMap() { + return internalGetNamespaceLabels().getMap(); + } + + /** + * + * + *
              +   * Optional. Scope-level cluster namespace labels. For the member clusters
              +   * bound to the Scope, these labels are applied to each namespace under the
              +   * Scope. Scope-level labels take precedence over Namespace-level
              +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +   * share a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
              +   * Optional. Scope-level cluster namespace labels. For the member clusters
              +   * bound to the Scope, these labels are applied to each namespace under the
              +   * Scope. Scope-level labels take precedence over Namespace-level
              +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +   * share a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getNamespaceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABELS_FIELD_NUMBER = 9; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_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 for this Scope.
              +   * 
              + * + * map<string, string> labels = 9 [(.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 for this Scope.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +   * Optional. Labels for this Scope.
              +   * 
              + * + * map<string, string> labels = 9 [(.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 for this Scope.
              +   * 
              + * + * map<string, string> labels = 9 [(.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); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getState()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetNamespaceLabels(), NamespaceLabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + 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(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + for (java.util.Map.Entry entry : + internalGetNamespaceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry namespaceLabels__ = + NamespaceLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, namespaceLabels__); + } + 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(9, labels__); + } + 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.v1.Scope)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.Scope other = (com.google.cloud.gkehub.v1.Scope) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!internalGetNamespaceLabels().equals(other.internalGetNamespaceLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().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 (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (!internalGetNamespaceLabels().getMap().isEmpty()) { + hash = (37 * hash) + NAMESPACE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetNamespaceLabels().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Scope 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.v1.Scope parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Scope 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.v1.Scope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Scope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Scope parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.Scope 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Scope represents a Scope in a Fleet.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.Scope} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Scope) + com.google.cloud.gkehub.v1.ScopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetNamespaceLabels(); + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMutableNamespaceLabels(); + case 9: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Scope.class, + com.google.cloud.gkehub.v1.Scope.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.Scope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + internalGetMutableNamespaceLabels().clear(); + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.Scope.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope build() { + com.google.cloud.gkehub.v1.Scope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope buildPartial() { + com.google.cloud.gkehub.v1.Scope result = new com.google.cloud.gkehub.v1.Scope(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.Scope result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + 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.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.namespaceLabels_ = internalGetNamespaceLabels(); + result.namespaceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.Scope) { + return mergeFrom((com.google.cloud.gkehub.v1.Scope) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.Scope other) { + if (other == com.google.cloud.gkehub.v1.Scope.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + internalGetMutableNamespaceLabels().mergeFrom(other.internalGetNamespaceLabels()); + bitField0_ |= 0x00000040; + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; + 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: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: + { + com.google.protobuf.MapEntry namespaceLabels__ = + input.readMessage( + NamespaceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableNamespaceLabels() + .getMutableMap() + .put(namespaceLabels__.getKey(), namespaceLabels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + 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_ = ""; + + /** + * + * + *
              +     * The resource name for the scope
              +     * `projects/{project}/locations/{location}/scopes/{scope}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +     * The resource name for the scope
              +     * `projects/{project}/locations/{location}/scopes/{scope}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
              +     * The resource name for the scope
              +     * `projects/{project}/locations/{location}/scopes/{scope}`
              +     * 
              + * + * string name = 1; + * + * @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; + } + + /** + * + * + *
              +     * The resource name for the scope
              +     * `projects/{project}/locations/{location}/scopes/{scope}`
              +     * 
              + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * The resource name for the scope
              +     * `projects/{project}/locations/{location}/scopes/{scope}`
              +     * 
              + * + * string name = 1; + * + * @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 uid_ = ""; + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all scope resources. If a scope resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all scope resources. If a scope resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all scope resources. If a scope resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all scope resources. If a scope resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Google-generated UUID for this resource. This is unique across
              +     * all scope resources. If a scope resource is deleted and another resource
              +     * with the same name is created, it gets a different uid.
              +     * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the scope 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. When the scope 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. When the scope 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. When the scope 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. When the scope 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. When the scope 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. When the scope 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 internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the scope 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. When the scope was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the scope 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. When the scope 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. When the scope 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. When the scope 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. When the scope 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. When the scope 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. When the scope 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 internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the scope 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. When the scope was last updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
              +     * Output only. When the scope was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
              +     * Output only. When the scope was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. When the scope was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the scope was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the scope was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. When the scope was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000010); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. When the scope was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. When the scope was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
              +     * Output only. When the scope was deleted.
              +     * 
              + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.cloud.gkehub.v1.ScopeLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.ScopeLifecycleState, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder, + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
              +     * Output only. State of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
              +     * Output only. State of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.ScopeLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. State of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.ScopeLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.ScopeLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. State of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. State of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. State of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
              +     * Output only. State of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.ScopeLifecycleState, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder, + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.ScopeLifecycleState, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder, + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private com.google.protobuf.MapField namespaceLabels_; + + private com.google.protobuf.MapField + internalGetNamespaceLabels() { + if (namespaceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + return namespaceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableNamespaceLabels() { + if (namespaceLabels_ == null) { + namespaceLabels_ = + com.google.protobuf.MapField.newMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + if (!namespaceLabels_.isMutable()) { + namespaceLabels_ = namespaceLabels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return namespaceLabels_; + } + + public int getNamespaceLabelsCount() { + return internalGetNamespaceLabels().getMap().size(); + } + + /** + * + * + *
              +     * Optional. Scope-level cluster namespace labels. For the member clusters
              +     * bound to the Scope, these labels are applied to each namespace under the
              +     * Scope. Scope-level labels take precedence over Namespace-level
              +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +     * share a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNamespaceLabels().getMap().containsKey(key); + } + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNamespaceLabels() { + return getNamespaceLabelsMap(); + } + + /** + * + * + *
              +     * Optional. Scope-level cluster namespace labels. For the member clusters
              +     * bound to the Scope, these labels are applied to each namespace under the
              +     * Scope. Scope-level labels take precedence over Namespace-level
              +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +     * share a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getNamespaceLabelsMap() { + return internalGetNamespaceLabels().getMap(); + } + + /** + * + * + *
              +     * Optional. Scope-level cluster namespace labels. For the member clusters
              +     * bound to the Scope, these labels are applied to each namespace under the
              +     * Scope. Scope-level labels take precedence over Namespace-level
              +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +     * share a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
              +     * Optional. Scope-level cluster namespace labels. For the member clusters
              +     * bound to the Scope, these labels are applied to each namespace under the
              +     * Scope. Scope-level labels take precedence over Namespace-level
              +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +     * share a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getNamespaceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNamespaceLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableNamespaceLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
              +     * Optional. Scope-level cluster namespace labels. For the member clusters
              +     * bound to the Scope, these labels are applied to each namespace under the
              +     * Scope. Scope-level labels take precedence over Namespace-level
              +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +     * share a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableNamespaceLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableNamespaceLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableNamespaceLabels().getMutableMap(); + } + + /** + * + * + *
              +     * Optional. Scope-level cluster namespace labels. For the member clusters
              +     * bound to the Scope, these labels are applied to each namespace under the
              +     * Scope. Scope-level labels take precedence over Namespace-level
              +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +     * share a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putNamespaceLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableNamespaceLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
              +     * Optional. Scope-level cluster namespace labels. For the member clusters
              +     * bound to the Scope, these labels are applied to each namespace under the
              +     * Scope. Scope-level labels take precedence over Namespace-level
              +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +     * share a key. Keys and values must be Kubernetes-conformant.
              +     * 
              + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllNamespaceLabels(java.util.Map values) { + internalGetMutableNamespaceLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + 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_ |= 0x00000080; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
              +     * Optional. Labels for this Scope.
              +     * 
              + * + * map<string, string> labels = 9 [(.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 for this Scope.
              +     * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this Scope.
              +     * 
              + * + * map<string, string> labels = 9 [(.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 for this Scope.
              +     * 
              + * + * map<string, string> labels = 9 [(.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_ & ~0x00000080); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this Scope.
              +     * 
              + * + * map<string, string> labels = 9 [(.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_ |= 0x00000080; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
              +     * Optional. Labels for this Scope.
              +     * 
              + * + * map<string, string> labels = 9 [(.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_ |= 0x00000080; + return this; + } + + /** + * + * + *
              +     * Optional. Labels for this Scope.
              +     * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Scope) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Scope) + private static final com.google.cloud.gkehub.v1.Scope DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Scope(); + } + + public static com.google.cloud.gkehub.v1.Scope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Scope 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.v1.Scope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpec.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpec.java new file mode 100644 index 000000000000..df3879ed91b4 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpec.java @@ -0,0 +1,395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/feature.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * ScopeFeatureSpec contains feature specs for a fleet scope.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeFeatureSpec} + */ +@com.google.protobuf.Generated +public final class ScopeFeatureSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ScopeFeatureSpec) + ScopeFeatureSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScopeFeatureSpec"); + } + + // Use ScopeFeatureSpec.newBuilder() to construct. + private ScopeFeatureSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScopeFeatureSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeFeatureSpec.class, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.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.gkehub.v1.ScopeFeatureSpec)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ScopeFeatureSpec other = + (com.google.cloud.gkehub.v1.ScopeFeatureSpec) 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.gkehub.v1.ScopeFeatureSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec 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.v1.ScopeFeatureSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec 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.v1.ScopeFeatureSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ScopeFeatureSpec 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * ScopeFeatureSpec contains feature specs for a fleet scope.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeFeatureSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ScopeFeatureSpec) + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeFeatureSpec.class, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ScopeFeatureSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ScopeFeatureSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec build() { + com.google.cloud.gkehub.v1.ScopeFeatureSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec buildPartial() { + com.google.cloud.gkehub.v1.ScopeFeatureSpec result = + new com.google.cloud.gkehub.v1.ScopeFeatureSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ScopeFeatureSpec) { + return mergeFrom((com.google.cloud.gkehub.v1.ScopeFeatureSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ScopeFeatureSpec other) { + if (other == com.google.cloud.gkehub.v1.ScopeFeatureSpec.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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ScopeFeatureSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ScopeFeatureSpec) + private static final com.google.cloud.gkehub.v1.ScopeFeatureSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ScopeFeatureSpec(); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScopeFeatureSpec 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.v1.ScopeFeatureSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpecOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpecOrBuilder.java new file mode 100644 index 000000000000..b4a60add2d8b --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpecOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/feature.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ScopeFeatureSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ScopeFeatureSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureState.java new file mode 100644 index 000000000000..08c16100694b --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureState.java @@ -0,0 +1,716 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/feature.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * ScopeFeatureState contains Scope-wide Feature status information.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeFeatureState} + */ +@com.google.protobuf.Generated +public final class ScopeFeatureState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ScopeFeatureState) + ScopeFeatureStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScopeFeatureState"); + } + + // Use ScopeFeatureState.newBuilder() to construct. + private ScopeFeatureState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScopeFeatureState() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeFeatureState.class, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder.class); + } + + private int bitField0_; + public static final int STATE_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.FeatureState state_; + + /** + * + * + *
              +   * Output only. The "running state" of the Feature in this Scope.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Output only. The "running state" of the Feature in this Scope.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FeatureState getState() { + return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; + } + + /** + * + * + *
              +   * Output only. The "running state" of the Feature in this Scope.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { + return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; + } + + 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, getState()); + } + 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, getState()); + } + 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.v1.ScopeFeatureState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ScopeFeatureState other = + (com.google.cloud.gkehub.v1.ScopeFeatureState) obj; + + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) 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 (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState 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.v1.ScopeFeatureState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState 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.v1.ScopeFeatureState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ScopeFeatureState 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * ScopeFeatureState contains Scope-wide Feature status information.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeFeatureState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ScopeFeatureState) + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeFeatureState.class, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ScopeFeatureState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ScopeFeatureState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState build() { + com.google.cloud.gkehub.v1.ScopeFeatureState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState buildPartial() { + com.google.cloud.gkehub.v1.ScopeFeatureState result = + new com.google.cloud.gkehub.v1.ScopeFeatureState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ScopeFeatureState result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ScopeFeatureState) { + return mergeFrom((com.google.cloud.gkehub.v1.ScopeFeatureState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ScopeFeatureState other) { + if (other == com.google.cloud.gkehub.v1.ScopeFeatureState.getDefaultInstance()) return this; + if (other.hasState()) { + mergeState(other.getState()); + } + 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(internalGetStateFieldBuilder().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.gkehub.v1.FeatureState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + stateBuilder_; + + /** + * + * + *
              +     * Output only. The "running state" of the Feature in this Scope.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Output only. The "running state" of the Feature in this Scope.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.FeatureState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. The "running state" of the Feature in this Scope.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The "running state" of the Feature in this Scope.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The "running state" of the Feature in this Scope.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. The "running state" of the Feature in this Scope.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The "running state" of the Feature in this Scope.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. The "running state" of the Feature in this Scope.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
              +     * Output only. The "running state" of the Feature in this Scope.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ScopeFeatureState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ScopeFeatureState) + private static final com.google.cloud.gkehub.v1.ScopeFeatureState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ScopeFeatureState(); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScopeFeatureState 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.v1.ScopeFeatureState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureStateOrBuilder.java new file mode 100644 index 000000000000..41b5552d9152 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureStateOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/feature.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ScopeFeatureStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ScopeFeatureState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The "running state" of the Feature in this Scope.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
              +   * Output only. The "running state" of the Feature in this Scope.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.FeatureState getState(); + + /** + * + * + *
              +   * Output only. The "running state" of the Feature in this Scope.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleState.java new file mode 100644 index 000000000000..47ae97c3be85 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleState.java @@ -0,0 +1,794 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * ScopeLifecycleState describes the state of a Scope resource.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeLifecycleState} + */ +@com.google.protobuf.Generated +public final class ScopeLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ScopeLifecycleState) + ScopeLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScopeLifecycleState"); + } + + // Use ScopeLifecycleState.newBuilder() to construct. + private ScopeLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScopeLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeLifecycleState.class, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder.class); + } + + /** + * + * + *
              +   * Code describes the state of a Scope resource.
              +   * 
              + * + * Protobuf enum {@code google.cloud.gkehub.v1.ScopeLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
              +     * The scope is being created.
              +     * 
              + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
              +     * The scope active.
              +     * 
              + * + * READY = 2; + */ + READY(2), + /** + * + * + *
              +     * The scope is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
              +     * The scope is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
              +     * The code is not set.
              +     * 
              + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The scope is being created.
              +     * 
              + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
              +     * The scope active.
              +     * 
              + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
              +     * The scope is being deleted.
              +     * 
              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
              +     * The scope is being updated.
              +     * 
              + * + * UPDATING = 4; + */ + public static final int UPDATING_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 Code 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 Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + 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 Code findValueByNumber(int number) { + return Code.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ScopeLifecycleState.getDescriptor().getEnumTypes().get(0); + } + + private static final Code[] VALUES = values(); + + public static Code 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 Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.ScopeLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
              +   * Output only. The current state of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +   * Output only. The current state of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code result = + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.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 (code_ != com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + 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.v1.ScopeLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ScopeLifecycleState other = + (com.google.cloud.gkehub.v1.ScopeLifecycleState) obj; + + if (code_ != other.code_) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState 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.v1.ScopeLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState 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.v1.ScopeLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ScopeLifecycleState 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * ScopeLifecycleState describes the state of a Scope resource.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ScopeLifecycleState) + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeLifecycleState.class, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ScopeLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState build() { + com.google.cloud.gkehub.v1.ScopeLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.ScopeLifecycleState result = + new com.google.cloud.gkehub.v1.ScopeLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ScopeLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ScopeLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.ScopeLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ScopeLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + 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: + { + code_ = 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 code_ = 0; + + /** + * + * + *
              +     * Output only. The current state of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
              +     * Output only. The current state of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code result = + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Output only. The current state of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.ScopeLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The current state of the scope resource.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ScopeLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ScopeLifecycleState) + private static final com.google.cloud.gkehub.v1.ScopeLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ScopeLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScopeLifecycleState 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.v1.ScopeLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..74fcd913fc98 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ScopeLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ScopeLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The current state of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
              +   * Output only. The current state of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java new file mode 100644 index 000000000000..655d026f916a --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.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 ScopeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SCOPE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/scopes/{scope}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String scope; + + @Deprecated + protected ScopeName() { + project = null; + location = null; + scope = null; + } + + private ScopeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + scope = Preconditions.checkNotNull(builder.getScope()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ScopeName of(String project, String location, String scope) { + return newBuilder().setProject(project).setLocation(location).setScope(scope).build(); + } + + public static String format(String project, String location, String scope) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .build() + .toString(); + } + + public static ScopeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SCOPE.validatedMatch( + formattedString, "ScopeName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("scope")); + } + + 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 (ScopeName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SCOPE.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 (scope != null) { + fieldMapBuilder.put("scope", scope); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SCOPE.instantiate( + "project", project, "location", location, "scope", scope); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ScopeName that = ((ScopeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.scope, that.scope); + } + 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(scope); + return h; + } + + /** Builder for projects/{project}/locations/{location}/scopes/{scope}. */ + public static class Builder { + private String project; + private String location; + private String scope; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setScope(String scope) { + this.scope = scope; + return this; + } + + private Builder(ScopeName scopeName) { + this.project = scopeName.project; + this.location = scopeName.location; + this.scope = scopeName.scope; + } + + public ScopeName build() { + return new ScopeName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeOrBuilder.java new file mode 100644 index 000000000000..8ad16cd0dc4f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeOrBuilder.java @@ -0,0 +1,400 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ScopeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Scope) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The resource name for the scope
              +   * `projects/{project}/locations/{location}/scopes/{scope}`
              +   * 
              + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * The resource name for the scope
              +   * `projects/{project}/locations/{location}/scopes/{scope}`
              +   * 
              + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all scope resources. If a scope resource is deleted and another resource
              +   * with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
              +   * Output only. Google-generated UUID for this resource. This is unique across
              +   * all scope resources. If a scope resource is deleted and another resource
              +   * with the same name is created, it gets a different uid.
              +   * 
              + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
              +   * Output only. When the scope 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. When the scope was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
              +   * Output only. When the scope was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the scope 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. When the scope 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. When the scope was last updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. When the scope was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
              +   * Output only. When the scope was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
              +   * Output only. When the scope was deleted.
              +   * 
              + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. State of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
              +   * Output only. State of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.ScopeLifecycleState getState(); + + /** + * + * + *
              +   * Output only. State of the scope resource.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
              +   * Optional. Scope-level cluster namespace labels. For the member clusters
              +   * bound to the Scope, these labels are applied to each namespace under the
              +   * Scope. Scope-level labels take precedence over Namespace-level
              +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +   * share a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNamespaceLabelsCount(); + + /** + * + * + *
              +   * Optional. Scope-level cluster namespace labels. For the member clusters
              +   * bound to the Scope, these labels are applied to each namespace under the
              +   * Scope. Scope-level labels take precedence over Namespace-level
              +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +   * share a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsNamespaceLabels(java.lang.String key); + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getNamespaceLabels(); + + /** + * + * + *
              +   * Optional. Scope-level cluster namespace labels. For the member clusters
              +   * bound to the Scope, these labels are applied to each namespace under the
              +   * Scope. Scope-level labels take precedence over Namespace-level
              +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +   * share a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getNamespaceLabelsMap(); + + /** + * + * + *
              +   * Optional. Scope-level cluster namespace labels. For the member clusters
              +   * bound to the Scope, these labels are applied to each namespace under the
              +   * Scope. Scope-level labels take precedence over Namespace-level
              +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +   * share a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
              +   * Optional. Scope-level cluster namespace labels. For the member clusters
              +   * bound to the Scope, these labels are applied to each namespace under the
              +   * Scope. Scope-level labels take precedence over Namespace-level
              +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
              +   * share a key. Keys and values must be Kubernetes-conformant.
              +   * 
              + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getNamespaceLabelsOrThrow(java.lang.String key); + + /** + * + * + *
              +   * Optional. Labels for this Scope.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
              +   * Optional. Labels for this Scope.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
              +   * Optional. Labels for this Scope.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
              +   * Optional. Labels for this Scope.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
              +   * Optional. Labels for this Scope.
              +   * 
              + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfig.java new file mode 100644 index 000000000000..55af3e5d89ef --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfig.java @@ -0,0 +1,1135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * SecurityPostureConfig defines the flags needed to enable/disable features for
              + * the Security Posture API.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.SecurityPostureConfig} + */ +@com.google.protobuf.Generated +public final class SecurityPostureConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.SecurityPostureConfig) + SecurityPostureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecurityPostureConfig"); + } + + // Use SecurityPostureConfig.newBuilder() to construct. + private SecurityPostureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SecurityPostureConfig() { + mode_ = 0; + vulnerabilityMode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.SecurityPostureConfig.class, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder.class); + } + + /** + * + * + *
              +   * Mode defines enablement mode for GKE Security posture features.
              +   * 
              + * + * Protobuf enum {@code google.cloud.gkehub.v1.SecurityPostureConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * Default value not specified.
              +     * 
              + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
              +     * Disables Security Posture features on the cluster.
              +     * 
              + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
              +     * Applies Security Posture features on the cluster.
              +     * 
              + * + * BASIC = 2; + */ + BASIC(2), + /** + * + * + *
              +     * Applies the Security Posture off cluster Enterprise level features.
              +     * 
              + * + * ENTERPRISE = 3; + */ + ENTERPRISE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
              +     * Default value not specified.
              +     * 
              + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * Disables Security Posture features on the cluster.
              +     * 
              + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
              +     * Applies Security Posture features on the cluster.
              +     * 
              + * + * 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) { + 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 DISABLED; + case 2: + return BASIC; + case 3: + return ENTERPRISE; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.SecurityPostureConfig.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.gkehub.v1.SecurityPostureConfig.Mode) + } + + /** + * + * + *
              +   * VulnerabilityMode defines enablement mode for vulnerability scanning.
              +   * 
              + * + * Protobuf enum {@code google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode} + */ + public enum VulnerabilityMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * Default value not specified.
              +     * 
              + * + * VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + VULNERABILITY_MODE_UNSPECIFIED(0), + /** + * + * + *
              +     * Disables vulnerability scanning on the cluster.
              +     * 
              + * + * VULNERABILITY_DISABLED = 1; + */ + VULNERABILITY_DISABLED(1), + /** + * + * + *
              +     * Applies basic vulnerability scanning on the cluster.
              +     * 
              + * + * VULNERABILITY_BASIC = 2; + */ + VULNERABILITY_BASIC(2), + /** + * + * + *
              +     * Applies the Security Posture's vulnerability on cluster Enterprise level
              +     * features.
              +     * 
              + * + * VULNERABILITY_ENTERPRISE = 3; + */ + VULNERABILITY_ENTERPRISE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VulnerabilityMode"); + } + + /** + * + * + *
              +     * Default value not specified.
              +     * 
              + * + * VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + public static final int VULNERABILITY_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * Disables vulnerability scanning on the cluster.
              +     * 
              + * + * VULNERABILITY_DISABLED = 1; + */ + public static final int VULNERABILITY_DISABLED_VALUE = 1; + + /** + * + * + *
              +     * Applies basic vulnerability scanning on the cluster.
              +     * 
              + * + * VULNERABILITY_BASIC = 2; + */ + public static final int VULNERABILITY_BASIC_VALUE = 2; + + /** + * + * + *
              +     * Applies the Security Posture's vulnerability on cluster Enterprise level
              +     * features.
              +     * 
              + * + * VULNERABILITY_ENTERPRISE = 3; + */ + public static final int VULNERABILITY_ENTERPRISE_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 VulnerabilityMode 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 VulnerabilityMode forNumber(int value) { + switch (value) { + case 0: + return VULNERABILITY_MODE_UNSPECIFIED; + case 1: + return VULNERABILITY_DISABLED; + case 2: + return VULNERABILITY_BASIC; + case 3: + return VULNERABILITY_ENTERPRISE; + 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 VulnerabilityMode findValueByNumber(int number) { + return VulnerabilityMode.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.SecurityPostureConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final VulnerabilityMode[] VALUES = values(); + + public static VulnerabilityMode 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 VulnerabilityMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + + /** + * + * + *
              +   * Sets which mode to use for Security Posture features.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
              +   * Sets which mode to use for Security Posture features.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode getMode() { + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode result = + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.UNRECOGNIZED + : result; + } + + public static final int VULNERABILITY_MODE_FIELD_NUMBER = 2; + private int vulnerabilityMode_ = 0; + + /** + * + * + *
              +   * Sets which mode to use for vulnerability scanning.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + @java.lang.Override + public int getVulnerabilityModeValue() { + return vulnerabilityMode_; + } + + /** + * + * + *
              +   * Sets which mode to use for vulnerability scanning.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The vulnerabilityMode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode() { + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode result = + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode.forNumber( + vulnerabilityMode_); + return result == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode.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 (mode_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, mode_); + } + if (vulnerabilityMode_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode + .VULNERABILITY_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, vulnerabilityMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + if (vulnerabilityMode_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode + .VULNERABILITY_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, vulnerabilityMode_); + } + 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.v1.SecurityPostureConfig)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.SecurityPostureConfig other = + (com.google.cloud.gkehub.v1.SecurityPostureConfig) obj; + + if (mode_ != other.mode_) return false; + if (vulnerabilityMode_ != other.vulnerabilityMode_) 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) + VULNERABILITY_MODE_FIELD_NUMBER; + hash = (53 * hash) + vulnerabilityMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig 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.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig 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.v1.SecurityPostureConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.SecurityPostureConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * SecurityPostureConfig defines the flags needed to enable/disable features for
              +   * the Security Posture API.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.SecurityPostureConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.SecurityPostureConfig) + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.SecurityPostureConfig.class, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.SecurityPostureConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + vulnerabilityMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig build() { + com.google.cloud.gkehub.v1.SecurityPostureConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig buildPartial() { + com.google.cloud.gkehub.v1.SecurityPostureConfig result = + new com.google.cloud.gkehub.v1.SecurityPostureConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.SecurityPostureConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vulnerabilityMode_ = vulnerabilityMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.SecurityPostureConfig) { + return mergeFrom((com.google.cloud.gkehub.v1.SecurityPostureConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.SecurityPostureConfig other) { + if (other == com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (other.vulnerabilityMode_ != 0) { + setVulnerabilityModeValue(other.getVulnerabilityModeValue()); + } + 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 16: + { + vulnerabilityMode_ = 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 int mode_ = 0; + + /** + * + * + *
              +     * Sets which mode to use for Security Posture features.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
              +     * Sets which mode to use for Security Posture features.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @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; + } + + /** + * + * + *
              +     * Sets which mode to use for Security Posture features.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode getMode() { + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode result = + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Sets which mode to use for Security Posture features.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Sets which mode to use for Security Posture features.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private int vulnerabilityMode_ = 0; + + /** + * + * + *
              +     * Sets which mode to use for vulnerability scanning.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + @java.lang.Override + public int getVulnerabilityModeValue() { + return vulnerabilityMode_; + } + + /** + * + * + *
              +     * Sets which mode to use for vulnerability scanning.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @param value The enum numeric value on the wire for vulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setVulnerabilityModeValue(int value) { + vulnerabilityMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Sets which mode to use for vulnerability scanning.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The vulnerabilityMode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode + getVulnerabilityMode() { + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode result = + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode.forNumber( + vulnerabilityMode_); + return result == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Sets which mode to use for vulnerability scanning.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @param value The vulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setVulnerabilityMode( + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + vulnerabilityMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Sets which mode to use for vulnerability scanning.
              +     * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearVulnerabilityMode() { + bitField0_ = (bitField0_ & ~0x00000002); + vulnerabilityMode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.SecurityPostureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.SecurityPostureConfig) + private static final com.google.cloud.gkehub.v1.SecurityPostureConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.SecurityPostureConfig(); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityPostureConfig 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.v1.SecurityPostureConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfigOrBuilder.java new file mode 100644 index 000000000000..641805c24995 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfigOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface SecurityPostureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.SecurityPostureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Sets which mode to use for Security Posture features.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
              +   * Sets which mode to use for Security Posture features.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The mode. + */ + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode getMode(); + + /** + * + * + *
              +   * Sets which mode to use for vulnerability scanning.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + int getVulnerabilityModeValue(); + + /** + * + * + *
              +   * Sets which mode to use for vulnerability scanning.
              +   * 
              + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The vulnerabilityMode. + */ + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java index 062ca97f60f6..29470c4a9844 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java @@ -40,10 +40,146 @@ 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_gkehub_v1_GetScopeNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetScopeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -52,6 +188,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -104,6 +248,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetFleetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -123,29 +291,180 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ations.proto\032\027google/api/client.proto\032\037g" + "oogle/api/field_behavior.proto\032\031google/a" + "pi/resource.proto\032$google/cloud/gkehub/v" - + "1/feature.proto\032\'google/cloud/gkehub/v1/" - + "membership.proto\032#google/longrunning/operations.proto\032 google/protobuf/field_mas" - + "k.proto\032\037google/protobuf/timestamp.proto\"\257\001\n" + + "1/feature.proto\032\"google/cloud/gkehub/v1/" + + "fleet.proto\032\'google/cloud/gkehub/v1/memb" + + "ership.proto\032#google/longrunning/operations.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"Q\n" + + "\030GetScopeNamespaceRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037gkehub.googleapis.com/Namespace\"\270\001\n" + + "\033CreateScopeNamespaceRequest\0227\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037gkehub.googleapis.com/Namespace\022\037\n" + + "\022scope_namespace_id\030\002 \001(\tB\003\340A\002\022?\n" + + "\017scope_namespace\030\003" + + " \001(\0132!.google.cloud.gkehub.v1.NamespaceB\003\340A\002\"\224\001\n" + + "\033UpdateScopeNamespaceRequest\022?\n" + + "\017scope_namespace\030\001 " + + "\001(\0132!.google.cloud.gkehub.v1.NamespaceB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"T\n" + + "\033DeleteScopeNamespaceRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037gkehub.googleapis.com/Namespace\"\206\001\n" + + "\032ListScopeNamespacesRequest\0227\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037gkehub.googleapis.com/Namespace\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\"s\n" + + "\033ListScopeNamespacesResponse\022;\n" + + "\020scope_namespaces\030\001 \003(\0132!.google.cloud.gkehub.v1.Namespace\022\027\n" + + "\017next_page_token\030\002 \001(\t\"]\n" + + "\036GetScopeRBACRoleBindingRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%gkehub.googleapis.com/RBACRoleBinding\"\312\001\n" + + "!CreateScopeRBACRoleBindingRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%gkehub.googleapis.com/RBACRoleBinding\022\037\n" + + "\022rbacrolebinding_id\030\002 \001(\tB\003\340A\002\022E\n" + + "\017rbacrolebinding\030\003" + + " \001(\0132\'.google.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\"\240\001\n" + + "!UpdateScopeRBACRoleBindingRequest\022E\n" + + "\017rbacrolebinding\030\001 \001(\013" + + "2\'.google.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"`\n" + + "!DeleteScopeRBACRoleBindingRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%gkehub.googleapis.com/RBACRoleBinding\"\222\001\n" + + " ListScopeRBACRoleBindingsRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%gkehub.googleapis.com/RBACRoleBinding\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\"\177\n" + + "!ListScopeRBACRoleBindingsResponse\022A\n" + + "\020rbacrolebindings\030\001" + + " \003(\0132\'.google.cloud.gkehub.v1.RBACRoleBinding\022\027\n" + + "\017next_page_token\030\002 \001(\t\"D\n" + + "\017GetScopeRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Scope\"\223\001\n" + + "\022CreateScopeRequest\0223\n" + + "\006parent\030\001 \001(" + + "\tB#\340A\002\372A\035\022\033gkehub.googleapis.com/Scope\022\025\n" + + "\010scope_id\030\002 \001(\tB\003\340A\002\0221\n" + + "\005scope\030\003 \001(\0132\035.google.cloud.gkehub.v1.ScopeB\003\340A\002\"}\n" + + "\022UpdateScopeRequest\0221\n" + + "\005scope\030\001 \001(\0132\035.google.cloud.gkehub.v1.ScopeB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"G\n" + + "\022DeleteScopeRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Scope\"y\n" + + "\021ListScopesRequest\0223\n" + + "\006parent\030\001 \001(" + + "\tB#\340A\002\372A\035\022\033gkehub.googleapis.com/Scope\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\"\\\n" + + "\022ListScopesResponse\022-\n" + + "\006scopes\030\001 \003(\0132\035.google.cloud.gkehub.v1.Scope\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\202\001\n" + + "\032ListPermittedScopesRequest\0223\n" + + "\006parent\030\001 \001(" + + "\tB#\340A\002\372A\035\022\033gkehub.googleapis.com/Scope\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\"e\n" + + "\033ListPermittedScopesResponse\022-\n" + + "\006scopes\030\001 \003(\0132\035.google.cloud.gkehub.v1.Scope\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\\\n" + + "\033GetMembershipBindingRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'gkehub.googleapis.com/MembershipBinding\"\321\001\n" + + "\036CreateMembershipBindingRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'gkehub.googleapis.com/MembershipBinding\022J\n" + + "\022membership_binding\030\002" + + " \001(\0132).google.cloud.gkehub.v1.MembershipBindingB\003\340A\002\022\"\n" + + "\025membership_binding_id\030\003 \001(\tB\003\340A\002\"\242\001\n" + + "\036UpdateMembershipBindingRequest\022J\n" + + "\022membership_binding\030\001 \001(\0132)" + + ".google.cloud.gkehub.v1.MembershipBindingB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"_\n" + + "\036DeleteMembershipBindingRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'gkehub.googleapis.com/MembershipBinding\"\246\001\n" + + "\035ListMembershipBindingsRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'gkehub.googleapis.com/MembershipBinding\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\340A\001\"\226\001\n" + + "\036ListMembershipBindingsResponse\022F\n" + + "\023membership_bindings\030\001" + + " \003(\0132).google.cloud.gkehub.v1.MembershipBinding\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\257\001\n" + "\026ListMembershipsRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " gkehub.googleapis.com/Membership\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\340A\001\022\025\n" - + "\010order_by\030\005 \001(\tB\003\340A\001\"~\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"b\n" + + "#GetMembershipRBACRoleBindingRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%gkehub.googleapis.com/RBACRoleBinding\"\317\001\n" + + "&CreateMembershipRBACRoleBindingRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%gkehub.googleapis.com/RBACRoleBinding\022\037\n" + + "\022rbacrolebinding_id\030\002 \001(\tB\003\340A\002\022E\n" + + "\017rbacrolebinding\030\003 \001(" + + "\0132\'.google.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\"\245\001\n" + + "&UpdateMembershipRBACRoleBindingRequest\022E\n" + + "\017rbacrolebinding\030\001 \001(\0132\'.go" + + "ogle.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"e\n" + + "&DeleteMembershipRBACRoleBindingRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%gkehub.googleapis.com/RBACRoleBinding\"\227\001\n" + + "%ListMembershipRBACRoleBindingsRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%gkehub.googleapis.com/RBACRoleBinding\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\"\231\001\n" + + "&ListMembershipRBACRoleBindingsResponse\022A\n" + + "\020rbacrolebindings\030\001" + + " \003(\0132\'.google.cloud.gkehub.v1.RBACRoleBinding\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\320\001\n" + + ",GenerateMembershipRBACRoleBindingYAMLRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " gkehub.googleapis.com/Membership\022\037\n" + + "\022rbacrolebinding_id\030\002 \001(\tB\003\340A\002\022E\n" + + "\017rbacrolebinding\030\003 \001(\0132\'.goog" + + "le.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\"K\n" + + "-GenerateMembershipRBACRoleBindingYAMLResponse\022\032\n" + + "\022role_bindings_yaml\030\001 \001(\t\"~\n" + "\027ListMembershipsResponse\0225\n" + "\tresources\030\001 \003(\0132\".google.cloud.gkehub.v1.Membership\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"N\n" + "\024GetMembershipRequest\0226\n" + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " gkehub.googleapis.com/Membership\"\303\001\n" + + " gkehub.googleapis.com/Membership\"\234\001\n" + + "\033ListBoundMembershipsRequest\0227\n\n" + + "scope_name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Scope\022\023\n" + + "\006filter\030\002 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\"\205\001\n" + + "\034ListBoundMembershipsResponse\0227\n" + + "\013memberships\030\001 \003(\0132\".google.cloud.gkehub.v1.Membership\022\023\n" + + "\013unreachable\030\002 \003(\t\022\027\n" + + "\017next_page_token\030\003 \001(\t\"\303\001\n" + "\027CreateMembershipRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " gkehub.googleapis.com/Membership\022\032\n\r" + "membership_id\030\002 \001(\tB\003\340A\002\0229\n" - + "\010resource\030\003 \001(\0132\"" - + ".google.cloud.gkehub.v1.MembershipB\003\340A\002\022\027\n\n" + + "\010resource\030\003" + + " \001(\0132\".google.cloud.gkehub.v1.MembershipB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\"~\n" + "\027DeleteMembershipRequest\0226\n" + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" @@ -175,19 +494,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010manifest\030\002 \001(\t\"-\n" + "\010TypeMeta\022\014\n" + "\004kind\030\001 \001(\t\022\023\n" - + "\013api_version\030\002 \001(\t\"\222\001\n" + + "\013api_version\030\002 \001(\t\"\267\001\n" + "\023ListFeaturesRequest\0222\n" + "\006parent\030\001 \001(\tB\"\372A\037\022\035gkehub.googleapis.com/Feature\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\020\n" - + "\010order_by\030\005 \001(\t\"c\n" + + "\010order_by\030\005 \001(\t\022#\n" + + "\026return_partial_success\030\006 \001(\010B\003\340A\001\"c\n" + "\024ListFeaturesResponse\0222\n" + "\tresources\030\001 \003(\0132\037.google.cloud.gkehub.v1.Feature\022\027\n" - + "\017next_page_token\030\002 \001(\t\"E\n" + + "\017next_page_token\030\002 \001(\t\"j\n" + "\021GetFeatureRequest\0220\n" + "\004name\030\001 \001(\tB\"\372A\037\n" - + "\035gkehub.googleapis.com/Feature\"\245\001\n" + + "\035gkehub.googleapis.com/Feature\022#\n" + + "\026return_partial_success\030\002 \001(\010B\003\340A\001\"\245\001\n" + "\024CreateFeatureRequest\0222\n" + "\006parent\030\001 \001(" + "\tB\"\372A\037\022\035gkehub.googleapis.com/Feature\022\022\n\n" @@ -204,7 +525,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035gkehub.googleapis.com/Feature\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\0221\n" + "\010resource\030\003 \001(\0132\037.google.cloud.gkehub.v1.Feature\022\022\n\n" - + "request_id\030\004 \001(\t\"\371\001\n" + + "request_id\030\004 \001(\t\"\202\001\n" + + "\022CreateFleetRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\0221\n" + + "\005fleet\030\002 \001(\0132\035.google.cloud.gkehub.v1.FleetB\003\340A\002\"D\n" + + "\017GetFleetRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Fleet\"}\n" + + "\022UpdateFleetRequest\0221\n" + + "\005fleet\030\001 \001(\0132\035.google.cloud.gkehub.v1.FleetB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"G\n" + + "\022DeleteFleetRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Fleet\"\177\n" + + "\021ListFleetsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\"\\\n" + + "\022ListFleetsResponse\022-\n" + + "\006fleets\030\001 \003(\0132\035.google.cloud.gkehub.v1.Fleet\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\371\001\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" @@ -212,57 +554,221 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004verb\030\004 \001(\tB\003\340A\003\022\032\n\r" + "status_detail\030\005 \001(\tB\003\340A\003\022\035\n" + "\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013api_version\030\007 \001(\tB\003\340A\0032\360\021\n" + + "\013api_version\030\007 \001(\tB\003\340A\0032\226M\n" + "\006GkeHub\022\264\001\n" - + "\017ListMemberships\022..google.cloud.gkehub.v" - + "1.ListMembershipsRequest\032/.google.cloud." - + "gkehub.v1.ListMembershipsResponse\"@\332A\006pa" - + "rent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/memberships\022\250\001\n" - + "\014ListFeatures\022+.google.cloud.gkehub.v1.ListFeaturesReques" - + "t\032,.google.cloud.gkehub.v1.ListFeaturesR" - + "esponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/features\022\241\001\n\r" - + "GetMembership\022,.google.cloud.gkehub.v1.GetMem" - + "bershipRequest\032\".google.cloud.gkehub.v1." - + "Membership\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/memberships/*}\022\225\001\n\n" - + "GetFeature\022).google.cloud.gkehub.v1.GetFe" - + "atureRequest\032\037.google.cloud.gkehub.v1.Fe" - + "ature\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/features/*}\022\350\001\n" - + "\020CreateMembership\022/.google.cloud.gkehub.v1.CreateM" - + "embershipRequest\032\035.google.longrunning.Operation\"\203\001\312A\037\n\n" - + "Membership\022\021OperationMeta" - + "data\332A\035parent,resource,membership_id\202\323\344\223" - + "\002;\"//v1/{parent=projects/*/locations/*}/memberships:\010resource\022\330\001\n\r" - + "CreateFeature\022,.google.cloud.gkehub.v1.CreateFeatureRe" - + "quest\032\035.google.longrunning.Operation\"z\312A\034\n" - + "\007Feature\022\021OperationMetadata\332A\032parent,r" - + "esource,feature_id\202\323\344\223\0028\",/v1/{parent=pr" - + "ojects/*/locations/*}/features:\010resource\022\317\001\n" - + "\020DeleteMembership\022/.google.cloud.gke" - + "hub.v1.DeleteMembershipRequest\032\035.google.longrunning.Operation\"k\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + "1*//v1/{name=projects/*/locations/*/memberships/*}\022\306\001\n\r" - + "DeleteFeature\022,.google.cl" - + "oud.gkehub.v1.DeleteFeatureRequest\032\035.google.longrunning.Operation\"h\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202" - + "\323\344\223\002.*,/v1/{name=projects/*/locations/*/features/*}\022\343\001\n" - + "\020UpdateMembership\022/.googl" - + "e.cloud.gkehub.v1.UpdateMembershipRequest\032\035.google.longrunning.Operation\"\177\312A\037\n\n" - + "Membership\022\021OperationMetadata\332A\031name,reso" - + "urce,update_mask\202\323\344\223\002;2//v1/{name=projec" - + "ts/*/locations/*/memberships/*}:\010resource\022\327\001\n\r" - + "UpdateFeature\022,.google.cloud.gkehu" - + "b.v1.UpdateFeatureRequest\032\035.google.longrunning.Operation\"y\312A\034\n" - + "\007Feature\022\021OperationMetadata\332A\031name,resource,update_mask\202\323\344" - + "\223\00282,/v1/{name=projects/*/locations/*/features/*}:\010resource\022\333\001\n" - + "\027GenerateConnectManifest\0226.google.cloud.gkehub.v1.Generat" - + "eConnectManifestRequest\0327.google.cloud.gkehub.v1.GenerateConnectManifestResponse" - + "\"O\202\323\344\223\002I\022G/v1/{name=projects/*/locations" - + "/*/memberships/*}:generateConnectManifes" - + "t\032I\312A\025gkehub.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\001\n" - + "\032com.google.cloud.gkehub.v1B\014ServiceProt" - + "oP\001Z2cloud.google.com/go/gkehub/apiv1/gk" - + "ehubpb;gkehubpb\252\002\026Google.Cloud.GkeHub.V1" - + "\312\002\026Google\\Cloud\\GkeHub\\V1\352\002\031Google::Cloud::GkeHub::V1b\006proto3" + + "\017ListMemberships\022..google.cloud.gkehub.v1.ListMembershipsRequest\032/." + + "google.cloud.gkehub.v1.ListMembershipsRe" + + "sponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/memberships\022\330\001\n" + + "\024ListBoundMemberships\0223.google.cloud.gkehub." + + "v1.ListBoundMembershipsRequest\0324.google." + + "cloud.gkehub.v1.ListBoundMembershipsResponse\"U\332A\n" + + "scope_name\202\323\344\223\002B\022@/v1/{scope_na" + + "me=projects/*/locations/*/scopes/*}:listMemberships\022\250\001\n" + + "\014ListFeatures\022+.google.cloud.gkehub.v1.ListFeaturesRequest\032,.goog" + + "le.cloud.gkehub.v1.ListFeaturesResponse\"" + + "=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/features\022\241\001\n\r" + + "GetMembership\022,.google.cloud.gkehub.v1.GetMembershipR" + + "equest\032\".google.cloud.gkehub.v1.Membersh" + + "ip\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/memberships/*}\022\225\001\n\n" + + "GetFeature\022).google.cloud.gkehub.v1.GetFeatureReq" + + "uest\032\037.google.cloud.gkehub.v1.Feature\";\332" + + "A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/features/*}\022\350\001\n" + + "\020CreateMembership\022/.google.cloud.gkehub.v1.CreateMembershi" + + "pRequest\032\035.google.longrunning.Operation\"\203\001\312A\037\n\n" + + "Membership\022\021OperationMetadata\332A\035p" + + "arent,resource,membership_id\202\323\344\223\002;\"//v1/" + + "{parent=projects/*/locations/*}/memberships:\010resource\022\330\001\n\r" + + "CreateFeature\022,.google" + + ".cloud.gkehub.v1.CreateFeatureRequest\032\035.google.longrunning.Operation\"z\312A\034\n" + + "\007Feature\022\021OperationMetadata\332A\032parent,resource," + + "feature_id\202\323\344\223\0028\",/v1/{parent=projects/*/locations/*}/features:\010resource\022\317\001\n" + + "\020DeleteMembership\022/.google.cloud.gkehub.v1.D" + + "eleteMembershipRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\0021*//v1/{" + + "name=projects/*/locations/*/memberships/*}\022\306\001\n\r" + + "DeleteFeature\022,.google.cloud.gkeh" + + "ub.v1.DeleteFeatureRequest\032\035.google.longrunning.Operation\"h\312A*\n" + + "\025google.protobuf." + + "Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002.*,/" + + "v1/{name=projects/*/locations/*/features/*}\022\343\001\n" + + "\020UpdateMembership\022/.google.cloud." + + "gkehub.v1.UpdateMembershipRequest\032\035.google.longrunning.Operation\"\177\312A\037\n\n" + + "Membership\022\021OperationMetadata\332A\031name,resource,upd" + + "ate_mask\202\323\344\223\002;2//v1/{name=projects/*/locations/*/memberships/*}:\010resource\022\327\001\n\r" + + "UpdateFeature\022,.google.cloud.gkehub.v1.Upd" + + "ateFeatureRequest\032\035.google.longrunning.Operation\"y\312A\034\n" + + "\007Feature\022\021OperationMetadat" + + "a\332A\031name,resource,update_mask\202\323\344\223\00282,/v1" + + "/{name=projects/*/locations/*/features/*}:\010resource\022\333\001\n" + + "\027GenerateConnectManifest\0226.google.cloud.gkehub.v1.GenerateConnect" + + "ManifestRequest\0327.google.cloud.gkehub.v1" + + ".GenerateConnectManifestResponse\"O\202\323\344\223\002I" + + "\022G/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest\022\277\001\n" + + "\013CreateFleet\022*.google.cloud.gkehub.v1.Creat" + + "eFleetRequest\032\035.google.longrunning.Operation\"e\312A\032\n" + + "\005Fleet\022\021OperationMetadata\332A\014pa" + + "rent,fleet\202\323\344\223\0023\"*/v1/{parent=projects/*/locations/*}/fleets:\005fleet\022\215\001\n" + + "\010GetFleet\022\'.google.cloud.gkehub.v1.GetFleetReques" + + "t\032\035.google.cloud.gkehub.v1.Fleet\"9\332A\004nam" + + "e\202\323\344\223\002,\022*/v1/{name=projects/*/locations/*/fleets/*}\022\312\001\n" + + "\013UpdateFleet\022*.google.clo" + + "ud.gkehub.v1.UpdateFleetRequest\032\035.google.longrunning.Operation\"p\312A\032\n" + + "\005Fleet\022\021OperationMetadata\332A\021fleet,update_mask\202\323\344\223\00292" + + "0/v1/{fleet.name=projects/*/locations/*/fleets/*}:\005fleet\022\300\001\n" + + "\013DeleteFleet\022*.googl" + + "e.cloud.gkehub.v1.DeleteFleetRequest\032\035.google.longrunning.Operation\"f\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004nam" + + "e\202\323\344\223\002,**/v1/{name=projects/*/locations/*/fleets/*}\022\323\001\n\n" + + "ListFleets\022).google.cloud.gkehub.v1.ListFleetsRequest\032*.google.c" + + "loud.gkehub.v1.ListFleetsResponse\"n\332A\006pa" + + "rent\202\323\344\223\002_\022*/v1/{parent=projects/*/locat" + + "ions/*}/fleetsZ1\022//v1/{parent=organizations/*/locations/*}/fleets\022\260\001\n" + + "\021GetScopeNamespace\0220.google.cloud.gkehub.v1.GetScop" + + "eNamespaceRequest\032!.google.cloud.gkehub." + + "v1.Namespace\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=p" + + "rojects/*/locations/*/scopes/*/namespaces/*}\022\212\002\n" + + "\024CreateScopeNamespace\0223.google.c" + + "loud.gkehub.v1.CreateScopeNamespaceRequest\032\035.google.longrunning.Operation\"\235\001\312A\036\n" + + "\tNamespace\022\021OperationMetadata\332A)parent,s" + + "cope_namespace,scope_namespace_id\202\323\344\223\002J\"" + + "7/v1/{parent=projects/*/locations/*/scopes/*}/namespaces:\017scope_namespace\022\214\002\n" + + "\024UpdateScopeNamespace\0223.google.cloud.gkehub" + + ".v1.UpdateScopeNamespaceRequest\032\035.google.longrunning.Operation\"\237\001\312A\036\n" + + "\tNamespace\022\021OperationMetadata\332A\033scope_namespace,upd" + + "ate_mask\202\323\344\223\002Z2G/v1/{scope_namespace.nam" + + "e=projects/*/locations/*/scopes/*/namespaces/*}:\017scope_namespace\022\337\001\n" + + "\024DeleteScopeNamespace\0223.google.cloud.gkehub.v1.Delet" + + "eScopeNamespaceRequest\032\035.google.longrunning.Operation\"s\312A*\n" + + "\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\0029*7/v1/{" + + "name=projects/*/locations/*/scopes/*/namespaces/*}\022\310\001\n" + + "\023ListScopeNamespaces\0222.google.cloud.gkehub.v1.ListScopeNamespacesR" + + "equest\0323.google.cloud.gkehub.v1.ListScop" + + "eNamespacesResponse\"H\332A\006parent\202\323\344\223\0029\0227/v" + + "1/{parent=projects/*/locations/*/scopes/*}/namespaces\022\310\001\n" + + "\027GetScopeRBACRoleBinding\0226.google.cloud.gkehub.v1.GetScopeRBACR" + + "oleBindingRequest\032\'.google.cloud.gkehub." + + "v1.RBACRoleBinding\"L\332A\004name\202\323\344\223\002?\022=/v1/{" + + "name=projects/*/locations/*/scopes/*/rbacrolebindings/*}\022\242\002\n" + + "\032CreateScopeRBACRoleBinding\0229.google.cloud.gkehub.v1.CreateS" + + "copeRBACRoleBindingRequest\032\035.google.longrunning.Operation\"\251\001\312A$\n" + + "\017RBACRoleBinding\022\021OperationMetadata\332A)parent,rbacrolebin" + + "ding,rbacrolebinding_id\202\323\344\223\002P\"=/v1/{pare" + + "nt=projects/*/locations/*/scopes/*}/rbacrolebindings:\017rbacrolebinding\022\244\002\n" + + "\032UpdateScopeRBACRoleBinding\0229.google.cloud.gkeh" + + "ub.v1.UpdateScopeRBACRoleBindingRequest\032\035.google.longrunning.Operation\"\253\001\312A$\n" + + "\017RBACRoleBinding\022\021OperationMetadata\332A\033rbacr" + + "olebinding,update_mask\202\323\344\223\002`2M/v1/{rbacr" + + "olebinding.name=projects/*/locations/*/s" + + "copes/*/rbacrolebindings/*}:\017rbacrolebinding\022\361\001\n" + + "\032DeleteScopeRBACRoleBinding\0229.google.cloud.gkehub.v1.DeleteScopeRBACRole" + + "BindingRequest\032\035.google.longrunning.Operation\"y\312A*\n" + + "\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\332A\004name\202\323\344\223\002?*=/v1/{name=pro" + + "jects/*/locations/*/scopes/*/rbacrolebindings/*}\022\340\001\n" + + "\031ListScopeRBACRoleBindings\0228.google.cloud.gkehub.v1.ListScopeRBACRol" + + "eBindingsRequest\0329.google.cloud.gkehub.v" + + "1.ListScopeRBACRoleBindingsResponse\"N\332A\006" + + "parent\202\323\344\223\002?\022=/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings\022\215\001\n" + + "\010GetScope\022\'.google.cloud.gkehub.v1.GetSco" + + "peRequest\032\035.google.cloud.gkehub.v1.Scope" + + "\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/locations/*/scopes/*}\022\310\001\n" + + "\013CreateScope\022*.go" + + "ogle.cloud.gkehub.v1.CreateScopeRequest\032\035.google.longrunning.Operation\"n\312A\032\n" + + "\005Scope\022\021OperationMetadata\332A\025parent,scope,sco" + + "pe_id\202\323\344\223\0023\"*/v1/{parent=projects/*/locations/*}/scopes:\005scope\022\312\001\n" + + "\013UpdateScope\022*" + + ".google.cloud.gkehub.v1.UpdateScopeRequest\032\035.google.longrunning.Operation\"p\312A\032\n" + + "\005Scope\022\021OperationMetadata\332A\021scope,update_" + + "mask\202\323\344\223\002920/v1/{scope.name=projects/*/locations/*/scopes/*}:\005scope\022\300\001\n" + + "\013DeleteScope\022*.google.cloud.gkehub.v1.DeleteScope" + + "Request\032\035.google.longrunning.Operation\"f\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMet" + + "adata\332A\004name\202\323\344\223\002,**/v1/{name=projects/*/locations/*/scopes/*}\022\240\001\n\n" + + "ListScopes\022).google.cloud.gkehub.v1.ListScopesRequest" + + "\032*.google.cloud.gkehub.v1.ListScopesResp" + + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=projects/*/locations/*}/scopes\022\311\001\n" + + "\023ListPermittedScopes\0222.google.cloud.gkehub.v1.ListP" + + "ermittedScopesRequest\0323.google.cloud.gke" + + "hub.v1.ListPermittedScopesResponse\"I\332A\006p" + + "arent\202\323\344\223\002:\0228/v1/{parent=projects/*/locations/*}/scopes:listPermitted\022\301\001\n" + + "\024GetMembershipBinding\0223.google.cloud.gkehub.v1." + + "GetMembershipBindingRequest\032).google.clo" + + "ud.gkehub.v1.MembershipBinding\"I\332A\004name\202" + + "\323\344\223\002<\022:/v1/{name=projects/*/locations/*/memberships/*/bindings/*}\022\244\002\n" + + "\027CreateMembershipBinding\0226.google.cloud.gkehub.v1.C" + + "reateMembershipBindingRequest\032\035.google.longrunning.Operation\"\261\001\312A&\n" + + "\021MembershipBinding\022\021OperationMetadata\332A/parent,member" + + "ship_binding,membership_binding_id\202\323\344\223\002P" + + "\":/v1/{parent=projects/*/locations/*/mem" + + "berships/*}/bindings:\022membership_binding\022\246\002\n" + + "\027UpdateMembershipBinding\0226.google.cloud.gkehub.v1.UpdateMembershipBindingReq" + + "uest\032\035.google.longrunning.Operation\"\263\001\312A&\n" + + "\021MembershipBinding\022\021OperationMetadata\332" + + "A\036membership_binding,update_mask\202\323\344\223\002c2M", + "/v1/{membership_binding.name=projects/*/" + + "locations/*/memberships/*/bindings/*}:\022m" + + "embership_binding\022\350\001\n\027DeleteMembershipBi" + + "nding\0226.google.cloud.gkehub.v1.DeleteMem" + + "bershipBindingRequest\032\035.google.longrunni" + + "ng.Operation\"v\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\332A\004name\202\323\344\223\002<*:/v1/{n" + + "ame=projects/*/locations/*/memberships/*" + + "/bindings/*}\022\324\001\n\026ListMembershipBindings\022" + + "5.google.cloud.gkehub.v1.ListMembershipB" + + "indingsRequest\0326.google.cloud.gkehub.v1." + + "ListMembershipBindingsResponse\"K\332A\006paren" + + "t\202\323\344\223\002<\022:/v1/{parent=projects/*/location" + + "s/*/memberships/*}/bindings\022\327\001\n\034GetMembe" + + "rshipRBACRoleBinding\022;.google.cloud.gkeh" + + "ub.v1.GetMembershipRBACRoleBindingReques" + + "t\032\'.google.cloud.gkehub.v1.RBACRoleBindi" + + "ng\"Q\332A\004name\202\323\344\223\002D\022B/v1/{name=projects/*/" + + "locations/*/memberships/*/rbacrolebindin" + + "gs/*}\022\261\002\n\037CreateMembershipRBACRoleBindin" + + "g\022>.google.cloud.gkehub.v1.CreateMembers" + + "hipRBACRoleBindingRequest\032\035.google.longr" + + "unning.Operation\"\256\001\312A$\n\017RBACRoleBinding\022" + + "\021OperationMetadata\332A)parent,rbacrolebind" + + "ing,rbacrolebinding_id\202\323\344\223\002U\"B/v1/{paren" + + "t=projects/*/locations/*/memberships/*}/" + + "rbacrolebindings:\017rbacrolebinding\022\263\002\n\037Up" + + "dateMembershipRBACRoleBinding\022>.google.c" + + "loud.gkehub.v1.UpdateMembershipRBACRoleB" + + "indingRequest\032\035.google.longrunning.Opera" + + "tion\"\260\001\312A$\n\017RBACRoleBinding\022\021OperationMe" + + "tadata\332A\033rbacrolebinding,update_mask\202\323\344\223" + + "\002e2R/v1/{rbacrolebinding.name=projects/*" + + "/locations/*/memberships/*/rbacrolebindi" + + "ngs/*}:\017rbacrolebinding\022\200\002\n\037DeleteMember" + + "shipRBACRoleBinding\022>.google.cloud.gkehu" + + "b.v1.DeleteMembershipRBACRoleBindingRequ" + + "est\032\035.google.longrunning.Operation\"~\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002D*B/v1/{name=projects/*/loc" + + "ations/*/memberships/*/rbacrolebindings/" + + "*}\022\364\001\n\036ListMembershipRBACRoleBindings\022=." + + "google.cloud.gkehub.v1.ListMembershipRBA" + + "CRoleBindingsRequest\032>.google.cloud.gkeh" + + "ub.v1.ListMembershipRBACRoleBindingsResp" + + "onse\"S\332A\006parent\202\323\344\223\002D\022B/v1/{parent=proje" + + "cts/*/locations/*/memberships/*}/rbacrol" + + "ebindings\022\270\002\n%GenerateMembershipRBACRole" + + "BindingYAML\022D.google.cloud.gkehub.v1.Gen" + + "erateMembershipRBACRoleBindingYAMLReques" + + "t\032E.google.cloud.gkehub.v1.GenerateMembe" + + "rshipRBACRoleBindingYAMLResponse\"\201\001\202\323\344\223\002" + + "{\"h/v1/{parent=projects/*/locations/*/me" + + "mberships/*}/rbacrolebindings:generateMe" + + "mbershipRBACRoleBindingYAML:\017rbacrolebin" + + "ding\032I\312A\025gkehub.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\256\001\n\032com.google.cloud.gkehub.v1B\014ServiceP" + + "rotoP\001Z2cloud.google.com/go/gkehub/apiv1" + + "/gkehubpb;gkehubpb\252\002\026Google.Cloud.GkeHub" + + ".V1\312\002\026Google\\Cloud\\GkeHub\\V1\352\002\031Google::C" + + "loud::GkeHub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -273,21 +779,294 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.gkehub.v1.FeatureProto.getDescriptor(), + com.google.cloud.gkehub.v1.FleetProto.getDescriptor(), com.google.cloud.gkehub.v1.MembershipProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor = + internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor, + new java.lang.String[] { + "Parent", "ScopeNamespaceId", "ScopeNamespace", + }); + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor, + new java.lang.String[] { + "ScopeNamespace", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor, + new java.lang.String[] { + "ScopeNamespaces", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "RbacrolebindingId", "Rbacrolebinding", + }); + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Rbacrolebinding", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor, + new java.lang.String[] { + "Rbacrolebindings", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_gkehub_v1_GetScopeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor, + new java.lang.String[] { + "Parent", "ScopeId", "Scope", + }); + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor, + new java.lang.String[] { + "Scope", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_gkehub_v1_ListScopesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_gkehub_v1_ListScopesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor, + new java.lang.String[] { + "Scopes", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor, + new java.lang.String[] { + "Scopes", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "MembershipBinding", "MembershipBindingId", + }); + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor, + new java.lang.String[] { + "MembershipBinding", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor, + new java.lang.String[] { + "MembershipBindings", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor = + getDescriptor().getMessageType(26); internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor, new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "RbacrolebindingId", "Rbacrolebinding", + }); + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Rbacrolebinding", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor, + new java.lang.String[] { + "Rbacrolebindings", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor = + getDescriptor().getMessageType(33); + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor, + new java.lang.String[] { + "Parent", "RbacrolebindingId", "Rbacrolebinding", + }); + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor = + getDescriptor().getMessageType(34); + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor, + new java.lang.String[] { + "RoleBindingsYaml", + }); internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(35); internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor, @@ -295,15 +1074,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Resources", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(36); internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor, + new java.lang.String[] { + "ScopeName", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor, + new java.lang.String[] { + "Memberships", "Unreachable", "NextPageToken", + }); internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(39); internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor, @@ -311,7 +1106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "MembershipId", "Resource", "RequestId", }); internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(40); internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor, @@ -319,7 +1114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Force", }); internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(41); internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor, @@ -327,7 +1122,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "UpdateMask", "Resource", "RequestId", }); internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(42); internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor, @@ -341,7 +1136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ImagePullSecretContent", }); internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(43); internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor, @@ -349,14 +1144,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Manifest", }); internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(44); internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor, new java.lang.String[] { "Type", "Manifest", }); - internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor = getDescriptor().getMessageType(9); + internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor = getDescriptor().getMessageType(45); internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor, @@ -364,15 +1159,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", "ApiVersion", }); internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(46); internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ReturnPartialSuccess", }); internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(47); internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor, @@ -380,15 +1175,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Resources", "NextPageToken", }); internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(48); internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "ReturnPartialSuccess", }); internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(49); internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor, @@ -396,7 +1191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FeatureId", "Resource", "RequestId", }); internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(50); internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor, @@ -404,15 +1199,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", "RequestId", }); internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(51); internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor, new java.lang.String[] { "Name", "UpdateMask", "Resource", "RequestId", }); + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor = + getDescriptor().getMessageType(52); + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor, + new java.lang.String[] { + "Parent", "Fleet", + }); + internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor = + getDescriptor().getMessageType(53); + internal_static_google_cloud_gkehub_v1_GetFleetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor = + getDescriptor().getMessageType(54); + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor, + new java.lang.String[] { + "Fleet", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor = + getDescriptor().getMessageType(55); + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor = + getDescriptor().getMessageType(56); + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor = + getDescriptor().getMessageType(57); + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor, + new java.lang.String[] { + "Fleets", "NextPageToken", + }); internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(58); internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor, @@ -431,6 +1274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.gkehub.v1.FeatureProto.getDescriptor(); + com.google.cloud.gkehub.v1.FleetProto.getDescriptor(); com.google.cloud.gkehub.v1.MembershipProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java index 23f62f678833..5f53a273216a 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java @@ -255,7 +255,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { * * *
              -   * Optional. A request ID to identify requests. Specify a unique request ID
              +   * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
              @@ -291,7 +291,7 @@ public java.lang.String getRequestId() {
                  *
                  *
                  * 
              -   * Optional. A request ID to identify requests. Specify a unique request ID
              +   * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
              @@ -1308,7 +1308,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              @@ -1343,7 +1343,7 @@ public java.lang.String getRequestId() {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              @@ -1378,7 +1378,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              @@ -1412,7 +1412,7 @@ public Builder setRequestId(java.lang.String value) {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              @@ -1442,7 +1442,7 @@ public Builder clearRequestId() {
                    *
                    *
                    * 
              -     * Optional. A request ID to identify requests. Specify a unique request ID
              +     * A request ID to identify requests. Specify a unique request ID
                    * so that if you must retry your request, the server will know to ignore
                    * the request if it has already been completed. The server will guarantee
                    * that for at least 60 minutes after the first request.
              diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java
              index cb9809c715f3..9b515296d2e1 100644
              --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java
              +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java
              @@ -153,7 +153,7 @@ public interface UpdateFeatureRequestOrBuilder
                  *
                  *
                  * 
              -   * Optional. A request ID to identify requests. Specify a unique request ID
              +   * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
              @@ -178,7 +178,7 @@ public interface UpdateFeatureRequestOrBuilder
                  *
                  *
                  * 
              -   * Optional. A request ID to identify requests. Specify a unique request ID
              +   * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
              diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequest.java
              new file mode 100644
              index 000000000000..f3612c313ebf
              --- /dev/null
              +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequest.java
              @@ -0,0 +1,1022 @@
              +/*
              + * Copyright 2026 Google LLC
              + *
              + * Licensed under the Apache License, Version 2.0 (the "License");
              + * you may not use this file except in compliance with the License.
              + * You may obtain a copy of the License at
              + *
              + *     https://www.apache.org/licenses/LICENSE-2.0
              + *
              + * Unless required by applicable law or agreed to in writing, software
              + * distributed under the License is distributed on an "AS IS" BASIS,
              + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
              + * See the License for the specific language governing permissions and
              + * limitations under the License.
              + */
              +// Generated by the protocol buffer compiler.  DO NOT EDIT!
              +// NO CHECKED-IN PROTOBUF GENCODE
              +// source: google/cloud/gkehub/v1/service.proto
              +// Protobuf Java Version: 4.33.2
              +
              +package com.google.cloud.gkehub.v1;
              +
              +/**
              + *
              + *
              + * 
              + * Request message for the `GkeHub.UpdateFleet` method.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateFleetRequest} + */ +@com.google.protobuf.Generated +public final class UpdateFleetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateFleetRequest) + UpdateFleetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateFleetRequest"); + } + + // Use UpdateFleetRequest.newBuilder() to construct. + private UpdateFleetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateFleetRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateFleetRequest.class, + com.google.cloud.gkehub.v1.UpdateFleetRequest.Builder.class); + } + + private int bitField0_; + public static final int FLEET_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.Fleet fleet_; + + /** + * + * + *
              +   * Required. The Fleet to update.
              +   *
              +   * The `name` field of the Fleet object identifies which fleet will be
              +   * updated.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the fleet field is set. + */ + @java.lang.Override + public boolean hasFleet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The Fleet to update.
              +   *
              +   * The `name` field of the Fleet object identifies which fleet will be
              +   * updated.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleet. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet getFleet() { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + + /** + * + * + *
              +   * Required. The Fleet to update.
              +   *
              +   * The `name` field of the Fleet object identifies which fleet will be
              +   * updated.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder() { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
              +   * Required. The fields to be updated;
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Required. The fields to be updated;
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated;
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @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, getFleet()); + } + 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, getFleet()); + } + 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.gkehub.v1.UpdateFleetRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateFleetRequest other = + (com.google.cloud.gkehub.v1.UpdateFleetRequest) obj; + + if (hasFleet() != other.hasFleet()) return false; + if (hasFleet()) { + if (!getFleet().equals(other.getFleet())) 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 (hasFleet()) { + hash = (37 * hash) + FLEET_FIELD_NUMBER; + hash = (53 * hash) + getFleet().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.gkehub.v1.UpdateFleetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest 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.v1.UpdateFleetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest 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.v1.UpdateFleetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.UpdateFleetRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for the `GkeHub.UpdateFleet` method.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateFleetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateFleetRequest) + com.google.cloud.gkehub.v1.UpdateFleetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateFleetRequest.class, + com.google.cloud.gkehub.v1.UpdateFleetRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateFleetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFleetFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = 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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateFleetRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateFleetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateFleetRequest build() { + com.google.cloud.gkehub.v1.UpdateFleetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateFleetRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateFleetRequest result = + new com.google.cloud.gkehub.v1.UpdateFleetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.UpdateFleetRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fleet_ = fleetBuilder_ == null ? fleet_ : fleetBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateFleetRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateFleetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateFleetRequest other) { + if (other == com.google.cloud.gkehub.v1.UpdateFleetRequest.getDefaultInstance()) return this; + if (other.hasFleet()) { + mergeFleet(other.getFleet()); + } + 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(internalGetFleetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.gkehub.v1.Fleet fleet_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + fleetBuilder_; + + /** + * + * + *
              +     * Required. The Fleet to update.
              +     *
              +     * The `name` field of the Fleet object identifies which fleet will be
              +     * updated.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Required. The Fleet to update.
              +     *
              +     * The `name` field of the Fleet object identifies which fleet will be
              +     * updated.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fleet. + */ + public com.google.cloud.gkehub.v1.Fleet getFleet() { + if (fleetBuilder_ == null) { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } else { + return fleetBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The Fleet to update.
              +     *
              +     * The `name` field of the Fleet object identifies which fleet will be
              +     * updated.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fleet_ = value; + } else { + fleetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The Fleet to update.
              +     *
              +     * The `name` field of the Fleet object identifies which fleet will be
              +     * updated.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetBuilder_ == null) { + fleet_ = builderForValue.build(); + } else { + fleetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The Fleet to update.
              +     *
              +     * The `name` field of the Fleet object identifies which fleet will be
              +     * updated.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFleet(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && fleet_ != null + && fleet_ != com.google.cloud.gkehub.v1.Fleet.getDefaultInstance()) { + getFleetBuilder().mergeFrom(value); + } else { + fleet_ = value; + } + } else { + fleetBuilder_.mergeFrom(value); + } + if (fleet_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The Fleet to update.
              +     *
              +     * The `name` field of the Fleet object identifies which fleet will be
              +     * updated.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFleet() { + bitField0_ = (bitField0_ & ~0x00000001); + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The Fleet to update.
              +     *
              +     * The `name` field of the Fleet object identifies which fleet will be
              +     * updated.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Fleet.Builder getFleetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetFleetFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The Fleet to update.
              +     *
              +     * The `name` field of the Fleet object identifies which fleet will be
              +     * updated.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder() { + if (fleetBuilder_ != null) { + return fleetBuilder_.getMessageOrBuilder(); + } else { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + } + + /** + * + * + *
              +     * Required. The Fleet to update.
              +     *
              +     * The `name` field of the Fleet object identifies which fleet will be
              +     * updated.
              +     * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + internalGetFleetFieldBuilder() { + if (fleetBuilder_ == null) { + fleetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder>( + getFleet(), getParentForChildren(), isClean()); + fleet_ = null; + } + return fleetBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
              +     * Required. The fields to be updated;
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Required. The fields to be updated;
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated;
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated;
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated;
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
              +     * Required. The fields to be updated;
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated;
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The fields to be updated;
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated;
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateFleetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateFleetRequest) + private static final com.google.cloud.gkehub.v1.UpdateFleetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateFleetRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFleetRequest 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.v1.UpdateFleetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequestOrBuilder.java new file mode 100644 index 000000000000..07b9c690797f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateFleetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateFleetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The Fleet to update.
              +   *
              +   * The `name` field of the Fleet object identifies which fleet will be
              +   * updated.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the fleet field is set. + */ + boolean hasFleet(); + + /** + * + * + *
              +   * Required. The Fleet to update.
              +   *
              +   * The `name` field of the Fleet object identifies which fleet will be
              +   * updated.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleet. + */ + com.google.cloud.gkehub.v1.Fleet getFleet(); + + /** + * + * + *
              +   * Required. The Fleet to update.
              +   *
              +   * The `name` field of the Fleet object identifies which fleet will be
              +   * updated.
              +   * 
              + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder(); + + /** + * + * + *
              +   * Required. The fields to be updated;
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated;
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated;
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequest.java new file mode 100644 index 000000000000..81b73a368bd0 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequest.java @@ -0,0 +1,1017 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to update a MembershipBinding.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipBindingRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMembershipBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + UpdateMembershipBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMembershipBindingRequest"); + } + + // Use UpdateMembershipBindingRequest.newBuilder() to construct. + private UpdateMembershipBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMembershipBindingRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int MEMBERSHIP_BINDING_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.MembershipBinding membershipBinding_; + + /** + * + * + *
              +   * Required. The MembershipBinding object with fields updated.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + @java.lang.Override + public boolean hasMembershipBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The MembershipBinding object with fields updated.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding() { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + + /** + * + * + *
              +   * Required. The MembershipBinding object with fields updated.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder() { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @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, getMembershipBinding()); + } + 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, getMembershipBinding()); + } + 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.gkehub.v1.UpdateMembershipBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest other = + (com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest) obj; + + if (hasMembershipBinding() != other.hasMembershipBinding()) return false; + if (hasMembershipBinding()) { + if (!getMembershipBinding().equals(other.getMembershipBinding())) 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 (hasMembershipBinding()) { + hash = (37 * hash) + MEMBERSHIP_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBinding().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.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest 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.v1.UpdateMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest 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.v1.UpdateMembershipBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.UpdateMembershipBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to update a MembershipBinding.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMembershipBindingFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + membershipBinding_ = null; + if (membershipBindingBuilder_ != null) { + membershipBindingBuilder_.dispose(); + membershipBindingBuilder_ = 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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest build() { + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest result = + new com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.membershipBinding_ = + membershipBindingBuilder_ == null + ? membershipBinding_ + : membershipBindingBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.getDefaultInstance()) + return this; + if (other.hasMembershipBinding()) { + mergeMembershipBinding(other.getMembershipBinding()); + } + 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( + internalGetMembershipBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.gkehub.v1.MembershipBinding membershipBinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + membershipBindingBuilder_; + + /** + * + * + *
              +     * Required. The MembershipBinding object with fields updated.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + public boolean hasMembershipBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Required. The MembershipBinding object with fields updated.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding() { + if (membershipBindingBuilder_ == null) { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } else { + return membershipBindingBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The MembershipBinding object with fields updated.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMembershipBinding(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + membershipBinding_ = value; + } else { + membershipBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The MembershipBinding object with fields updated.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMembershipBinding( + com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingBuilder_ == null) { + membershipBinding_ = builderForValue.build(); + } else { + membershipBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The MembershipBinding object with fields updated.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMembershipBinding(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && membershipBinding_ != null + && membershipBinding_ + != com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()) { + getMembershipBindingBuilder().mergeFrom(value); + } else { + membershipBinding_ = value; + } + } else { + membershipBindingBuilder_.mergeFrom(value); + } + if (membershipBinding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The MembershipBinding object with fields updated.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMembershipBinding() { + bitField0_ = (bitField0_ & ~0x00000001); + membershipBinding_ = null; + if (membershipBindingBuilder_ != null) { + membershipBindingBuilder_.dispose(); + membershipBindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The MembershipBinding object with fields updated.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder getMembershipBindingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetMembershipBindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The MembershipBinding object with fields updated.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder() { + if (membershipBindingBuilder_ != null) { + return membershipBindingBuilder_.getMessageOrBuilder(); + } else { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + } + + /** + * + * + *
              +     * Required. The MembershipBinding object with fields updated.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + internalGetMembershipBindingFieldBuilder() { + if (membershipBindingBuilder_ == null) { + membershipBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder>( + getMembershipBinding(), getParentForChildren(), isClean()); + membershipBinding_ = null; + } + return membershipBindingBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + private static final com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipBindingRequest 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.v1.UpdateMembershipBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequestOrBuilder.java new file mode 100644 index 000000000000..211215a7c02c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateMembershipBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The MembershipBinding object with fields updated.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + boolean hasMembershipBinding(); + + /** + * + * + *
              +   * Required. The MembershipBinding object with fields updated.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding(); + + /** + * + * + *
              +   * Required. The MembershipBinding object with fields updated.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequest.java new file mode 100644 index 000000000000..f5182b6a0d87 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequest.java @@ -0,0 +1,1038 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to update a membership rbacrolebinding.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMembershipRBACRoleBindingRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + UpdateMembershipRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMembershipRBACRoleBindingRequest"); + } + + // Use UpdateMembershipRBACRoleBindingRequest.newBuilder() to construct. + private UpdateMembershipRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMembershipRBACRoleBindingRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int RBACROLEBINDING_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @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, getRbacrolebinding()); + } + 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, getRbacrolebinding()); + } + 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.gkehub.v1.UpdateMembershipRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) obj; + + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) 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 (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().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.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest 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.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest 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.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.UpdateMembershipRBACRoleBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to update a membership rbacrolebinding.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = 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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + 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( + internalGetRbacrolebindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000001); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipRBACRoleBindingRequest 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.v1.UpdateMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..58a038ee44ae --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateMembershipRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequest.java new file mode 100644 index 000000000000..13e7ba5d8fd5 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequest.java @@ -0,0 +1,1037 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to update a fleet namespace.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeNamespaceRequest} + */ +@com.google.protobuf.Generated +public final class UpdateScopeNamespaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + UpdateScopeNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateScopeNamespaceRequest"); + } + + // Use UpdateScopeNamespaceRequest.newBuilder() to construct. + private UpdateScopeNamespaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateScopeNamespaceRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.Builder.class); + } + + private int bitField0_; + public static final int SCOPE_NAMESPACE_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.Namespace scopeNamespace_; + + /** + * + * + *
              +   * Required. A namespace with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update. Given 'updated'
              +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + @java.lang.Override + public boolean hasScopeNamespace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. A namespace with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update. Given 'updated'
              +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace() { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + + /** + * + * + *
              +   * Required. A namespace with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update. Given 'updated'
              +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder() { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @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, getScopeNamespace()); + } + 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, getScopeNamespace()); + } + 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.gkehub.v1.UpdateScopeNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest other = + (com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) obj; + + if (hasScopeNamespace() != other.hasScopeNamespace()) return false; + if (hasScopeNamespace()) { + if (!getScopeNamespace().equals(other.getScopeNamespace())) 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 (hasScopeNamespace()) { + hash = (37 * hash) + SCOPE_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getScopeNamespace().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.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest 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.v1.UpdateScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest 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.v1.UpdateScopeNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.UpdateScopeNamespaceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to update a fleet namespace.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeNamespaceFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scopeNamespace_ = null; + if (scopeNamespaceBuilder_ != null) { + scopeNamespaceBuilder_.dispose(); + scopeNamespaceBuilder_ = 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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest build() { + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest result = + new com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scopeNamespace_ = + scopeNamespaceBuilder_ == null ? scopeNamespace_ : scopeNamespaceBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest other) { + if (other == com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.getDefaultInstance()) + return this; + if (other.hasScopeNamespace()) { + mergeScopeNamespace(other.getScopeNamespace()); + } + 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( + internalGetScopeNamespaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.gkehub.v1.Namespace scopeNamespace_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + scopeNamespaceBuilder_; + + /** + * + * + *
              +     * Required. A namespace with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update. Given 'updated'
              +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + public boolean hasScopeNamespace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Required. A namespace with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update. Given 'updated'
              +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace() { + if (scopeNamespaceBuilder_ == null) { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } else { + return scopeNamespaceBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. A namespace with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update. Given 'updated'
              +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScopeNamespace(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scopeNamespace_ = value; + } else { + scopeNamespaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A namespace with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update. Given 'updated'
              +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScopeNamespace(com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespaceBuilder_ == null) { + scopeNamespace_ = builderForValue.build(); + } else { + scopeNamespaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A namespace with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update. Given 'updated'
              +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeScopeNamespace(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && scopeNamespace_ != null + && scopeNamespace_ != com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()) { + getScopeNamespaceBuilder().mergeFrom(value); + } else { + scopeNamespace_ = value; + } + } else { + scopeNamespaceBuilder_.mergeFrom(value); + } + if (scopeNamespace_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. A namespace with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update. Given 'updated'
              +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearScopeNamespace() { + bitField0_ = (bitField0_ & ~0x00000001); + scopeNamespace_ = null; + if (scopeNamespaceBuilder_ != null) { + scopeNamespaceBuilder_.dispose(); + scopeNamespaceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A namespace with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update. Given 'updated'
              +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Namespace.Builder getScopeNamespaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetScopeNamespaceFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. A namespace with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update. Given 'updated'
              +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder() { + if (scopeNamespaceBuilder_ != null) { + return scopeNamespaceBuilder_.getMessageOrBuilder(); + } else { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + } + + /** + * + * + *
              +     * Required. A namespace with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update. Given 'updated'
              +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +     * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + internalGetScopeNamespaceFieldBuilder() { + if (scopeNamespaceBuilder_ == null) { + scopeNamespaceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder>( + getScopeNamespace(), getParentForChildren(), isClean()); + scopeNamespace_ = null; + } + return scopeNamespaceBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + private static final com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScopeNamespaceRequest 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.v1.UpdateScopeNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..680e3311a32a --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateScopeNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. A namespace with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update. Given 'updated'
              +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + boolean hasScopeNamespace(); + + /** + * + * + *
              +   * Required. A namespace with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update. Given 'updated'
              +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + com.google.cloud.gkehub.v1.Namespace getScopeNamespace(); + + /** + * + * + *
              +   * Required. A namespace with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update. Given 'updated'
              +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
              +   * 
              + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequest.java new file mode 100644 index 000000000000..22f6fa9a19ed --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequest.java @@ -0,0 +1,1032 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to update a scope rbacrolebinding.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class UpdateScopeRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + UpdateScopeRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateScopeRBACRoleBindingRequest"); + } + + // Use UpdateScopeRBACRoleBindingRequest.newBuilder() to construct. + private UpdateScopeRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateScopeRBACRoleBindingRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int RBACROLEBINDING_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @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, getRbacrolebinding()); + } + 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, getRbacrolebinding()); + } + 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.gkehub.v1.UpdateScopeRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) obj; + + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) 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 (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().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.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest 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.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest 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.v1.UpdateScopeRBACRoleBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.UpdateScopeRBACRoleBindingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to update a scope rbacrolebinding.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = 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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + 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( + internalGetRbacrolebindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000001); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
              +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +     * rbacrolebinding is used to identify the resource to update.
              +     * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScopeRBACRoleBindingRequest 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.v1.UpdateScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..26276fe9f92f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateScopeRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
              +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
              +   * rbacrolebinding is used to identify the resource to update.
              +   * 
              + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequest.java new file mode 100644 index 000000000000..30351d100d82 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequest.java @@ -0,0 +1,998 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
              + * Request to update a Scope.
              + * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeRequest} + */ +@com.google.protobuf.Generated +public final class UpdateScopeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateScopeRequest) + UpdateScopeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateScopeRequest"); + } + + // Use UpdateScopeRequest.newBuilder() to construct. + private UpdateScopeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateScopeRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeRequest.Builder.class); + } + + private int bitField0_; + public static final int SCOPE_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.Scope scope_; + + /** + * + * + *
              +   * Required. A Scope with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. A Scope with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getScope() { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + + /** + * + * + *
              +   * Required. A Scope with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder() { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @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, getScope()); + } + 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, getScope()); + } + 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.gkehub.v1.UpdateScopeRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateScopeRequest other = + (com.google.cloud.gkehub.v1.UpdateScopeRequest) obj; + + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope().equals(other.getScope())) 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 (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().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.gkehub.v1.UpdateScopeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest 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.v1.UpdateScopeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest 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.v1.UpdateScopeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.UpdateScopeRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request to update a Scope.
              +   * 
              + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateScopeRequest) + com.google.cloud.gkehub.v1.UpdateScopeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateScopeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = 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.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateScopeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRequest build() { + com.google.cloud.gkehub.v1.UpdateScopeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateScopeRequest result = + new com.google.cloud.gkehub.v1.UpdateScopeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.UpdateScopeRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateScopeRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateScopeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateScopeRequest other) { + if (other == com.google.cloud.gkehub.v1.UpdateScopeRequest.getDefaultInstance()) return this; + if (other.hasScope()) { + mergeScope(other.getScope()); + } + 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(internalGetScopeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.gkehub.v1.Scope scope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + scopeBuilder_; + + /** + * + * + *
              +     * Required. A Scope with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Required. A Scope with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scope. + */ + public com.google.cloud.gkehub.v1.Scope getScope() { + if (scopeBuilder_ == null) { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } else { + return scopeBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. A Scope with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.gkehub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + } else { + scopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A Scope with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopeBuilder_ == null) { + scope_ = builderForValue.build(); + } else { + scopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A Scope with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeScope(com.google.cloud.gkehub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && scope_ != null + && scope_ != com.google.cloud.gkehub.v1.Scope.getDefaultInstance()) { + getScopeBuilder().mergeFrom(value); + } else { + scope_ = value; + } + } else { + scopeBuilder_.mergeFrom(value); + } + if (scope_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. A Scope with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000001); + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A Scope with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Scope.Builder getScopeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. A Scope with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder() { + if (scopeBuilder_ != null) { + return scopeBuilder_.getMessageOrBuilder(); + } else { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + } + + /** + * + * + *
              +     * Required. A Scope with fields updated. The 'name' field in this
              +     * namespace is used to identify the resource to update.
              +     * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + internalGetScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder>( + getScope(), getParentForChildren(), isClean()); + scope_ = null; + } + return scopeBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The fields to be updated.
              +     * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateScopeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateScopeRequest) + private static final com.google.cloud.gkehub.v1.UpdateScopeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateScopeRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScopeRequest 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.v1.UpdateScopeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequestOrBuilder.java new file mode 100644 index 000000000000..f6afd33899f3 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateScopeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateScopeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. A Scope with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
              +   * Required. A Scope with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + com.google.cloud.gkehub.v1.Scope getScope(); + + /** + * + * + *
              +   * Required. A Scope with fields updated. The 'name' field in this
              +   * namespace is used to identify the resource to update.
              +   * 
              + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
              +   * Required. The fields to be updated.
              +   * 
              + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto index 42d299841c87..a45b19338aa2 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/gkehub/v1/configmanagement/configmanagement.proto"; import "google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto"; +import "google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1"; @@ -30,7 +31,7 @@ option java_package = "com.google.cloud.gkehub.v1"; option php_namespace = "Google\\Cloud\\GkeHub\\V1"; option ruby_package = "Google::Cloud::GkeHub::V1"; -// Feature represents the settings and status of any Hub Feature. +// Feature represents the settings and status of any Fleet Feature. message Feature { option (google.api.resource) = { type: "gkehub.googleapis.com/Feature" @@ -41,22 +42,24 @@ message Feature { // `projects/*/locations/*/features/*`. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // GCP labels for this Feature. + // Labels for this Feature. map labels = 2; // Output only. State of the Feature resource itself. - FeatureResourceState resource_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + FeatureResourceState resource_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Hub-wide Feature configuration. If this Feature does not support any - // Hub-wide configuration, this field may be unused. + // Optional. Fleet-wide Feature configuration. If this Feature does not + // support any Fleet-wide configuration, this field may be unused. CommonFeatureSpec spec = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Membership-specific configuration for this Feature. If this Feature does - // not support any per-Membership configuration, this field may be unused. + // Optional. Membership-specific configuration for this Feature. If this + // Feature does not support any per-Membership configuration, this field may + // be unused. // // The keys indicate which Membership the configuration is for, in the form: // - // projects/{p}/locations/{l}/memberships/{m} + // `projects/{p}/locations/{l}/memberships/{m}` // // Where {p} is the project, {l} is a valid location and {m} is a valid // Membership in this project at that location. {p} WILL match the Feature's @@ -68,9 +71,10 @@ message Feature { // ONE of the entries will be saved, with no guarantees as to which. For this // reason, it is recommended the same format be used for all entries when // mutating a Feature. - map membership_specs = 5 [(google.api.field_behavior) = OPTIONAL]; + map membership_specs = 5 + [(google.api.field_behavior) = OPTIONAL]; - // Output only. The Hub-wide Feature state. + // Output only. The Fleet-wide Feature state. CommonFeatureState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Membership-specific Feature status. If this Feature does @@ -78,26 +82,65 @@ message Feature { // // The keys indicate which Membership the state is for, in the form: // - // projects/{p}/locations/{l}/memberships/{m} + // `projects/{p}/locations/{l}/memberships/{m}` // // Where {p} is the project number, {l} is a valid location and {m} is a valid // Membership in this project at that location. {p} MUST match the Feature's // project number. - map membership_states = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + map membership_states = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. When the Feature resource was created. - google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. When the Feature resource was last updated. - google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. When the Feature resource was deleted. - google.protobuf.Timestamp delete_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp delete_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Scope-specific configuration for this Feature. If this Feature + // does not support any per-Scope configuration, this field may be unused. + // + // The keys indicate which Scope the configuration is for, in the form: + // + // `projects/{p}/locations/global/scopes/{s}` + // + // Where {p} is the project, {s} is a valid Scope in this project. + // {p} WILL match the Feature's project. + // + // {p} will always be returned as the project number, but the project ID is + // also accepted during input. If the same Scope is specified in the map + // twice (using the project ID form, and the project number form), exactly + // ONE of the entries will be saved, with no guarantees as to which. For this + // reason, it is recommended the same format be used for all entries when + // mutating a Feature. + map scope_specs = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Scope-specific Feature status. If this Feature does + // report any per-Scope status, this field may be unused. + // + // The keys indicate which Scope the state is for, in the form: + // + // `projects/{p}/locations/global/scopes/{s}` + // + // Where {p} is the project, {s} is a valid Scope in this project. + // {p} WILL match the Feature's project. + map scope_states = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of locations that could not be reached while fetching + // this feature. + repeated string unreachable = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } // FeatureResourceState describes the state of a Feature *resource* in the // GkeHub API. See `FeatureState` for the "running state" of the Feature in the -// Hub and across Memberships. +// Fleet and across Memberships. message FeatureResourceState { // State describes the lifecycle status of a Feature. enum State { @@ -105,14 +148,14 @@ message FeatureResourceState { STATE_UNSPECIFIED = 0; // The Feature is being enabled, and the Feature resource is being created. - // Once complete, the corresponding Feature will be enabled in this Hub. + // Once complete, the corresponding Feature will be enabled in this Fleet. ENABLING = 1; - // The Feature is enabled in this Hub, and the Feature resource is fully + // The Feature is enabled in this Fleet, and the Feature resource is fully // available. ACTIVE = 2; - // The Feature is being disabled in this Hub, and the Feature resource + // The Feature is being disabled in this Fleet, and the Feature resource // is being deleted. DISABLING = 3; @@ -166,13 +209,29 @@ message FeatureState { message CommonFeatureSpec { oneof feature_spec { // Multicluster Ingress-specific spec. - google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = + 102; } } -// CommonFeatureState contains Hub-wide Feature status information. +// CommonFeatureState contains Fleet-wide Feature status information. message CommonFeatureState { - // Output only. The "running state" of the Feature in this Hub. + oneof feature_state { + // RBAC Role Binding Actuation feature state + google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + rbacrolebindingactuation = 120; + } + + // Output only. The "running state" of the Feature in this Fleet. + FeatureState state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ScopeFeatureSpec contains feature specs for a fleet scope. +message ScopeFeatureSpec {} + +// ScopeFeatureState contains Scope-wide Feature status information. +message ScopeFeatureState { + // Output only. The "running state" of the Feature in this Scope. FeatureState state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -181,7 +240,8 @@ message CommonFeatureState { message MembershipFeatureSpec { oneof feature_spec { // Config Management-specific spec. - google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = + 106; } } @@ -190,7 +250,8 @@ message MembershipFeatureSpec { message MembershipFeatureState { oneof feature_state { // Config Management-specific state. - google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = + 106; } // The high-level state of this Feature for a single membership. diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/fleet.proto b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/fleet.proto new file mode 100644 index 000000000000..0d11cb80fb5d --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/fleet.proto @@ -0,0 +1,538 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.gkehub.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.GkeHub.V1"; +option go_package = "cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpb"; +option java_multiple_files = true; +option java_outer_classname = "FleetProto"; +option java_package = "com.google.cloud.gkehub.v1"; +option php_namespace = "Google\\Cloud\\GkeHub\\V1"; +option ruby_package = "Google::Cloud::GkeHub::V1"; + +// Fleet contains the Fleet-wide metadata and configuration. +message Fleet { + option (google.api.resource) = { + type: "gkehub.googleapis.com/Fleet" + pattern: "projects/{project}/locations/{location}/fleets/{fleet}" + pattern: "organizations/{organization}/locations/{location}/fleets/{fleet}" + }; + + // Output only. The full, unique resource name of this fleet in the format of + // `projects/{project}/locations/{location}/fleets/{fleet}`. + // + // Each Google Cloud project can have at most one fleet resource, named + // "default". + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A user-assigned display name of the Fleet. + // When present, it must be between 4 to 30 characters. + // Allowed characters are: lowercase and uppercase letters, numbers, + // hyphen, single-quote, double-quote, space, and exclamation point. + // + // Example: `Production Fleet` + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. When the Fleet was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the Fleet was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the Fleet was deleted. + google.protobuf.Timestamp delete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Google-generated UUID for this resource. This is unique across + // all Fleet resources. If a Fleet resource is deleted and another resource + // with the same name is created, it gets a different uid. + string uid = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the namespace resource. + FleetLifecycleState state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The default cluster configurations to apply across the fleet. + DefaultClusterConfig default_cluster_config = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels for this Fleet. + map labels = 11 [(google.api.field_behavior) = OPTIONAL]; +} + +// DefaultClusterConfig describes the default cluster configurations to be +// applied to all clusters born-in-fleet. +message DefaultClusterConfig { + // Enable/Disable Security Posture features for the cluster. + SecurityPostureConfig security_posture_config = 1; + + // Optional. Enable/Disable binary authorization features for the cluster. + BinaryAuthorizationConfig binary_authorization_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enable/Disable Compliance Posture features for the cluster. + // Note that on UpdateFleet, only full replacement of this field is allowed. + // Users are not allowed for partial updates through field mask. + CompliancePostureConfig compliance_posture_config = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// SecurityPostureConfig defines the flags needed to enable/disable features for +// the Security Posture API. +message SecurityPostureConfig { + // Mode defines enablement mode for GKE Security posture features. + enum Mode { + // Default value not specified. + MODE_UNSPECIFIED = 0; + + // Disables Security Posture features on the cluster. + DISABLED = 1; + + // 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. + enum VulnerabilityMode { + // Default value not specified. + VULNERABILITY_MODE_UNSPECIFIED = 0; + + // Disables vulnerability scanning on the cluster. + VULNERABILITY_DISABLED = 1; + + // Applies basic vulnerability scanning on the cluster. + VULNERABILITY_BASIC = 2; + + // Applies the Security Posture's vulnerability on cluster Enterprise level + // features. + VULNERABILITY_ENTERPRISE = 3; + } + + // Sets which mode to use for Security Posture features. + Mode mode = 1; + + // Sets which mode to use for vulnerability scanning. + VulnerabilityMode vulnerability_mode = 2; +} + +// BinaryAuthorizationConfig defines the fleet level configuration of binary +// authorization feature. +message BinaryAuthorizationConfig { + // Binauthz policy that applies to this cluster. + message PolicyBinding { + // The relative resource name of the binauthz platform policy to audit. GKE + // platform policies have the following format: + // `projects/{project_number}/platforms/gke/policies/{policy_id}`. + string name = 1; + } + + // Binary Authorization mode of operation. + enum EvaluationMode { + // Default value + EVALUATION_MODE_UNSPECIFIED = 0; + + // Disable BinaryAuthorization + DISABLED = 1; + + // Use Binary Authorization with the policies specified in policy_bindings. + POLICY_BINDINGS = 2; + } + + // Optional. Mode of operation for binauthz policy evaluation. + EvaluationMode evaluation_mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Binauthz policies that apply to this cluster. + repeated PolicyBinding policy_bindings = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// CompliancePostureConfig defines the settings needed to enable/disable +// features for the Compliance Posture. +message CompliancePostureConfig { + message ComplianceStandard { + // Name of the compliance standard. + string standard = 1; + } + + enum Mode { + // Default value not specified. + MODE_UNSPECIFIED = 0; + + // Disables Compliance Posture features on the cluster. + DISABLED = 1; + + // Enables Compliance Posture features on the cluster. + ENABLED = 2; + } + + // Defines the enablement mode for Compliance Posture. + Mode mode = 1; + + // List of enabled compliance standards. + repeated ComplianceStandard compliance_standards = 2; +} + +// FleetLifecycleState describes the state of a Fleet resource. +message FleetLifecycleState { + // Code describes the state of a Fleet resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The fleet is being created. + CREATING = 1; + + // The fleet active. + READY = 2; + + // The fleet is being deleted. + DELETING = 3; + + // The fleet is being updated. + UPDATING = 4; + } + + // Output only. The current state of the Fleet resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Namespace represents a namespace across the Fleet +message Namespace { + option (google.api.resource) = { + type: "gkehub.googleapis.com/Namespace" + pattern: "projects/{project}/locations/{location}/scopes/{scope}/namespaces/{namespace}" + }; + + // The resource name for the namespace + // `projects/{project}/locations/{location}/namespaces/{namespace}` + string name = 1; + + // Output only. Google-generated UUID for this resource. This is unique across + // all namespace resources. If a namespace resource is deleted and another + // resource with the same name is created, it gets a different uid. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the namespace was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the namespace was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the namespace was deleted. + google.protobuf.Timestamp delete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the namespace resource. + NamespaceLifecycleState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Scope associated with the namespace + string scope = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; + + // Optional. Namespace-level cluster namespace labels. These labels are + // applied to the related namespace of the member clusters bound to the parent + // Scope. Scope-level labels (`namespace_labels` in the Fleet Scope + // resource) take precedence over Namespace-level labels if they share + // a key. Keys and values must be Kubernetes-conformant. + map namespace_labels = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels for this Namespace. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// NamespaceLifecycleState describes the state of a Namespace resource. +message NamespaceLifecycleState { + // Code describes the state of a Namespace resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The namespace is being created. + CREATING = 1; + + // The namespace active. + READY = 2; + + // The namespace is being deleted. + DELETING = 3; + + // The namespace is being updated. + UPDATING = 4; + } + + // Output only. The current state of the Namespace resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// RBACRoleBinding represents a rbacrolebinding across the Fleet +message RBACRoleBinding { + option (google.api.resource) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + pattern: "projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}" + pattern: "projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}" + }; + + // Role is the type for Kubernetes roles + message Role { + // PredefinedRoles is an ENUM representation of the default Kubernetes Roles + enum PredefinedRoles { + // UNKNOWN + UNKNOWN = 0; + + // ADMIN has EDIT and RBAC permissions + ADMIN = 1; + + // EDIT can edit all resources except RBAC + EDIT = 2; + + // VIEW can only read resources + VIEW = 3; + + // ANTHOS_SUPPORT gives Google Support read-only access to a number of + // cluster resources. + ANTHOS_SUPPORT = 4; + } + + // predefined_role is the Kubernetes default role to use + PredefinedRoles predefined_role = 1; + + // Optional. custom_role is the name of a custom KubernetesClusterRole to + // use. + string custom_role = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Principal that is be authorized in the cluster (at least of one the oneof + // is required). Updating one will unset the other automatically. + oneof principal { + // user is the name of the user as seen by the kubernetes cluster, example + // "alice" or "alice@domain.tld" + string user = 7; + + // group is the group, as seen by the kubernetes cluster. + string group = 8; + } + + // The resource name for the rbacrolebinding + // `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}` + // or + // `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}` + string name = 1; + + // Output only. Google-generated UUID for this resource. This is unique across + // all rbacrolebinding resources. If a rbacrolebinding resource is deleted and + // another resource with the same name is created, it gets a different uid. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the rbacrolebinding was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the rbacrolebinding was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the rbacrolebinding was deleted. + google.protobuf.Timestamp delete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the rbacrolebinding resource. + RBACRoleBindingLifecycleState state = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Role to bind to the principal + Role role = 9 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Labels for this RBACRolebinding. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding +// resource. +message RBACRoleBindingLifecycleState { + // Code describes the state of a rbacrolebinding resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The rbacrolebinding is being created. + CREATING = 1; + + // The rbacrolebinding active. + READY = 2; + + // The rbacrolebinding is being deleted. + DELETING = 3; + + // The rbacrolebinding is being updated. + UPDATING = 4; + } + + // Output only. The current state of the rbacrolebinding resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Scope represents a Scope in a Fleet. +message Scope { + option (google.api.resource) = { + type: "gkehub.googleapis.com/Scope" + pattern: "projects/{project}/locations/{location}/scopes/{scope}" + }; + + // The resource name for the scope + // `projects/{project}/locations/{location}/scopes/{scope}` + string name = 1; + + // Output only. Google-generated UUID for this resource. This is unique across + // all scope resources. If a scope resource is deleted and another resource + // with the same name is created, it gets a different uid. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the scope was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the scope was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the scope was deleted. + google.protobuf.Timestamp delete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the scope resource. + ScopeLifecycleState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Scope-level cluster namespace labels. For the member clusters + // bound to the Scope, these labels are applied to each namespace under the + // Scope. Scope-level labels take precedence over Namespace-level + // labels (`namespace_labels` in the Fleet Namespace resource) if they + // share a key. Keys and values must be Kubernetes-conformant. + map namespace_labels = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels for this Scope. + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// ScopeLifecycleState describes the state of a Scope resource. +message ScopeLifecycleState { + // Code describes the state of a Scope resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The scope is being created. + CREATING = 1; + + // The scope active. + READY = 2; + + // The scope is being deleted. + DELETING = 3; + + // The scope is being updated. + UPDATING = 4; + } + + // Output only. The current state of the scope resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// MembershipBinding is a subresource of a Membership, representing +// what Fleet Scopes (or other, future Fleet resources) a Membership is bound +// to. +message MembershipBinding { + option (google.api.resource) = { + type: "gkehub.googleapis.com/MembershipBinding" + pattern: "projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}" + }; + + // What type of membershipbinding this is. + oneof target { + // A Scope resource name in the format + // `projects/*/locations/*/scopes/*`. + string scope = 3 [ + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; + } + + // The resource name for the membershipbinding itself + // `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}` + string name = 1; + + // Output only. Google-generated UUID for this resource. This is unique across + // all membershipbinding resources. If a membershipbinding resource is deleted + // and another resource with the same name is created, it gets a different + // uid. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the membership binding was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the membership binding was last updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the membership binding was deleted. + google.protobuf.Timestamp delete_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the membership binding resource. + MembershipBindingLifecycleState state = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels for this MembershipBinding. + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// MembershipBindingLifecycleState describes the state of a Binding resource. +message MembershipBindingLifecycleState { + // Code describes the state of a MembershipBinding resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The membershipbinding is being created. + CREATING = 1; + + // The membershipbinding active. + READY = 2; + + // The membershipbinding is being deleted. + DELETING = 3; + + // The membershipbinding is being updated. + UPDATING = 4; + } + + // Output only. The current state of the MembershipBinding resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto new file mode 100644 index 000000000000..678b440a53fa --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto @@ -0,0 +1,40 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.gkehub.rbacrolebindingactuation.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.GkeHub.RbacRoleBindingActuation.V1"; +option go_package = "cloud.google.com/go/gkehub/rbacrolebindingactuation/apiv1/rbacrolebindingactuationpb;rbacrolebindingactuationpb"; +option java_multiple_files = true; +option java_outer_classname = "RBACRoleBindingActuationProto"; +option java_package = "com.google.cloud.gkehub.rbacrolebindingactuation.v1"; +option php_namespace = "Google\\Cloud\\GkeHub\\RbacRoleBindingActuation\\V1"; +option ruby_package = "Google::Cloud::GkeHub::RbacRoleBindingActuation::V1"; + +// **RBAC RoleBinding Actuation**: The Hub-wide input for the +// RBACRoleBindingActuation feature. +message FeatureSpec { + // The list of allowed custom roles (ClusterRoles). If a ClusterRole is not + // part of this list, it cannot be used in a Scope RBACRoleBinding. If a + // ClusterRole in this list is in use, it cannot be removed from the list. + repeated string allowed_custom_roles = 2; +} + +// **RBAC RoleBinding Actuation**: An empty state left as an example Hub-wide +// Feature state. +message FeatureState {} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto index e9c729c7db67..82fd6d084c2c 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/gkehub/v1/feature.proto"; +import "google/cloud/gkehub/v1/fleet.proto"; import "google/cloud/gkehub/v1/membership.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; @@ -65,6 +66,16 @@ service GkeHub { option (google.api.method_signature) = "parent"; } + // Lists Memberships bound to a Scope. The response includes relevant + // Memberships from all regions. + rpc ListBoundMemberships(ListBoundMembershipsRequest) + returns (ListBoundMembershipsResponse) { + option (google.api.http) = { + get: "/v1/{scope_name=projects/*/locations/*/scopes/*}:listMemberships" + }; + option (google.api.method_signature) = "scope_name"; + } + // Lists Features in a given project and location. rpc ListFeatures(ListFeaturesRequest) returns (ListFeaturesResponse) { option (google.api.http) = { @@ -89,106 +100,877 @@ service GkeHub { option (google.api.method_signature) = "name"; } - // Creates a new Membership. - // - // **This is currently only supported for GKE clusters on Google Cloud**. - // To register other clusters, follow the instructions at - // https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. - rpc CreateMembership(CreateMembershipRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/memberships" - body: "resource" - }; - option (google.api.method_signature) = "parent,resource,membership_id"; - option (google.longrunning.operation_info) = { - response_type: "Membership" - metadata_type: "OperationMetadata" - }; - } + // Creates a new Membership. + // + // **This is currently only supported for GKE clusters on Google Cloud**. + // To register other clusters, follow the instructions at + // https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + rpc CreateMembership(CreateMembershipRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/memberships" + body: "resource" + }; + option (google.api.method_signature) = "parent,resource,membership_id"; + option (google.longrunning.operation_info) = { + response_type: "Membership" + metadata_type: "OperationMetadata" + }; + } + + // Adds a new Feature. + rpc CreateFeature(CreateFeatureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/features" + body: "resource" + }; + option (google.api.method_signature) = "parent,resource,feature_id"; + option (google.longrunning.operation_info) = { + response_type: "Feature" + metadata_type: "OperationMetadata" + }; + } + + // Removes a Membership. + // + // **This is currently only supported for GKE clusters on Google Cloud**. + // To unregister other clusters, follow the instructions at + // https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + rpc DeleteMembership(DeleteMembershipRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/memberships/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Removes a Feature. + rpc DeleteFeature(DeleteFeatureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/features/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing Membership. + rpc UpdateMembership(UpdateMembershipRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{name=projects/*/locations/*/memberships/*}" + body: "resource" + }; + option (google.api.method_signature) = "name,resource,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Membership" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing Feature. + rpc UpdateFeature(UpdateFeatureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{name=projects/*/locations/*/features/*}" + body: "resource" + }; + option (google.api.method_signature) = "name,resource,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Feature" + metadata_type: "OperationMetadata" + }; + } + + // Generates the manifest for deployment of the GKE connect agent. + // + // **This method is used internally by Google-provided libraries.** + // Most clients should not need to call this method directly. + rpc GenerateConnectManifest(GenerateConnectManifestRequest) + returns (GenerateConnectManifestResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest" + }; + } + + // Creates a fleet. + rpc CreateFleet(CreateFleetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/fleets" + body: "fleet" + }; + option (google.api.method_signature) = "parent,fleet"; + option (google.longrunning.operation_info) = { + response_type: "Fleet" + metadata_type: "OperationMetadata" + }; + } + + // Returns the details of a fleet. + rpc GetFleet(GetFleetRequest) returns (Fleet) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/fleets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a fleet. + rpc UpdateFleet(UpdateFleetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{fleet.name=projects/*/locations/*/fleets/*}" + body: "fleet" + }; + option (google.api.method_signature) = "fleet,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Fleet" + metadata_type: "OperationMetadata" + }; + } + + // Removes a Fleet. There must be no memberships remaining in the Fleet. + rpc DeleteFleet(DeleteFleetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/fleets/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Returns all fleets within an organization or a project that the caller has + // access to. + rpc ListFleets(ListFleetsRequest) returns (ListFleetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/fleets" + additional_bindings { + get: "/v1/{parent=organizations/*/locations/*}/fleets" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a fleet namespace. + rpc GetScopeNamespace(GetScopeNamespaceRequest) returns (Namespace) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/scopes/*/namespaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a fleet namespace. + rpc CreateScopeNamespace(CreateScopeNamespaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/scopes/*}/namespaces" + body: "scope_namespace" + }; + option (google.api.method_signature) = + "parent,scope_namespace,scope_namespace_id"; + option (google.longrunning.operation_info) = { + response_type: "Namespace" + metadata_type: "OperationMetadata" + }; + } + + // Updates a fleet namespace. + rpc UpdateScopeNamespace(UpdateScopeNamespaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{scope_namespace.name=projects/*/locations/*/scopes/*/namespaces/*}" + body: "scope_namespace" + }; + option (google.api.method_signature) = "scope_namespace,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Namespace" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a fleet namespace. + rpc DeleteScopeNamespace(DeleteScopeNamespaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/scopes/*/namespaces/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists fleet namespaces. + rpc ListScopeNamespaces(ListScopeNamespacesRequest) + returns (ListScopeNamespacesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/scopes/*}/namespaces" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a Scope RBACRoleBinding. + rpc GetScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest) + returns (RBACRoleBinding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/scopes/*/rbacrolebindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a Scope RBACRoleBinding. + rpc CreateScopeRBACRoleBinding(CreateScopeRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings" + body: "rbacrolebinding" + }; + option (google.api.method_signature) = + "parent,rbacrolebinding,rbacrolebinding_id"; + option (google.longrunning.operation_info) = { + response_type: "RBACRoleBinding" + metadata_type: "OperationMetadata" + }; + } + + // Updates a Scope RBACRoleBinding. + rpc UpdateScopeRBACRoleBinding(UpdateScopeRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{rbacrolebinding.name=projects/*/locations/*/scopes/*/rbacrolebindings/*}" + body: "rbacrolebinding" + }; + option (google.api.method_signature) = "rbacrolebinding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "RBACRoleBinding" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a Scope RBACRoleBinding. + rpc DeleteScopeRBACRoleBinding(DeleteScopeRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/scopes/*/rbacrolebindings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists all Scope RBACRoleBindings. + rpc ListScopeRBACRoleBindings(ListScopeRBACRoleBindingsRequest) + returns (ListScopeRBACRoleBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a Scope. + rpc GetScope(GetScopeRequest) returns (Scope) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/scopes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a Scope. + rpc CreateScope(CreateScopeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/scopes" + body: "scope" + }; + option (google.api.method_signature) = "parent,scope,scope_id"; + option (google.longrunning.operation_info) = { + response_type: "Scope" + metadata_type: "OperationMetadata" + }; + } + + // Updates a scopes. + rpc UpdateScope(UpdateScopeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{scope.name=projects/*/locations/*/scopes/*}" + body: "scope" + }; + option (google.api.method_signature) = "scope,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Scope" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a Scope. + rpc DeleteScope(DeleteScopeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/scopes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists Scopes. + rpc ListScopes(ListScopesRequest) returns (ListScopesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/scopes" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists permitted Scopes. + rpc ListPermittedScopes(ListPermittedScopesRequest) + returns (ListPermittedScopesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/scopes:listPermitted" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a MembershipBinding. + rpc GetMembershipBinding(GetMembershipBindingRequest) + returns (MembershipBinding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/memberships/*/bindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a MembershipBinding. + rpc CreateMembershipBinding(CreateMembershipBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/memberships/*}/bindings" + body: "membership_binding" + }; + option (google.api.method_signature) = + "parent,membership_binding,membership_binding_id"; + option (google.longrunning.operation_info) = { + response_type: "MembershipBinding" + metadata_type: "OperationMetadata" + }; + } + + // Updates a MembershipBinding. + rpc UpdateMembershipBinding(UpdateMembershipBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{membership_binding.name=projects/*/locations/*/memberships/*/bindings/*}" + body: "membership_binding" + }; + option (google.api.method_signature) = "membership_binding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "MembershipBinding" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a MembershipBinding. + rpc DeleteMembershipBinding(DeleteMembershipBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/memberships/*/bindings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists MembershipBindings. + rpc ListMembershipBindings(ListMembershipBindingsRequest) + returns (ListMembershipBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/memberships/*}/bindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a Membership RBACRoleBinding. + rpc GetMembershipRBACRoleBinding(GetMembershipRBACRoleBindingRequest) + returns (RBACRoleBinding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/memberships/*/rbacrolebindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a Membership RBACRoleBinding. + rpc CreateMembershipRBACRoleBinding(CreateMembershipRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings" + body: "rbacrolebinding" + }; + option (google.api.method_signature) = + "parent,rbacrolebinding,rbacrolebinding_id"; + option (google.longrunning.operation_info) = { + response_type: "RBACRoleBinding" + metadata_type: "OperationMetadata" + }; + } + + // Updates a Membership RBACRoleBinding. + rpc UpdateMembershipRBACRoleBinding(UpdateMembershipRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{rbacrolebinding.name=projects/*/locations/*/memberships/*/rbacrolebindings/*}" + body: "rbacrolebinding" + }; + option (google.api.method_signature) = "rbacrolebinding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "RBACRoleBinding" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a Membership RBACRoleBinding. + rpc DeleteMembershipRBACRoleBinding(DeleteMembershipRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/memberships/*/rbacrolebindings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists all Membership RBACRoleBindings. + rpc ListMembershipRBACRoleBindings(ListMembershipRBACRoleBindingsRequest) + returns (ListMembershipRBACRoleBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Generates a YAML of the RBAC policies for the specified + // RoleBinding and its associated impersonation resources. + rpc GenerateMembershipRBACRoleBindingYAML( + GenerateMembershipRBACRoleBindingYAMLRequest) + returns (GenerateMembershipRBACRoleBindingYAMLResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings:generateMembershipRBACRoleBindingYAML" + body: "rbacrolebinding" + }; + } +} + +// Request message for the `GkeHub.GetNamespace` method. +message GetScopeNamespaceRequest { + // Required. The Namespace resource name in the format + // `projects/*/locations/*/scopes/*/namespaces/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Namespace" + } + ]; +} + +// Request to create a fleet namespace. +message CreateScopeNamespaceRequest { + // Required. The parent (project and location) where the Namespace will be + // created. Specified in the format `projects/*/locations/*/scopes/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Namespace" + } + ]; + + // Required. Client chosen ID for the Namespace. `namespace_id` must be a + // valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string scope_namespace_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fleet namespace to create. + Namespace scope_namespace = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a fleet namespace. +message UpdateScopeNamespaceRequest { + // Required. A namespace with fields updated. The 'name' field in this + // namespace is used to identify the resource to update. Given 'updated' + // prefix to follow go/proto-best-practices-checkers#keyword_conflict + Namespace scope_namespace = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a fleet namespace. +message DeleteScopeNamespaceRequest { + // Required. The Namespace resource name in the format + // `projects/*/locations/*/scopes/*/namespaces/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Namespace" + } + ]; +} + +// Request to list fleet namespaces. +message ListScopeNamespacesRequest { + // Required. The parent (project and location) where the Features will be + // listed. Specified in the format `projects/*/locations/*/scopes/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Namespace" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListFeatures` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of fleet namespaces. +message ListScopeNamespacesResponse { + // The list of fleet namespaces + repeated Namespace scope_namespaces = 1; + + // A token to request the next page of resources from the + // `ListNamespaces` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; +} + +// Request message for the `GkeHub.GetScopeRBACRoleBinding` method. +message GetScopeRBACRoleBindingRequest { + // Required. The RBACRoleBinding resource name in the format + // `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; +} + +// Request to create a rbacrolebindings. +message CreateScopeRBACRoleBindingRequest { + // Required. The parent (project and location) where the RBACRoleBinding will + // be created. Specified in the format `projects/*/locations/*/scopes/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; + + // Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` + // must be a valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string rbacrolebinding_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rbacrolebindings to create. + RBACRoleBinding rbacrolebinding = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a scope rbacrolebinding. +message UpdateScopeRBACRoleBindingRequest { + // Required. A rbacrolebinding with fields updated. The 'name' field in this + // rbacrolebinding is used to identify the resource to update. + RBACRoleBinding rbacrolebinding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a Scope RBACRoleBinding. +message DeleteScopeRBACRoleBindingRequest { + // Required. The RBACRoleBinding resource name in the format + // `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; +} + +// Request to list Scope RBACRoleBindings. +message ListScopeRBACRoleBindingsRequest { + // Required. The parent (project and location) where the Features will be + // listed. Specified in the format `projects/*/locations/*/scopes/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListScopeRBACRoleBindings` + // which specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of Scope RBACRoleBindings. +message ListScopeRBACRoleBindingsResponse { + // The list of Scope RBACRoleBindings. + repeated RBACRoleBinding rbacrolebindings = 1; + + // A token to request the next page of resources from the + // `ListScopeRBACRoleBindings` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; +} + +// Request message for the `GkeHub.GetScope` method. +message GetScopeRequest { + // Required. The Scope resource name in the format + // `projects/*/locations/*/scopes/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; +} + +// Request to create a Scope. +message CreateScopeRequest { + // Required. The parent (project and location) where the Scope will be + // created. Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Scope" + } + ]; + + // Required. Client chosen ID for the Scope. `scope_id` must be a + // ???? + string scope_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Scope to create. + Scope scope = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a Scope. +message UpdateScopeRequest { + // Required. A Scope with fields updated. The 'name' field in this + // namespace is used to identify the resource to update. + Scope scope = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a Scope. +message DeleteScopeRequest { + // Required. The Scope resource name in the format + // `projects/*/locations/*/scopes/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; +} + +// Request to list Scopes. +message ListScopesRequest { + // Required. The parent (project and location) where the Scope will be listed. + // Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Scope" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListScopes` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of Scopes. +message ListScopesResponse { + // The list of Scopes + repeated Scope scopes = 1; + + // A token to request the next page of resources from the + // `ListScopes` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; +} + +// Request to list permitted Scopes. +message ListPermittedScopesRequest { + // Required. The parent (project and location) where the Scope will be listed. + // Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Scope" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListPermittedScopes` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of permitted Scopes. +message ListPermittedScopesResponse { + // The list of permitted Scopes + repeated Scope scopes = 1; + + // A token to request the next page of resources from the + // `ListPermittedScopes` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; +} + +// Request message for the `GkeHub.GetMembershipBinding` method. +message GetMembershipBindingRequest { + // Required. The MembershipBinding resource name in the format + // `projects/*/locations/*/memberships/*/bindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/MembershipBinding" + } + ]; +} + +// Request to create a MembershipBinding. +message CreateMembershipBindingRequest { + // Required. The parent (project and location) where the MembershipBinding + // will be created. Specified in the format + // `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/MembershipBinding" + } + ]; + + // Required. The MembershipBinding to create. + MembershipBinding membership_binding = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the MembershipBinding. + string membership_binding_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a MembershipBinding. +message UpdateMembershipBindingRequest { + // Required. The MembershipBinding object with fields updated. + MembershipBinding membership_binding = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a Binding. +message DeleteMembershipBindingRequest { + // Required. The MembershipBinding resource name in the format + // `projects/*/locations/*/memberships/*/bindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/MembershipBinding" + } + ]; +} + +// Request to list MembershipBinding. +message ListMembershipBindingsRequest { + // Required. The parent Membership for which the MembershipBindings will be + // listed. Specified in the format `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/MembershipBinding" + } + ]; - // Adds a new Feature. - rpc CreateFeature(CreateFeatureRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/features" - body: "resource" - }; - option (google.api.method_signature) = "parent,resource,feature_id"; - option (google.longrunning.operation_info) = { - response_type: "Feature" - metadata_type: "OperationMetadata" - }; - } + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Removes a Membership. - // - // **This is currently only supported for GKE clusters on Google Cloud**. - // To unregister other clusters, follow the instructions at - // https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. - rpc DeleteMembership(DeleteMembershipRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/memberships/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } + // Optional. Token returned by previous call to `ListMembershipBindings` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Removes a Feature. - rpc DeleteFeature(DeleteFeatureRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/features/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } + // Optional. Lists MembershipBindings that match the filter expression, + // following the syntax outlined in https://google.aip.dev/160. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} - // Updates an existing Membership. - rpc UpdateMembership(UpdateMembershipRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1/{name=projects/*/locations/*/memberships/*}" - body: "resource" - }; - option (google.api.method_signature) = "name,resource,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Membership" - metadata_type: "OperationMetadata" - }; - } +// List of MembershipBindings. +message ListMembershipBindingsResponse { + // The list of membership_bindings + repeated MembershipBinding membership_bindings = 1; - // Updates an existing Feature. - rpc UpdateFeature(UpdateFeatureRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1/{name=projects/*/locations/*/features/*}" - body: "resource" - }; - option (google.api.method_signature) = "name,resource,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Feature" - metadata_type: "OperationMetadata" - }; - } + // A token to request the next page of resources from the + // `ListMembershipBindings` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; - // Generates the manifest for deployment of the GKE connect agent. - // - // **This method is used internally by Google-provided libraries.** - // Most clients should not need to call this method directly. - rpc GenerateConnectManifest(GenerateConnectManifestRequest) - returns (GenerateConnectManifestResponse) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest" - }; - } + // List of locations that could not be reached while fetching this list. + repeated string unreachable = 3; } // Request message for `GkeHub.ListMemberships` method. @@ -240,6 +1022,140 @@ message ListMembershipsRequest { string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for the `GkeHub.GetMembershipRBACRoleBinding` method. +message GetMembershipRBACRoleBindingRequest { + // Required. The RBACRoleBinding resource name in the format + // `projects/*/locations/*/memberships/*/rbacrolebindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; +} + +// Request to create a rbacrolebindings. +message CreateMembershipRBACRoleBindingRequest { + // Required. The parent (project and location) where the RBACRoleBinding will + // be created. Specified in the format `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; + + // Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` + // must be a valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string rbacrolebinding_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rbacrolebindings to create. + RBACRoleBinding rbacrolebinding = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a membership rbacrolebinding. +message UpdateMembershipRBACRoleBindingRequest { + // Required. A rbacrolebinding with fields updated. The 'name' field in this + // rbacrolebinding is used to identify the resource to update. + RBACRoleBinding rbacrolebinding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a Membership RBACRoleBinding. +message DeleteMembershipRBACRoleBindingRequest { + // Required. The RBACRoleBinding resource name in the format + // `projects/*/locations/*/memberships/*/rbacrolebindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; +} + +// Request to list Membership RBACRoleBindings. +message ListMembershipRBACRoleBindingsRequest { + // Required. The parent (project and location) where the Features will be + // listed. Specified in the format `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to + // `ListMembershipRBACRoleBindings` which specifies the position in the list + // from where to continue listing the resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of Membership RBACRoleBindings. +message ListMembershipRBACRoleBindingsResponse { + // The list of Membership RBACRoleBindings. + repeated RBACRoleBinding rbacrolebindings = 1; + + // A token to request the next page of resources from the + // `ListMembershipRBACRoleBindings` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; + + // List of locations that could not be reached while fetching this list. + repeated string unreachable = 3; +} + +// Request to generate a YAML of the RBAC policies for the specified +// RoleBinding and its associated impersonation resources. +message GenerateMembershipRBACRoleBindingYAMLRequest { + // Required. The parent (project and location) where the RBACRoleBinding will + // be created. Specified in the format `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + // Manually set the type to be the Membership resource type because the + // RBACRoleBinding is a child of the Membership resource and + // GenerateMembershipRBACRoleBindingYAM RPC should + // only be called with the membership resource parent. + type: "gkehub.googleapis.com/Membership" + } + ]; + + // Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` + // must be a valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string rbacrolebinding_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rbacrolebindings to generate the YAML for. + RBACRoleBinding rbacrolebinding = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response for GenerateRBACRoleBindingYAML. +message GenerateMembershipRBACRoleBindingYAMLResponse { + // a yaml text blob including the RBAC policies. + string role_bindings_yaml = 1; +} + // Response message for the `GkeHub.ListMemberships` method. message ListMembershipsResponse { // The list of matching Memberships. @@ -266,6 +1182,47 @@ message GetMembershipRequest { ]; } +// Request to list Memberships bound to a Scope. +message ListBoundMembershipsRequest { + // Required. Name of the Scope, in the format + // `projects/*/locations/global/scopes/*`, to which the Memberships are bound. + string scope_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; + + // Optional. Lists Memberships that match the filter expression, following the + // syntax outlined in https://google.aip.dev/160. Currently, filtering + // can be done only based on Memberships's `name`, `labels`, `create_time`, + // `update_time`, and `unique_id`. + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. Pagination is currently not supported; therefore, setting + // this field does not have any impact for now. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListBoundMemberships` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of Memberships bound to a Scope. +message ListBoundMembershipsResponse { + // The list of Memberships bound to the given Scope. + repeated Membership memberships = 1; + + // List of locations that could not be reached while fetching this list. + repeated string unreachable = 2; + + // A token to request the next page of resources from the + // `ListBoundMemberships` method. The value of an empty string means that + // there are no more resources to return. + string next_page_token = 3; +} + // Request message for the `GkeHub.CreateMembership` method. message CreateMembershipRequest { // Required. The parent (project and location) where the Memberships will be @@ -491,6 +1448,12 @@ message ListFeaturesRequest { // One or more fields to compare and use to sort the output. // See https://google.aip.dev/132#ordering. string order_by = 5; + + // Optional. If set to true, the response will return partial results when + // some regions are unreachable and the unreachable field in Feature proto + // will be populated. If set to false, the request will fail when some regions + // are unreachable. + bool return_partial_success = 6 [(google.api.field_behavior) = OPTIONAL]; } // Response message for the `GkeHub.ListFeatures` method. @@ -511,6 +1474,12 @@ message GetFeatureRequest { string name = 1 [ (google.api.resource_reference) = { type: "gkehub.googleapis.com/Feature" } ]; + + // Optional. If set to true, the response will return partial results when + // some regions are unreachable and the unreachable field in Feature proto + // will be populated. If set to false, the request will fail when some regions + // are unreachable. + bool return_partial_success = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for the `GkeHub.CreateFeature` method. @@ -527,7 +1496,7 @@ message CreateFeatureRequest { // The Feature resource to create. Feature resource = 3; - // Optional. A request ID to identify requests. Specify a unique request ID + // A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. @@ -593,7 +1562,7 @@ message UpdateFeatureRequest { // user-modifiable fields to match `resource`. Feature resource = 3; - // Optional. A request ID to identify requests. Specify a unique request ID + // A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. @@ -609,6 +1578,97 @@ message UpdateFeatureRequest { string request_id = 4; } +// Request message for the `GkeHub.CreateFleet` method. +message CreateFleetRequest { + // Required. The parent (project and location) where the Fleet will be + // created. Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + // Manually set the type to "locations.googleapis.com/Location" because + // the generated child_type - `gkehub.googleapis.com/Fleet` creates a + // conflict between Organization and Project Level locations with client + // library generation. + type: "locations.googleapis.com/Location", + } + ]; + + // Required. The fleet to create. + Fleet fleet = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the `GkeHub.GetFleet` method. +message GetFleetRequest { + // Required. The Fleet resource name in the format + // `projects/*/locations/*/fleets/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Fleet" } + ]; +} + +// Request message for the `GkeHub.UpdateFleet` method. +message UpdateFleetRequest { + // Required. The Fleet to update. + // + // The `name` field of the Fleet object identifies which fleet will be + // updated. + Fleet fleet = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `GkeHub.DeleteFleet` method. +message DeleteFleetRequest { + // Required. The Fleet resource name in the format + // `projects/*/locations/*/fleets/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Fleet" } + ]; +} + +// Request message for the `GkeHub.ListFleets` method. +message ListFleetsRequest { + // Required. The organization or project to list for Fleets under, in the + // format `organizations/*/locations/*` or `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + // Manually set the type to "locations.googleapis.com/Location" because + // the generated child_type - `gkehub.googleapis.com/Fleet` creates a + // conflict between Organization and Project Level locations with client + // library generation. + type: "locations.googleapis.com/Location", + } + ]; + + // Optional. A page token, received from a previous `ListFleets` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListFleets` must match + // the call that provided the page token. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of fleets to return. The service may return + // fewer than this value. If unspecified, at most 200 fleets will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for the `GkeHub.ListFleetsResponse` method. +message ListFleetsResponse { + // The list of matching fleets. + repeated Fleet fleets = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // The token is only valid for 1h. + string next_page_token = 2; +} + // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. @@ -630,9 +1690,10 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetCredentialsProvider.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..3ecd36f13601 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.GkeHubSettings; +import com.google.cloud.gkehub.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GkeHubSettings gkeHubSettings = + GkeHubSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); + } +} +// [END gkehub_v1_generated_GkeHub_Create_SetCredentialsProvider_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetEndpoint.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..ac7ed4c92b8a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetEndpoint.java @@ -0,0 +1,40 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_Create_SetEndpoint_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.GkeHubSettings; +import com.google.cloud.gkehub.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build(); + GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); + } +} +// [END gkehub_v1_generated_GkeHub_Create_SetEndpoint_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateUseHttpJsonTransport.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..821d0fd41709 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.GkeHubSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build(); + GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); + } +} +// [END gkehub_v1_generated_GkeHub_Create_UseHttpJsonTransport_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeature.java new file mode 100644 index 000000000000..ff53b4db7ca7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeature.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateFeature { + + public static void main(String[] args) throws Exception { + asyncCreateFeature(); + } + + public static void asyncCreateFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFeatureId("featureId-420503887") + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.createFeatureCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeatureLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeatureLRO.java new file mode 100644 index 000000000000..072f53f6843c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeatureLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.OperationMetadata; + +public class AsyncCreateFeatureLRO { + + public static void main(String[] args) throws Exception { + asyncCreateFeatureLRO(); + } + + public static void asyncCreateFeatureLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFeatureId("featureId-420503887") + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.createFeatureOperationCallable().futureCall(request); + // Do something. + Feature response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeature.java new file mode 100644 index 000000000000..bb43c8facfe8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeature.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_sync] +import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFeature { + + public static void main(String[] args) throws Exception { + syncCreateFeature(); + } + + public static void syncCreateFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFeatureId("featureId-420503887") + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Feature response = gkeHubClient.createFeatureAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureLocationnameFeatureString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureLocationnameFeatureString.java new file mode 100644 index 000000000000..b1044e47905f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureLocationnameFeatureString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_LocationnameFeatureString_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFeatureLocationnameFeatureString { + + public static void main(String[] args) throws Exception { + syncCreateFeatureLocationnameFeatureString(); + } + + public static void syncCreateFeatureLocationnameFeatureString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Feature resource = Feature.newBuilder().build(); + String featureId = "featureId-420503887"; + Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_LocationnameFeatureString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureStringFeatureString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureStringFeatureString.java new file mode 100644 index 000000000000..4f11c4690669 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureStringFeatureString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_StringFeatureString_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFeatureStringFeatureString { + + public static void main(String[] args) throws Exception { + syncCreateFeatureStringFeatureString(); + } + + public static void syncCreateFeatureStringFeatureString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Feature resource = Feature.newBuilder().build(); + String featureId = "featureId-420503887"; + Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_StringFeatureString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleet.java new file mode 100644 index 000000000000..8718514613c3 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateFleet { + + public static void main(String[] args) throws Exception { + asyncCreateFleet(); + } + + public static void asyncCreateFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFleet(Fleet.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.createFleetCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleetLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleetLRO.java new file mode 100644 index 000000000000..a17c76212b63 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleetLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.OperationMetadata; + +public class AsyncCreateFleetLRO { + + public static void main(String[] args) throws Exception { + asyncCreateFleetLRO(); + } + + public static void asyncCreateFleetLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFleet(Fleet.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createFleetOperationCallable().futureCall(request); + // Do something. + Fleet response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleet.java new file mode 100644 index 000000000000..4cd43af4f06d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_sync] +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFleet { + + public static void main(String[] args) throws Exception { + syncCreateFleet(); + } + + public static void syncCreateFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFleet(Fleet.newBuilder().build()) + .build(); + Fleet response = gkeHubClient.createFleetAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetLocationnameFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetLocationnameFleet.java new file mode 100644 index 000000000000..a81cf2a53fa3 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetLocationnameFleet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_LocationnameFleet_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFleetLocationnameFleet { + + public static void main(String[] args) throws Exception { + syncCreateFleetLocationnameFleet(); + } + + public static void syncCreateFleetLocationnameFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Fleet fleet = Fleet.newBuilder().build(); + Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_LocationnameFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetStringFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetStringFleet.java new file mode 100644 index 000000000000..8197dbd95b54 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetStringFleet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_StringFleet_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFleetStringFleet { + + public static void main(String[] args) throws Exception { + syncCreateFleetStringFleet(); + } + + public static void syncCreateFleetStringFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Fleet fleet = Fleet.newBuilder().build(); + Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_StringFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembership.java new file mode 100644 index 000000000000..90b18ab35b67 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembership.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; +import com.google.longrunning.Operation; + +public class AsyncCreateMembership { + + public static void main(String[] args) throws Exception { + asyncCreateMembership(); + } + + public static void asyncCreateMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMembershipId("membershipId517665681") + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.createMembershipCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembershipLRO.java new file mode 100644 index 000000000000..1552444724ed --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembershipLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.OperationMetadata; + +public class AsyncCreateMembershipLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipLRO(); + } + + public static void asyncCreateMembershipLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMembershipId("membershipId517665681") + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.createMembershipOperationCallable().futureCall(request); + // Do something. + Membership response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembership.java new file mode 100644 index 000000000000..83a17838fcfd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembership.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_sync] +import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncCreateMembership { + + public static void main(String[] args) throws Exception { + syncCreateMembership(); + } + + public static void syncCreateMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMembershipId("membershipId517665681") + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Membership response = gkeHubClient.createMembershipAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipLocationnameMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipLocationnameMembershipString.java new file mode 100644 index 000000000000..9adb3bd9eee6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipLocationnameMembershipString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_LocationnameMembershipString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncCreateMembershipLocationnameMembershipString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipLocationnameMembershipString(); + } + + public static void syncCreateMembershipLocationnameMembershipString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Membership resource = Membership.newBuilder().build(); + String membershipId = "membershipId517665681"; + Membership response = + gkeHubClient.createMembershipAsync(parent, resource, membershipId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_LocationnameMembershipString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipStringMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipStringMembershipString.java new file mode 100644 index 000000000000..63d96c6e0e60 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipStringMembershipString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_StringMembershipString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncCreateMembershipStringMembershipString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipStringMembershipString(); + } + + public static void syncCreateMembershipStringMembershipString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Membership resource = Membership.newBuilder().build(); + String membershipId = "membershipId517665681"; + Membership response = + gkeHubClient.createMembershipAsync(parent, resource, membershipId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_StringMembershipString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBinding.java new file mode 100644 index 000000000000..cd0785d5c60e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.longrunning.Operation; + +public class AsyncCreateMembershipBinding { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipBinding(); + } + + public static void asyncCreateMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setMembershipBindingId("membershipBindingId1360802634") + .build(); + ApiFuture future = + gkeHubClient.createMembershipBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBindingLRO.java new file mode 100644 index 000000000000..c5694b31b0ea --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBindingLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.OperationMetadata; + +public class AsyncCreateMembershipBindingLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipBindingLRO(); + } + + public static void asyncCreateMembershipBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setMembershipBindingId("membershipBindingId1360802634") + .build(); + OperationFuture future = + gkeHubClient.createMembershipBindingOperationCallable().futureCall(request); + // Do something. + MembershipBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBinding.java new file mode 100644 index 000000000000..eb7a52bce292 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBinding.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_sync] +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncCreateMembershipBinding { + + public static void main(String[] args) throws Exception { + syncCreateMembershipBinding(); + } + + public static void syncCreateMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setMembershipBindingId("membershipBindingId1360802634") + .build(); + MembershipBinding response = gkeHubClient.createMembershipBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingMembershipnameMembershipbindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingMembershipnameMembershipbindingString.java new file mode 100644 index 000000000000..a013282bdfbe --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingMembershipnameMembershipbindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_MembershipnameMembershipbindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncCreateMembershipBindingMembershipnameMembershipbindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipBindingMembershipnameMembershipbindingString(); + } + + public static void syncCreateMembershipBindingMembershipnameMembershipbindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + MembershipBinding response = + gkeHubClient + .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_MembershipnameMembershipbindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingStringMembershipbindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingStringMembershipbindingString.java new file mode 100644 index 000000000000..52cb87af335a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingStringMembershipbindingString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_StringMembershipbindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncCreateMembershipBindingStringMembershipbindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipBindingStringMembershipbindingString(); + } + + public static void syncCreateMembershipBindingStringMembershipbindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + MembershipBinding response = + gkeHubClient + .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_StringMembershipbindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..6214d1a8fd47 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.longrunning.Operation; + +public class AsyncCreateMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipRBACRoleBinding(); + } + + public static void asyncCreateMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.createMembershipRBACRoleBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBindingLRO.java new file mode 100644 index 000000000000..3fa357b5d9e8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBindingLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncCreateMembershipRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipRBACRoleBindingLRO(); + } + + public static void asyncCreateMembershipRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createMembershipRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..62ab9087c55f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBinding.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncCreateMembershipRBACRoleBinding(); + } + + public static void syncCreateMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + RBACRoleBinding response = gkeHubClient.createMembershipRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString.java new file mode 100644 index 000000000000..c7b2f033cfbe --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_MembershipnameRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString(); + } + + public static void syncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_MembershipnameRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString.java new file mode 100644 index 000000000000..0370f9e44816 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_ScopenameRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString(); + } + + public static void syncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_ScopenameRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingStringRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingStringRbacrolebindingString.java new file mode 100644 index 000000000000..d0947fe2e883 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingStringRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_StringRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateMembershipRBACRoleBindingStringRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipRBACRoleBindingStringRbacrolebindingString(); + } + + public static void syncCreateMembershipRBACRoleBindingStringRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_StringRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScope.java new file mode 100644 index 000000000000..500d92511099 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScope.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; +import com.google.longrunning.Operation; + +public class AsyncCreateScope { + + public static void main(String[] args) throws Exception { + asyncCreateScope(); + } + + public static void asyncCreateScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setScopeId("scopeId1923941007") + .setScope(Scope.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.createScopeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScopeLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScopeLRO.java new file mode 100644 index 000000000000..f6a2f4ca9bb8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScopeLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.Scope; + +public class AsyncCreateScopeLRO { + + public static void main(String[] args) throws Exception { + asyncCreateScopeLRO(); + } + + public static void asyncCreateScopeLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setScopeId("scopeId1923941007") + .setScope(Scope.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createScopeOperationCallable().futureCall(request); + // Do something. + Scope response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScope.java new file mode 100644 index 000000000000..a9dc40d90c6a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScope.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_sync] +import com.google.cloud.gkehub.v1.CreateScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncCreateScope { + + public static void main(String[] args) throws Exception { + syncCreateScope(); + } + + public static void syncCreateScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setScopeId("scopeId1923941007") + .setScope(Scope.newBuilder().build()) + .build(); + Scope response = gkeHubClient.createScopeAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeLocationnameScopeString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeLocationnameScopeString.java new file mode 100644 index 000000000000..194982f4f936 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeLocationnameScopeString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_LocationnameScopeString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncCreateScopeLocationnameScopeString { + + public static void main(String[] args) throws Exception { + syncCreateScopeLocationnameScopeString(); + } + + public static void syncCreateScopeLocationnameScopeString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_LocationnameScopeString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeStringScopeString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeStringScopeString.java new file mode 100644 index 000000000000..833778a6f749 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeStringScopeString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_StringScopeString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncCreateScopeStringScopeString { + + public static void main(String[] args) throws Exception { + syncCreateScopeStringScopeString(); + } + + public static void syncCreateScopeStringScopeString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_StringScopeString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespace.java new file mode 100644 index 000000000000..4ebf15c4d37d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespace.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.longrunning.Operation; + +public class AsyncCreateScopeNamespace { + + public static void main(String[] args) throws Exception { + asyncCreateScopeNamespace(); + } + + public static void asyncCreateScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setScopeNamespaceId("scopeNamespaceId-125738782") + .setScopeNamespace(Namespace.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.createScopeNamespaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespaceLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespaceLRO.java new file mode 100644 index 000000000000..326976961d91 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespaceLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncCreateScopeNamespaceLRO { + + public static void main(String[] args) throws Exception { + asyncCreateScopeNamespaceLRO(); + } + + public static void asyncCreateScopeNamespaceLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setScopeNamespaceId("scopeNamespaceId-125738782") + .setScopeNamespace(Namespace.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createScopeNamespaceOperationCallable().futureCall(request); + // Do something. + Namespace response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespace.java new file mode 100644 index 000000000000..cb1b4e3c105b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespace.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_sync] +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeNamespace { + + public static void main(String[] args) throws Exception { + syncCreateScopeNamespace(); + } + + public static void syncCreateScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setScopeNamespaceId("scopeNamespaceId-125738782") + .setScopeNamespace(Namespace.newBuilder().build()) + .build(); + Namespace response = gkeHubClient.createScopeNamespaceAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceScopenameNamespaceString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceScopenameNamespaceString.java new file mode 100644 index 000000000000..75e2368597e6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceScopenameNamespaceString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_ScopenameNamespaceString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeNamespaceScopenameNamespaceString { + + public static void main(String[] args) throws Exception { + syncCreateScopeNamespaceScopenameNamespaceString(); + } + + public static void syncCreateScopeNamespaceScopenameNamespaceString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + Namespace response = + gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_ScopenameNamespaceString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceStringNamespaceString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceStringNamespaceString.java new file mode 100644 index 000000000000..d67fa269cf7a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceStringNamespaceString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_StringNamespaceString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeNamespaceStringNamespaceString { + + public static void main(String[] args) throws Exception { + syncCreateScopeNamespaceStringNamespaceString(); + } + + public static void syncCreateScopeNamespaceStringNamespaceString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + Namespace response = + gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_StringNamespaceString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBinding.java new file mode 100644 index 000000000000..49af38167107 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.longrunning.Operation; + +public class AsyncCreateScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncCreateScopeRBACRoleBinding(); + } + + public static void asyncCreateScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.createScopeRBACRoleBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBindingLRO.java new file mode 100644 index 000000000000..b7425d1ad736 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBindingLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncCreateScopeRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncCreateScopeRBACRoleBindingLRO(); + } + + public static void asyncCreateScopeRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createScopeRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBinding.java new file mode 100644 index 000000000000..6b28e808eff2 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBinding.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncCreateScopeRBACRoleBinding(); + } + + public static void syncCreateScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + RBACRoleBinding response = gkeHubClient.createScopeRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString.java new file mode 100644 index 000000000000..024d6a377c20 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_MembershipnameRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString(); + } + + public static void syncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_MembershipnameRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingScopenameRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingScopenameRbacrolebindingString.java new file mode 100644 index 000000000000..102635103e7f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingScopenameRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_ScopenameRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeRBACRoleBindingScopenameRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateScopeRBACRoleBindingScopenameRbacrolebindingString(); + } + + public static void syncCreateScopeRBACRoleBindingScopenameRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_ScopenameRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingStringRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingStringRbacrolebindingString.java new file mode 100644 index 000000000000..29f58aa47967 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingStringRbacrolebindingString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_StringRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeRBACRoleBindingStringRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateScopeRBACRoleBindingStringRbacrolebindingString(); + } + + public static void syncCreateScopeRBACRoleBindingStringRbacrolebindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_StringRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeature.java new file mode 100644 index 000000000000..ad4c61ced75a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeature.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteFeature { + + public static void main(String[] args) throws Exception { + asyncDeleteFeature(); + } + + public static void asyncDeleteFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setForce(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.deleteFeatureCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeatureLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeatureLRO.java new file mode 100644 index 000000000000..a772145dd55a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeatureLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteFeatureLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFeatureLRO(); + } + + public static void asyncDeleteFeatureLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setForce(true) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.deleteFeatureOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeature.java new file mode 100644 index 000000000000..19c9b4d266ce --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeature.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_sync] +import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFeature { + + public static void main(String[] args) throws Exception { + syncDeleteFeature(); + } + + public static void syncDeleteFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setForce(true) + .setRequestId("requestId693933066") + .build(); + gkeHubClient.deleteFeatureAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureFeaturename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureFeaturename.java new file mode 100644 index 000000000000..215c193dff23 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureFeaturename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_Featurename_sync] +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFeatureFeaturename { + + public static void main(String[] args) throws Exception { + syncDeleteFeatureFeaturename(); + } + + public static void syncDeleteFeatureFeaturename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + gkeHubClient.deleteFeatureAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_Featurename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureString.java new file mode 100644 index 000000000000..ea0144cfcf55 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_String_sync] +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFeatureString { + + public static void main(String[] args) throws Exception { + syncDeleteFeatureString(); + } + + public static void syncDeleteFeatureString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); + gkeHubClient.deleteFeatureAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleet.java new file mode 100644 index 000000000000..cb4b3771b856 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteFleet { + + public static void main(String[] args) throws Exception { + asyncDeleteFleet(); + } + + public static void asyncDeleteFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFleetRequest request = + DeleteFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + ApiFuture future = gkeHubClient.deleteFleetCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleetLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleetLRO.java new file mode 100644 index 000000000000..9331c5dc4ffc --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleetLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteFleetLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFleetLRO(); + } + + public static void asyncDeleteFleetLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFleetRequest request = + DeleteFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteFleetOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleet.java new file mode 100644 index 000000000000..54bf679a833c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_sync] +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFleet { + + public static void main(String[] args) throws Exception { + syncDeleteFleet(); + } + + public static void syncDeleteFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFleetRequest request = + DeleteFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + gkeHubClient.deleteFleetAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetFleetname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetFleetname.java new file mode 100644 index 000000000000..30f320fc81a2 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetFleetname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_Fleetname_sync] +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFleetFleetname { + + public static void main(String[] args) throws Exception { + syncDeleteFleetFleetname(); + } + + public static void syncDeleteFleetFleetname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + gkeHubClient.deleteFleetAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_Fleetname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetString.java new file mode 100644 index 000000000000..4043264feb94 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_String_sync] +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFleetString { + + public static void main(String[] args) throws Exception { + syncDeleteFleetString(); + } + + public static void syncDeleteFleetString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString(); + gkeHubClient.deleteFleetAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembership.java new file mode 100644 index 000000000000..90a5a04daa32 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembership.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMembership { + + public static void main(String[] args) throws Exception { + asyncDeleteMembership(); + } + + public static void asyncDeleteMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRequest request = + DeleteMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = gkeHubClient.deleteMembershipCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembershipLRO.java new file mode 100644 index 000000000000..cbc743b08ca6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembershipLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMembershipLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipLRO(); + } + + public static void asyncDeleteMembershipLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRequest request = + DeleteMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + gkeHubClient.deleteMembershipOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembership.java new file mode 100644 index 000000000000..80d6ba56b757 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembership.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_sync] +import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembership { + + public static void main(String[] args) throws Exception { + syncDeleteMembership(); + } + + public static void syncDeleteMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRequest request = + DeleteMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + gkeHubClient.deleteMembershipAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipMembershipname.java new file mode 100644 index 000000000000..2c48813a7000 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipMembershipname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipMembershipname { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipMembershipname(); + } + + public static void syncDeleteMembershipMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + gkeHubClient.deleteMembershipAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipString.java new file mode 100644 index 000000000000..b97900f1f1f0 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipString { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipString(); + } + + public static void syncDeleteMembershipString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + gkeHubClient.deleteMembershipAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBinding.java new file mode 100644 index 000000000000..88aa655b39de --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMembershipBinding { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipBinding(); + } + + public static void asyncDeleteMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.deleteMembershipBindingCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBindingLRO.java new file mode 100644 index 000000000000..e51ffa2ac64d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBindingLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMembershipBindingLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipBindingLRO(); + } + + public static void asyncDeleteMembershipBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteMembershipBindingOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBinding.java new file mode 100644 index 000000000000..0c756eed9b9d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_sync] +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipBinding { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipBinding(); + } + + public static void syncDeleteMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + gkeHubClient.deleteMembershipBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingMembershipbindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingMembershipbindingname.java new file mode 100644 index 000000000000..4009ed09c0cf --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingMembershipbindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_Membershipbindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipBindingMembershipbindingname { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipBindingMembershipbindingname(); + } + + public static void syncDeleteMembershipBindingMembershipbindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + gkeHubClient.deleteMembershipBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_Membershipbindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingString.java new file mode 100644 index 000000000000..e2608b597ec7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipBindingString { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipBindingString(); + } + + public static void syncDeleteMembershipBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString(); + gkeHubClient.deleteMembershipBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..19fa2cd498e7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipRBACRoleBinding(); + } + + public static void asyncDeleteMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.deleteMembershipRBACRoleBindingCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBindingLRO.java new file mode 100644 index 000000000000..39320e31b0a4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBindingLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class AsyncDeleteMembershipRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipRBACRoleBindingLRO(); + } + + public static void asyncDeleteMembershipRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteMembershipRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..02b2c3ba4193 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipRBACRoleBinding(); + } + + public static void syncDeleteMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + gkeHubClient.deleteMembershipRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingRbacrolebindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingRbacrolebindingname.java new file mode 100644 index 000000000000..4ce5a88fd1c6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingRbacrolebindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_Rbacrolebindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipRBACRoleBindingRbacrolebindingname { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipRBACRoleBindingRbacrolebindingname(); + } + + public static void syncDeleteMembershipRBACRoleBindingRbacrolebindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + gkeHubClient.deleteMembershipRBACRoleBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_Rbacrolebindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingString.java new file mode 100644 index 000000000000..5763aa2a88d5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipRBACRoleBindingString { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipRBACRoleBindingString(); + } + + public static void syncDeleteMembershipRBACRoleBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString(); + gkeHubClient.deleteMembershipRBACRoleBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScope.java new file mode 100644 index 000000000000..ed7b60ebe41d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScope.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.longrunning.Operation; + +public class AsyncDeleteScope { + + public static void main(String[] args) throws Exception { + asyncDeleteScope(); + } + + public static void asyncDeleteScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRequest request = + DeleteScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + ApiFuture future = gkeHubClient.deleteScopeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScopeLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScopeLRO.java new file mode 100644 index 000000000000..096a69eef87c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScopeLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.protobuf.Empty; + +public class AsyncDeleteScopeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeLRO(); + } + + public static void asyncDeleteScopeLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRequest request = + DeleteScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteScopeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScope.java new file mode 100644 index 000000000000..d3a66b0464dd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScope.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_sync] +import com.google.cloud.gkehub.v1.DeleteScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.protobuf.Empty; + +public class SyncDeleteScope { + + public static void main(String[] args) throws Exception { + syncDeleteScope(); + } + + public static void syncDeleteScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRequest request = + DeleteScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + gkeHubClient.deleteScopeAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeScopename.java new file mode 100644 index 000000000000..5b1e19cd8e1e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeScopename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeScopename { + + public static void main(String[] args) throws Exception { + syncDeleteScopeScopename(); + } + + public static void syncDeleteScopeScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + gkeHubClient.deleteScopeAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeString.java new file mode 100644 index 000000000000..3aefd492cd28 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeString { + + public static void main(String[] args) throws Exception { + syncDeleteScopeString(); + } + + public static void syncDeleteScopeString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + gkeHubClient.deleteScopeAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespace.java new file mode 100644 index 000000000000..4f03c1c66e79 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespace.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.longrunning.Operation; + +public class AsyncDeleteScopeNamespace { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeNamespace(); + } + + public static void asyncDeleteScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + ApiFuture future = gkeHubClient.deleteScopeNamespaceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespaceLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespaceLRO.java new file mode 100644 index 000000000000..e5664757990c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespaceLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteScopeNamespaceLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeNamespaceLRO(); + } + + public static void asyncDeleteScopeNamespaceLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteScopeNamespaceOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespace.java new file mode 100644 index 000000000000..393614c7a996 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_sync] +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeNamespace { + + public static void main(String[] args) throws Exception { + syncDeleteScopeNamespace(); + } + + public static void syncDeleteScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + gkeHubClient.deleteScopeNamespaceAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceNamespacename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceNamespacename.java new file mode 100644 index 000000000000..98b5e17ddcae --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceNamespacename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_Namespacename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeNamespaceNamespacename { + + public static void main(String[] args) throws Exception { + syncDeleteScopeNamespaceNamespacename(); + } + + public static void syncDeleteScopeNamespaceNamespacename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + gkeHubClient.deleteScopeNamespaceAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_Namespacename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceString.java new file mode 100644 index 000000000000..a85c3f835a2b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeNamespaceString { + + public static void main(String[] args) throws Exception { + syncDeleteScopeNamespaceString(); + } + + public static void syncDeleteScopeNamespaceString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString(); + gkeHubClient.deleteScopeNamespaceAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBinding.java new file mode 100644 index 000000000000..faf978090b45 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.longrunning.Operation; + +public class AsyncDeleteScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeRBACRoleBinding(); + } + + public static void asyncDeleteScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.deleteScopeRBACRoleBindingCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBindingLRO.java new file mode 100644 index 000000000000..486473c24828 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBindingLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class AsyncDeleteScopeRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeRBACRoleBindingLRO(); + } + + public static void asyncDeleteScopeRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteScopeRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBinding.java new file mode 100644 index 000000000000..c071d691350e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncDeleteScopeRBACRoleBinding(); + } + + public static void syncDeleteScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + gkeHubClient.deleteScopeRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingRbacrolebindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingRbacrolebindingname.java new file mode 100644 index 000000000000..598f147acbf7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingRbacrolebindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_Rbacrolebindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeRBACRoleBindingRbacrolebindingname { + + public static void main(String[] args) throws Exception { + syncDeleteScopeRBACRoleBindingRbacrolebindingname(); + } + + public static void syncDeleteScopeRBACRoleBindingRbacrolebindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_Rbacrolebindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingString.java new file mode 100644 index 000000000000..ee3a7853a51b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeRBACRoleBindingString { + + public static void main(String[] args) throws Exception { + syncDeleteScopeRBACRoleBindingString(); + } + + public static void syncDeleteScopeRBACRoleBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString(); + gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/AsyncGenerateConnectManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/AsyncGenerateConnectManifest.java new file mode 100644 index 000000000000..399f33ac20c6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/AsyncGenerateConnectManifest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GenerateConnectManifest_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; +import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.ByteString; + +public class AsyncGenerateConnectManifest { + + public static void main(String[] args) throws Exception { + asyncGenerateConnectManifest(); + } + + public static void asyncGenerateConnectManifest() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GenerateConnectManifestRequest request = + GenerateConnectManifestRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setNamespace("namespace1252218203") + .setProxy(ByteString.EMPTY) + .setVersion("version351608024") + .setIsUpgrade(true) + .setRegistry("registry-690212803") + .setImagePullSecretContent(ByteString.EMPTY) + .build(); + ApiFuture future = + gkeHubClient.generateConnectManifestCallable().futureCall(request); + // Do something. + GenerateConnectManifestResponse response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GenerateConnectManifest_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/SyncGenerateConnectManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/SyncGenerateConnectManifest.java new file mode 100644 index 000000000000..f356da1c4e1c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/SyncGenerateConnectManifest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GenerateConnectManifest_sync] +import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; +import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.ByteString; + +public class SyncGenerateConnectManifest { + + public static void main(String[] args) throws Exception { + syncGenerateConnectManifest(); + } + + public static void syncGenerateConnectManifest() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GenerateConnectManifestRequest request = + GenerateConnectManifestRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setNamespace("namespace1252218203") + .setProxy(ByteString.EMPTY) + .setVersion("version351608024") + .setIsUpgrade(true) + .setRegistry("registry-690212803") + .setImagePullSecretContent(ByteString.EMPTY) + .build(); + GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GenerateConnectManifest_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/AsyncGenerateMembershipRBACRoleBindingYAML.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/AsyncGenerateMembershipRBACRoleBindingYAML.java new file mode 100644 index 000000000000..323467fc5218 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/AsyncGenerateMembershipRBACRoleBindingYAML.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GenerateMembershipRBACRoleBindingYAML_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class AsyncGenerateMembershipRBACRoleBindingYAML { + + public static void main(String[] args) throws Exception { + asyncGenerateMembershipRBACRoleBindingYAML(); + } + + public static void asyncGenerateMembershipRBACRoleBindingYAML() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.generateMembershipRBACRoleBindingYAMLCallable().futureCall(request); + // Do something. + GenerateMembershipRBACRoleBindingYAMLResponse response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GenerateMembershipRBACRoleBindingYAML_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/SyncGenerateMembershipRBACRoleBindingYAML.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/SyncGenerateMembershipRBACRoleBindingYAML.java new file mode 100644 index 000000000000..ef377fc2d821 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/SyncGenerateMembershipRBACRoleBindingYAML.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GenerateMembershipRBACRoleBindingYAML_sync] +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncGenerateMembershipRBACRoleBindingYAML { + + public static void main(String[] args) throws Exception { + syncGenerateMembershipRBACRoleBindingYAML(); + } + + public static void syncGenerateMembershipRBACRoleBindingYAML() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + GenerateMembershipRBACRoleBindingYAMLResponse response = + gkeHubClient.generateMembershipRBACRoleBindingYAML(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GenerateMembershipRBACRoleBindingYAML_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/AsyncGetFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/AsyncGetFeature.java new file mode 100644 index 000000000000..a8f6cf07d7dd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/AsyncGetFeature.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFeature_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class AsyncGetFeature { + + public static void main(String[] args) throws Exception { + asyncGetFeature(); + } + + public static void asyncGetFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetFeatureRequest request = + GetFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request); + // Do something. + Feature response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFeature_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeature.java new file mode 100644 index 000000000000..b1f9ddcfd5dd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeature.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFeature_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFeature { + + public static void main(String[] args) throws Exception { + syncGetFeature(); + } + + public static void syncGetFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetFeatureRequest request = + GetFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setReturnPartialSuccess(true) + .build(); + Feature response = gkeHubClient.getFeature(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFeature_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureFeaturename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureFeaturename.java new file mode 100644 index 000000000000..576f234966e5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureFeaturename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFeature_Featurename_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFeatureFeaturename { + + public static void main(String[] args) throws Exception { + syncGetFeatureFeaturename(); + } + + public static void syncGetFeatureFeaturename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + Feature response = gkeHubClient.getFeature(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFeature_Featurename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureString.java new file mode 100644 index 000000000000..74d06a80b875 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFeature_String_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFeatureString { + + public static void main(String[] args) throws Exception { + syncGetFeatureString(); + } + + public static void syncGetFeatureString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); + Feature response = gkeHubClient.getFeature(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFeature_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/AsyncGetFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/AsyncGetFleet.java new file mode 100644 index 000000000000..809b08b74d3d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/AsyncGetFleet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFleet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class AsyncGetFleet { + + public static void main(String[] args) throws Exception { + asyncGetFleet(); + } + + public static void asyncGetFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetFleetRequest request = + GetFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + ApiFuture future = gkeHubClient.getFleetCallable().futureCall(request); + // Do something. + Fleet response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFleet_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleet.java new file mode 100644 index 000000000000..fdb9f8bc30bf --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFleet_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFleet { + + public static void main(String[] args) throws Exception { + syncGetFleet(); + } + + public static void syncGetFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetFleetRequest request = + GetFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + Fleet response = gkeHubClient.getFleet(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetFleetname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetFleetname.java new file mode 100644 index 000000000000..b972a9e29c60 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetFleetname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFleet_Fleetname_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFleetFleetname { + + public static void main(String[] args) throws Exception { + syncGetFleetFleetname(); + } + + public static void syncGetFleetFleetname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + Fleet response = gkeHubClient.getFleet(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFleet_Fleetname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetString.java new file mode 100644 index 000000000000..eb600efabac3 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFleet_String_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFleetString { + + public static void main(String[] args) throws Exception { + syncGetFleetString(); + } + + public static void syncGetFleetString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString(); + Fleet response = gkeHubClient.getFleet(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFleet_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/AsyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/AsyncGetMembership.java new file mode 100644 index 000000000000..2d4f8c39278b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/AsyncGetMembership.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembership_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; + +public class AsyncGetMembership { + + public static void main(String[] args) throws Exception { + asyncGetMembership(); + } + + public static void asyncGetMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipRequest request = + GetMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .build(); + ApiFuture future = gkeHubClient.getMembershipCallable().futureCall(request); + // Do something. + Membership response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembership_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembership.java new file mode 100644 index 000000000000..096e686cadfe --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembership.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembership_sync] +import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncGetMembership { + + public static void main(String[] args) throws Exception { + syncGetMembership(); + } + + public static void syncGetMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipRequest request = + GetMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .build(); + Membership response = gkeHubClient.getMembership(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipMembershipname.java new file mode 100644 index 000000000000..183d863c2415 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipMembershipname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembership_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncGetMembershipMembershipname { + + public static void main(String[] args) throws Exception { + syncGetMembershipMembershipname(); + } + + public static void syncGetMembershipMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + Membership response = gkeHubClient.getMembership(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembership_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipString.java new file mode 100644 index 000000000000..4e4d29fe5840 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembership_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncGetMembershipString { + + public static void main(String[] args) throws Exception { + syncGetMembershipString(); + } + + public static void syncGetMembershipString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + Membership response = gkeHubClient.getMembership(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembership_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/AsyncGetMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/AsyncGetMembershipBinding.java new file mode 100644 index 000000000000..51cd037e9eff --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/AsyncGetMembershipBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipBindingName; + +public class AsyncGetMembershipBinding { + + public static void main(String[] args) throws Exception { + asyncGetMembershipBinding(); + } + + public static void asyncGetMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipBindingRequest request = + GetMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.getMembershipBindingCallable().futureCall(request); + // Do something. + MembershipBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBinding.java new file mode 100644 index 000000000000..24c9adfd3c08 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipBinding_sync] +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipBindingName; + +public class SyncGetMembershipBinding { + + public static void main(String[] args) throws Exception { + syncGetMembershipBinding(); + } + + public static void syncGetMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipBindingRequest request = + GetMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + MembershipBinding response = gkeHubClient.getMembershipBinding(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingMembershipbindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingMembershipbindingname.java new file mode 100644 index 000000000000..4febe1345a88 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingMembershipbindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipBinding_Membershipbindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipBindingName; + +public class SyncGetMembershipBindingMembershipbindingname { + + public static void main(String[] args) throws Exception { + syncGetMembershipBindingMembershipbindingname(); + } + + public static void syncGetMembershipBindingMembershipbindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + MembershipBinding response = gkeHubClient.getMembershipBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipBinding_Membershipbindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingString.java new file mode 100644 index 000000000000..8b21aa1fdbef --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipBindingName; + +public class SyncGetMembershipBindingString { + + public static void main(String[] args) throws Exception { + syncGetMembershipBindingString(); + } + + public static void syncGetMembershipBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString(); + MembershipBinding response = gkeHubClient.getMembershipBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/AsyncGetMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/AsyncGetMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..8575c09b146e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/AsyncGetMembershipRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class AsyncGetMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncGetMembershipRBACRoleBinding(); + } + + public static void asyncGetMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipRBACRoleBindingRequest request = + GetMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.getMembershipRBACRoleBindingCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..673dcf0ecfef --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncGetMembershipRBACRoleBinding(); + } + + public static void syncGetMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipRBACRoleBindingRequest request = + GetMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingRbacrolebindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingRbacrolebindingname.java new file mode 100644 index 000000000000..044bd883e729 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingRbacrolebindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_Rbacrolebindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetMembershipRBACRoleBindingRbacrolebindingname { + + public static void main(String[] args) throws Exception { + syncGetMembershipRBACRoleBindingRbacrolebindingname(); + } + + public static void syncGetMembershipRBACRoleBindingRbacrolebindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_Rbacrolebindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingString.java new file mode 100644 index 000000000000..67a48ef50f67 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetMembershipRBACRoleBindingString { + + public static void main(String[] args) throws Exception { + syncGetMembershipRBACRoleBindingString(); + } + + public static void syncGetMembershipRBACRoleBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString(); + RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/AsyncGetScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/AsyncGetScope.java new file mode 100644 index 000000000000..56b39b3bfe72 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/AsyncGetScope.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScope_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncGetScope { + + public static void main(String[] args) throws Exception { + asyncGetScope(); + } + + public static void asyncGetScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeRequest request = + GetScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + ApiFuture future = gkeHubClient.getScopeCallable().futureCall(request); + // Do something. + Scope response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScope_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScope.java new file mode 100644 index 000000000000..ec86018f2603 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScope.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScope_sync] +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncGetScope { + + public static void main(String[] args) throws Exception { + syncGetScope(); + } + + public static void syncGetScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeRequest request = + GetScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + Scope response = gkeHubClient.getScope(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScope_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeScopename.java new file mode 100644 index 000000000000..9da76ac095cf --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeScopename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScope_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncGetScopeScopename { + + public static void main(String[] args) throws Exception { + syncGetScopeScopename(); + } + + public static void syncGetScopeScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Scope response = gkeHubClient.getScope(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScope_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeString.java new file mode 100644 index 000000000000..9e7376324600 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScope_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncGetScopeString { + + public static void main(String[] args) throws Exception { + syncGetScopeString(); + } + + public static void syncGetScopeString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + Scope response = gkeHubClient.getScope(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScope_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/AsyncGetScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/AsyncGetScopeNamespace.java new file mode 100644 index 000000000000..5581a2111153 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/AsyncGetScopeNamespace.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeNamespace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.NamespaceName; + +public class AsyncGetScopeNamespace { + + public static void main(String[] args) throws Exception { + asyncGetScopeNamespace(); + } + + public static void asyncGetScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeNamespaceRequest request = + GetScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + ApiFuture future = gkeHubClient.getScopeNamespaceCallable().futureCall(request); + // Do something. + Namespace response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeNamespace_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespace.java new file mode 100644 index 000000000000..10f51638def9 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeNamespace_sync] +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.NamespaceName; + +public class SyncGetScopeNamespace { + + public static void main(String[] args) throws Exception { + syncGetScopeNamespace(); + } + + public static void syncGetScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeNamespaceRequest request = + GetScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + Namespace response = gkeHubClient.getScopeNamespace(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeNamespace_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceNamespacename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceNamespacename.java new file mode 100644 index 000000000000..956c5a0e5d43 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceNamespacename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeNamespace_Namespacename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.NamespaceName; + +public class SyncGetScopeNamespaceNamespacename { + + public static void main(String[] args) throws Exception { + syncGetScopeNamespaceNamespacename(); + } + + public static void syncGetScopeNamespaceNamespacename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + Namespace response = gkeHubClient.getScopeNamespace(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeNamespace_Namespacename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceString.java new file mode 100644 index 000000000000..67d25930dbe7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeNamespace_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.NamespaceName; + +public class SyncGetScopeNamespaceString { + + public static void main(String[] args) throws Exception { + syncGetScopeNamespaceString(); + } + + public static void syncGetScopeNamespaceString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString(); + Namespace response = gkeHubClient.getScopeNamespace(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeNamespace_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/AsyncGetScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/AsyncGetScopeRBACRoleBinding.java new file mode 100644 index 000000000000..1a9a5343e7c4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/AsyncGetScopeRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class AsyncGetScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncGetScopeRBACRoleBinding(); + } + + public static void asyncGetScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeRBACRoleBindingRequest request = + GetScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.getScopeRBACRoleBindingCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBinding.java new file mode 100644 index 000000000000..38a09a24ce51 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncGetScopeRBACRoleBinding(); + } + + public static void syncGetScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeRBACRoleBindingRequest request = + GetScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingRbacrolebindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingRbacrolebindingname.java new file mode 100644 index 000000000000..6bcba23572fe --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingRbacrolebindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_Rbacrolebindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetScopeRBACRoleBindingRbacrolebindingname { + + public static void main(String[] args) throws Exception { + syncGetScopeRBACRoleBindingRbacrolebindingname(); + } + + public static void syncGetScopeRBACRoleBindingRbacrolebindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_Rbacrolebindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingString.java new file mode 100644 index 000000000000..115b07641847 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetScopeRBACRoleBindingString { + + public static void main(String[] args) throws Exception { + syncGetScopeRBACRoleBindingString(); + } + + public static void syncGetScopeRBACRoleBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString(); + RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMemberships.java new file mode 100644 index 000000000000..d9f8abdb3188 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMemberships.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncListBoundMemberships { + + public static void main(String[] args) throws Exception { + asyncListBoundMemberships(); + } + + public static void asyncListBoundMemberships() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder() + .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + gkeHubClient.listBoundMembershipsPagedCallable().futureCall(request); + // Do something. + for (Membership element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMembershipsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMembershipsPaged.java new file mode 100644 index 000000000000..9d34e21e609b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMembershipsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.common.base.Strings; + +public class AsyncListBoundMembershipsPaged { + + public static void main(String[] args) throws Exception { + asyncListBoundMembershipsPaged(); + } + + public static void asyncListBoundMembershipsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder() + .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBoundMembershipsResponse response = + gkeHubClient.listBoundMembershipsCallable().call(request); + for (Membership element : response.getMembershipsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMemberships.java new file mode 100644 index 000000000000..1ee0f93aecb2 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMemberships.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListBoundMemberships { + + public static void main(String[] args) throws Exception { + syncListBoundMemberships(); + } + + public static void syncListBoundMemberships() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder() + .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Membership element : gkeHubClient.listBoundMemberships(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsScopename.java new file mode 100644 index 000000000000..ed036bd5b3eb --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsScopename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListBoundMembershipsScopename { + + public static void main(String[] args) throws Exception { + syncListBoundMembershipsScopename(); + } + + public static void syncListBoundMembershipsScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsString.java new file mode 100644 index 000000000000..530ae40f85c4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListBoundMembershipsString { + + public static void main(String[] args) throws Exception { + syncListBoundMembershipsString(); + } + + public static void syncListBoundMembershipsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeatures.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeatures.java new file mode 100644 index 000000000000..423b4c1a7e10 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeatures.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFeaturesRequest; +import com.google.cloud.gkehub.v1.LocationName; + +public class AsyncListFeatures { + + public static void main(String[] args) throws Exception { + asyncListFeatures(); + } + + public static void asyncListFeatures() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = gkeHubClient.listFeaturesPagedCallable().futureCall(request); + // Do something. + for (Feature element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeaturesPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeaturesPaged.java new file mode 100644 index 000000000000..df2734da107e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeaturesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_Paged_async] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFeaturesRequest; +import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListFeaturesPaged { + + public static void main(String[] args) throws Exception { + asyncListFeaturesPaged(); + } + + public static void asyncListFeaturesPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + while (true) { + ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request); + for (Feature element : response.getResourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeatures.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeatures.java new file mode 100644 index 000000000000..9b6940be94d8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeatures.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFeaturesRequest; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFeatures { + + public static void main(String[] args) throws Exception { + syncListFeatures(); + } + + public static void syncListFeatures() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + for (Feature element : gkeHubClient.listFeatures(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesLocationname.java new file mode 100644 index 000000000000..2a7c79c82f00 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_Locationname_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFeaturesLocationname { + + public static void main(String[] args) throws Exception { + syncListFeaturesLocationname(); + } + + public static void syncListFeaturesLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesString.java new file mode 100644 index 000000000000..96697c4e97d5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_String_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFeaturesString { + + public static void main(String[] args) throws Exception { + syncListFeaturesString(); + } + + public static void syncListFeaturesString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleets.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleets.java new file mode 100644 index 000000000000..dc7a1b0ecd2e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleets.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.LocationName; + +public class AsyncListFleets { + + public static void main(String[] args) throws Exception { + asyncListFleets(); + } + + public static void asyncListFleets() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFleetsRequest request = + ListFleetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = gkeHubClient.listFleetsPagedCallable().futureCall(request); + // Do something. + for (Fleet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleetsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleetsPaged.java new file mode 100644 index 000000000000..7641890a36e3 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleetsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_Paged_async] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListFleetsPaged { + + public static void main(String[] args) throws Exception { + asyncListFleetsPaged(); + } + + public static void asyncListFleetsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFleetsRequest request = + ListFleetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListFleetsResponse response = gkeHubClient.listFleetsCallable().call(request); + for (Fleet element : response.getFleetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleets.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleets.java new file mode 100644 index 000000000000..93213acd1c47 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleets.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFleets { + + public static void main(String[] args) throws Exception { + syncListFleets(); + } + + public static void syncListFleets() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFleetsRequest request = + ListFleetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (Fleet element : gkeHubClient.listFleets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsLocationname.java new file mode 100644 index 000000000000..b7ace4650ce6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_Locationname_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFleetsLocationname { + + public static void main(String[] args) throws Exception { + syncListFleetsLocationname(); + } + + public static void syncListFleetsLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsString.java new file mode 100644 index 000000000000..4f5ce7b342f4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_String_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFleetsString { + + public static void main(String[] args) throws Exception { + syncListFleetsString(); + } + + public static void syncListFleetsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindings.java new file mode 100644 index 000000000000..ef197220b183 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindings.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class AsyncListMembershipBindings { + + public static void main(String[] args) throws Exception { + asyncListMembershipBindings(); + } + + public static void asyncListMembershipBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + gkeHubClient.listMembershipBindingsPagedCallable().futureCall(request); + // Do something. + for (MembershipBinding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindingsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindingsPaged.java new file mode 100644 index 000000000000..725738ed7e41 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindingsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.common.base.Strings; + +public class AsyncListMembershipBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListMembershipBindingsPaged(); + } + + public static void asyncListMembershipBindingsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListMembershipBindingsResponse response = + gkeHubClient.listMembershipBindingsCallable().call(request); + for (MembershipBinding element : response.getMembershipBindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindings.java new file mode 100644 index 000000000000..8bd65825acef --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncListMembershipBindings { + + public static void main(String[] args) throws Exception { + syncListMembershipBindings(); + } + + public static void syncListMembershipBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (MembershipBinding element : gkeHubClient.listMembershipBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsMembershipname.java new file mode 100644 index 000000000000..b785db1c6fd8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsMembershipname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncListMembershipBindingsMembershipname { + + public static void main(String[] args) throws Exception { + syncListMembershipBindingsMembershipname(); + } + + public static void syncListMembershipBindingsMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsString.java new file mode 100644 index 000000000000..4eac392c6753 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncListMembershipBindingsString { + + public static void main(String[] args) throws Exception { + syncListMembershipBindingsString(); + } + + public static void syncListMembershipBindingsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindings.java new file mode 100644 index 000000000000..7de099a52b01 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindings.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncListMembershipRBACRoleBindings { + + public static void main(String[] args) throws Exception { + asyncListMembershipRBACRoleBindings(); + } + + public static void asyncListMembershipRBACRoleBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + gkeHubClient.listMembershipRBACRoleBindingsPagedCallable().futureCall(request); + // Do something. + for (RBACRoleBinding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindingsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindingsPaged.java new file mode 100644 index 000000000000..b857963388c8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindingsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.common.base.Strings; + +public class AsyncListMembershipRBACRoleBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListMembershipRBACRoleBindingsPaged(); + } + + public static void asyncListMembershipRBACRoleBindingsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListMembershipRBACRoleBindingsResponse response = + gkeHubClient.listMembershipRBACRoleBindingsCallable().call(request); + for (RBACRoleBinding element : response.getRbacrolebindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindings.java new file mode 100644 index 000000000000..2cd0cb636acd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListMembershipRBACRoleBindings { + + public static void main(String[] args) throws Exception { + syncListMembershipRBACRoleBindings(); + } + + public static void syncListMembershipRBACRoleBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (RBACRoleBinding element : + gkeHubClient.listMembershipRBACRoleBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsMembershipname.java new file mode 100644 index 000000000000..d9f4f45ed6db --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsMembershipname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncListMembershipRBACRoleBindingsMembershipname { + + public static void main(String[] args) throws Exception { + syncListMembershipRBACRoleBindingsMembershipname(); + } + + public static void syncListMembershipRBACRoleBindingsMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + for (RBACRoleBinding element : + gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsScopename.java new file mode 100644 index 000000000000..289fb6c7347a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsScopename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListMembershipRBACRoleBindingsScopename { + + public static void main(String[] args) throws Exception { + syncListMembershipRBACRoleBindingsScopename(); + } + + public static void syncListMembershipRBACRoleBindingsScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + for (RBACRoleBinding element : + gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsString.java new file mode 100644 index 000000000000..bcc75d1155d8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListMembershipRBACRoleBindingsString { + + public static void main(String[] args) throws Exception { + syncListMembershipRBACRoleBindingsString(); + } + + public static void syncListMembershipRBACRoleBindingsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + for (RBACRoleBinding element : + gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMemberships.java new file mode 100644 index 000000000000..f3421dd7062b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMemberships.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipsRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class AsyncListMemberships { + + public static void main(String[] args) throws Exception { + asyncListMemberships(); + } + + public static void asyncListMemberships() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipsRequest request = + ListMembershipsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gkeHubClient.listMembershipsPagedCallable().futureCall(request); + // Do something. + for (Membership element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMembershipsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMembershipsPaged.java new file mode 100644 index 000000000000..5c01e5db4562 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMembershipsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipsRequest; +import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; +import com.google.common.base.Strings; + +public class AsyncListMembershipsPaged { + + public static void main(String[] args) throws Exception { + asyncListMembershipsPaged(); + } + + public static void asyncListMembershipsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipsRequest request = + ListMembershipsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request); + for (Membership element : response.getResourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMemberships.java new file mode 100644 index 000000000000..c00d25d470a8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMemberships.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipsRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncListMemberships { + + public static void main(String[] args) throws Exception { + syncListMemberships(); + } + + public static void syncListMemberships() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipsRequest request = + ListMembershipsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Membership element : gkeHubClient.listMemberships(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsLocationname.java new file mode 100644 index 000000000000..b478c237c2c4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_Locationname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncListMembershipsLocationname { + + public static void main(String[] args) throws Exception { + syncListMembershipsLocationname(); + } + + public static void syncListMembershipsLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsString.java new file mode 100644 index 000000000000..ddb6edfaf3d6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncListMembershipsString { + + public static void main(String[] args) throws Exception { + syncListMembershipsString(); + } + + public static void syncListMembershipsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopes.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopes.java new file mode 100644 index 000000000000..92f97670ed11 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopes.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class AsyncListPermittedScopes { + + public static void main(String[] args) throws Exception { + asyncListPermittedScopes(); + } + + public static void asyncListPermittedScopes() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = gkeHubClient.listPermittedScopesPagedCallable().futureCall(request); + // Do something. + for (Scope element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopesPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopesPaged.java new file mode 100644 index 000000000000..4f5ec2d8433a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; +import com.google.common.base.Strings; + +public class AsyncListPermittedScopesPaged { + + public static void main(String[] args) throws Exception { + asyncListPermittedScopesPaged(); + } + + public static void asyncListPermittedScopesPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListPermittedScopesResponse response = + gkeHubClient.listPermittedScopesCallable().call(request); + for (Scope element : response.getScopesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopes.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopes.java new file mode 100644 index 000000000000..882d11a8d340 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopes.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListPermittedScopes { + + public static void main(String[] args) throws Exception { + syncListPermittedScopes(); + } + + public static void syncListPermittedScopes() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Scope element : gkeHubClient.listPermittedScopes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesLocationname.java new file mode 100644 index 000000000000..82437c962062 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_Locationname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListPermittedScopesLocationname { + + public static void main(String[] args) throws Exception { + syncListPermittedScopesLocationname(); + } + + public static void syncListPermittedScopesLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesString.java new file mode 100644 index 000000000000..28cc93696141 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListPermittedScopesString { + + public static void main(String[] args) throws Exception { + syncListPermittedScopesString(); + } + + public static void syncListPermittedScopesString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespaces.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespaces.java new file mode 100644 index 000000000000..847e5c2b1b00 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespaces.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncListScopeNamespaces { + + public static void main(String[] args) throws Exception { + asyncListScopeNamespaces(); + } + + public static void asyncListScopeNamespaces() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + gkeHubClient.listScopeNamespacesPagedCallable().futureCall(request); + // Do something. + for (Namespace element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespacesPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespacesPaged.java new file mode 100644 index 000000000000..63be42e38858 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespacesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.common.base.Strings; + +public class AsyncListScopeNamespacesPaged { + + public static void main(String[] args) throws Exception { + asyncListScopeNamespacesPaged(); + } + + public static void asyncListScopeNamespacesPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListScopeNamespacesResponse response = + gkeHubClient.listScopeNamespacesCallable().call(request); + for (Namespace element : response.getScopeNamespacesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespaces.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespaces.java new file mode 100644 index 000000000000..9d6465ff9374 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespaces.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeNamespaces { + + public static void main(String[] args) throws Exception { + syncListScopeNamespaces(); + } + + public static void syncListScopeNamespaces() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Namespace element : gkeHubClient.listScopeNamespaces(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesScopename.java new file mode 100644 index 000000000000..d02465a1d4cd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesScopename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeNamespacesScopename { + + public static void main(String[] args) throws Exception { + syncListScopeNamespacesScopename(); + } + + public static void syncListScopeNamespacesScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesString.java new file mode 100644 index 000000000000..4f894f83f879 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeNamespacesString { + + public static void main(String[] args) throws Exception { + syncListScopeNamespacesString(); + } + + public static void syncListScopeNamespacesString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindings.java new file mode 100644 index 000000000000..7db7f7acbe66 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindings.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncListScopeRBACRoleBindings { + + public static void main(String[] args) throws Exception { + asyncListScopeRBACRoleBindings(); + } + + public static void asyncListScopeRBACRoleBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + gkeHubClient.listScopeRBACRoleBindingsPagedCallable().futureCall(request); + // Do something. + for (RBACRoleBinding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindingsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindingsPaged.java new file mode 100644 index 000000000000..953a3abd043f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindingsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.common.base.Strings; + +public class AsyncListScopeRBACRoleBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListScopeRBACRoleBindingsPaged(); + } + + public static void asyncListScopeRBACRoleBindingsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListScopeRBACRoleBindingsResponse response = + gkeHubClient.listScopeRBACRoleBindingsCallable().call(request); + for (RBACRoleBinding element : response.getRbacrolebindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindings.java new file mode 100644 index 000000000000..b2433c3ed193 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindings.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeRBACRoleBindings { + + public static void main(String[] args) throws Exception { + syncListScopeRBACRoleBindings(); + } + + public static void syncListScopeRBACRoleBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsMembershipname.java new file mode 100644 index 000000000000..85446807ed73 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsMembershipname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncListScopeRBACRoleBindingsMembershipname { + + public static void main(String[] args) throws Exception { + syncListScopeRBACRoleBindingsMembershipname(); + } + + public static void syncListScopeRBACRoleBindingsMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsScopename.java new file mode 100644 index 000000000000..ce028e1681d9 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsScopename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeRBACRoleBindingsScopename { + + public static void main(String[] args) throws Exception { + syncListScopeRBACRoleBindingsScopename(); + } + + public static void syncListScopeRBACRoleBindingsScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsString.java new file mode 100644 index 000000000000..bdc0bcbd587f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeRBACRoleBindingsString { + + public static void main(String[] args) throws Exception { + syncListScopeRBACRoleBindingsString(); + } + + public static void syncListScopeRBACRoleBindingsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopes.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopes.java new file mode 100644 index 000000000000..06ce0bae0786 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopes.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class AsyncListScopes { + + public static void main(String[] args) throws Exception { + asyncListScopes(); + } + + public static void asyncListScopes() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopesRequest request = + ListScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = gkeHubClient.listScopesPagedCallable().futureCall(request); + // Do something. + for (Scope element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopesPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopesPaged.java new file mode 100644 index 000000000000..fe78c236a9a7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopesPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; +import com.google.common.base.Strings; + +public class AsyncListScopesPaged { + + public static void main(String[] args) throws Exception { + asyncListScopesPaged(); + } + + public static void asyncListScopesPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopesRequest request = + ListScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListScopesResponse response = gkeHubClient.listScopesCallable().call(request); + for (Scope element : response.getScopesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopes.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopes.java new file mode 100644 index 000000000000..26de84a1b965 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopes.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListScopes { + + public static void main(String[] args) throws Exception { + syncListScopes(); + } + + public static void syncListScopes() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopesRequest request = + ListScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Scope element : gkeHubClient.listScopes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesLocationname.java new file mode 100644 index 000000000000..09dba35a60a7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_Locationname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListScopesLocationname { + + public static void main(String[] args) throws Exception { + syncListScopesLocationname(); + } + + public static void syncListScopesLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesString.java new file mode 100644 index 000000000000..12ecf87b9cb5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListScopesString { + + public static void main(String[] args) throws Exception { + syncListScopesString(); + } + + public static void syncListScopesString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeature.java new file mode 100644 index 000000000000..6fd025231460 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeature.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFeature { + + public static void main(String[] args) throws Exception { + asyncUpdateFeature(); + } + + public static void asyncUpdateFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.updateFeatureCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeatureLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeatureLRO.java new file mode 100644 index 000000000000..3b18768d3a04 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeatureLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFeatureLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateFeatureLRO(); + } + + public static void asyncUpdateFeatureLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.updateFeatureOperationCallable().futureCall(request); + // Do something. + Feature response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeature.java new file mode 100644 index 000000000000..0ccb1e4e8898 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeature.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFeature { + + public static void main(String[] args) throws Exception { + syncUpdateFeature(); + } + + public static void syncUpdateFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Feature response = gkeHubClient.updateFeatureAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureFeaturenameFeatureFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureFeaturenameFeatureFieldmask.java new file mode 100644 index 000000000000..12c3be292d04 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureFeaturenameFeatureFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_FeaturenameFeatureFieldmask_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFeatureFeaturenameFeatureFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFeatureFeaturenameFeatureFieldmask(); + } + + public static void syncUpdateFeatureFeaturenameFeatureFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + Feature resource = Feature.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_FeaturenameFeatureFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureStringFeatureFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureStringFeatureFieldmask.java new file mode 100644 index 000000000000..fe358917cf6a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureStringFeatureFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_StringFeatureFieldmask_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFeatureStringFeatureFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFeatureStringFeatureFieldmask(); + } + + public static void syncUpdateFeatureStringFeatureFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); + Feature resource = Feature.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_StringFeatureFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleet.java new file mode 100644 index 000000000000..abb14196b48a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFleet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFleet { + + public static void main(String[] args) throws Exception { + asyncUpdateFleet(); + } + + public static void asyncUpdateFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFleetRequest request = + UpdateFleetRequest.newBuilder() + .setFleet(Fleet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.updateFleetCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFleet_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleetLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleetLRO.java new file mode 100644 index 000000000000..9c727ffa097d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleetLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFleet_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFleetLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateFleetLRO(); + } + + public static void asyncUpdateFleetLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFleetRequest request = + UpdateFleetRequest.newBuilder() + .setFleet(Fleet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateFleetOperationCallable().futureCall(request); + // Do something. + Fleet response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFleet_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleet.java new file mode 100644 index 000000000000..ca13be5f55bd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFleet_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFleet { + + public static void main(String[] args) throws Exception { + syncUpdateFleet(); + } + + public static void syncUpdateFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFleetRequest request = + UpdateFleetRequest.newBuilder() + .setFleet(Fleet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Fleet response = gkeHubClient.updateFleetAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleetFleetFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleetFleetFieldmask.java new file mode 100644 index 000000000000..9fe50adee914 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleetFleetFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFleet_FleetFieldmask_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFleetFleetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFleetFleetFieldmask(); + } + + public static void syncUpdateFleetFleetFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + Fleet fleet = Fleet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Fleet response = gkeHubClient.updateFleetAsync(fleet, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFleet_FleetFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembership.java new file mode 100644 index 000000000000..777ffdd8bc20 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembership.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembership { + + public static void main(String[] args) throws Exception { + asyncUpdateMembership(); + } + + public static void asyncUpdateMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.updateMembershipCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembershipLRO.java new file mode 100644 index 000000000000..948e746e12d4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembershipLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipLRO(); + } + + public static void asyncUpdateMembershipLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.updateMembershipOperationCallable().futureCall(request); + // Do something. + Membership response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembership.java new file mode 100644 index 000000000000..aa6fca89b347 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembership.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembership { + + public static void main(String[] args) throws Exception { + syncUpdateMembership(); + } + + public static void syncUpdateMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Membership response = gkeHubClient.updateMembershipAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java new file mode 100644 index 000000000000..4ba4d259bec9 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_MembershipnameMembershipFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipMembershipnameMembershipFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipMembershipnameMembershipFieldmask(); + } + + public static void syncUpdateMembershipMembershipnameMembershipFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + Membership resource = Membership.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_MembershipnameMembershipFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java new file mode 100644 index 000000000000..7688aa92ff00 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_StringMembershipFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipStringMembershipFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipStringMembershipFieldmask(); + } + + public static void syncUpdateMembershipStringMembershipFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + Membership resource = Membership.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_StringMembershipFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBinding.java new file mode 100644 index 000000000000..368db7a8a8c5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipBinding { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipBinding(); + } + + public static void asyncUpdateMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipBindingRequest request = + UpdateMembershipBindingRequest.newBuilder() + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.updateMembershipBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBindingLRO.java new file mode 100644 index 000000000000..19e3fb980e74 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBindingLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipBindingLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipBindingLRO(); + } + + public static void asyncUpdateMembershipBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipBindingRequest request = + UpdateMembershipBindingRequest.newBuilder() + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateMembershipBindingOperationCallable().futureCall(request); + // Do something. + MembershipBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBinding.java new file mode 100644 index 000000000000..887483ebf991 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBinding.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipBinding_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipBinding { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipBinding(); + } + + public static void syncUpdateMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipBindingRequest request = + UpdateMembershipBindingRequest.newBuilder() + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + MembershipBinding response = gkeHubClient.updateMembershipBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBindingMembershipbindingFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBindingMembershipbindingFieldmask.java new file mode 100644 index 000000000000..5957cbbf8447 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBindingMembershipbindingFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipBinding_MembershipbindingFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipBindingMembershipbindingFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipBindingMembershipbindingFieldmask(); + } + + public static void syncUpdateMembershipBindingMembershipbindingFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MembershipBinding response = + gkeHubClient.updateMembershipBindingAsync(membershipBinding, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipBinding_MembershipbindingFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..6260c87f7b9c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipRBACRoleBinding(); + } + + public static void asyncUpdateMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRBACRoleBindingRequest request = + UpdateMembershipRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.updateMembershipRBACRoleBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBindingLRO.java new file mode 100644 index 000000000000..1450c54ce6a6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBindingLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipRBACRoleBindingLRO(); + } + + public static void asyncUpdateMembershipRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRBACRoleBindingRequest request = + UpdateMembershipRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateMembershipRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..106a6a876437 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBinding.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipRBACRoleBinding(); + } + + public static void syncUpdateMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRBACRoleBindingRequest request = + UpdateMembershipRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + RBACRoleBinding response = gkeHubClient.updateMembershipRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask.java new file mode 100644 index 000000000000..7471f969fa56 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_RbacrolebindingFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask(); + } + + public static void syncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + RBACRoleBinding response = + gkeHubClient.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_RbacrolebindingFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScope.java new file mode 100644 index 000000000000..ca9b82d0bb5c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScope.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScope_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScope { + + public static void main(String[] args) throws Exception { + asyncUpdateScope(); + } + + public static void asyncUpdateScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRequest request = + UpdateScopeRequest.newBuilder() + .setScope(Scope.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.updateScopeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScope_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScopeLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScopeLRO.java new file mode 100644 index 000000000000..868d6b5fab33 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScopeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScope_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeLRO(); + } + + public static void asyncUpdateScopeLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRequest request = + UpdateScopeRequest.newBuilder() + .setScope(Scope.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateScopeOperationCallable().futureCall(request); + // Do something. + Scope response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScope_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScope.java new file mode 100644 index 000000000000..94659eb35bd0 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScope.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScope_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScope { + + public static void main(String[] args) throws Exception { + syncUpdateScope(); + } + + public static void syncUpdateScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRequest request = + UpdateScopeRequest.newBuilder() + .setScope(Scope.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Scope response = gkeHubClient.updateScopeAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScope_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScopeScopeFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScopeScopeFieldmask.java new file mode 100644 index 000000000000..5d22f329e006 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScopeScopeFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScope_ScopeFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeScopeFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateScopeScopeFieldmask(); + } + + public static void syncUpdateScopeScopeFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + Scope scope = Scope.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Scope response = gkeHubClient.updateScopeAsync(scope, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScope_ScopeFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespace.java new file mode 100644 index 000000000000..63c444369188 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespace.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeNamespace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeNamespace { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeNamespace(); + } + + public static void asyncUpdateScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeNamespaceRequest request = + UpdateScopeNamespaceRequest.newBuilder() + .setScopeNamespace(Namespace.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.updateScopeNamespaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeNamespace_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespaceLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespaceLRO.java new file mode 100644 index 000000000000..6c8651cd2aad --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespaceLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeNamespace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeNamespaceLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeNamespaceLRO(); + } + + public static void asyncUpdateScopeNamespaceLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeNamespaceRequest request = + UpdateScopeNamespaceRequest.newBuilder() + .setScopeNamespace(Namespace.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateScopeNamespaceOperationCallable().futureCall(request); + // Do something. + Namespace response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeNamespace_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespace.java new file mode 100644 index 000000000000..86b9b5e9d474 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeNamespace_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeNamespace { + + public static void main(String[] args) throws Exception { + syncUpdateScopeNamespace(); + } + + public static void syncUpdateScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeNamespaceRequest request = + UpdateScopeNamespaceRequest.newBuilder() + .setScopeNamespace(Namespace.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Namespace response = gkeHubClient.updateScopeNamespaceAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeNamespace_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespaceNamespaceFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespaceNamespaceFieldmask.java new file mode 100644 index 000000000000..751f3167b5bc --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespaceNamespaceFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeNamespace_NamespaceFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeNamespaceNamespaceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateScopeNamespaceNamespaceFieldmask(); + } + + public static void syncUpdateScopeNamespaceNamespaceFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + Namespace scopeNamespace = Namespace.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Namespace response = gkeHubClient.updateScopeNamespaceAsync(scopeNamespace, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeNamespace_NamespaceFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBinding.java new file mode 100644 index 000000000000..4e660694e0e6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeRBACRoleBinding(); + } + + public static void asyncUpdateScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRBACRoleBindingRequest request = + UpdateScopeRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.updateScopeRBACRoleBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBindingLRO.java new file mode 100644 index 000000000000..c05964139d2b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBindingLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeRBACRoleBindingLRO(); + } + + public static void asyncUpdateScopeRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRBACRoleBindingRequest request = + UpdateScopeRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateScopeRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBinding.java new file mode 100644 index 000000000000..ba0cd1432c4f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBinding.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncUpdateScopeRBACRoleBinding(); + } + + public static void syncUpdateScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRBACRoleBindingRequest request = + UpdateScopeRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + RBACRoleBinding response = gkeHubClient.updateScopeRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask.java new file mode 100644 index 000000000000..5e1fddd3f060 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_RbacrolebindingFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask(); + } + + public static void syncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + RBACRoleBinding response = + gkeHubClient.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_RbacrolebindingFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/createmembership/SyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/createmembership/SyncCreateMembership.java new file mode 100644 index 000000000000..d74b800c1194 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/createmembership/SyncCreateMembership.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHubSettings_CreateMembership_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.gkehub.v1.GkeHubSettings; +import java.time.Duration; + +public class SyncCreateMembership { + + public static void main(String[] args) throws Exception { + syncCreateMembership(); + } + + public static void syncCreateMembership() 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 + GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + gkeHubSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END gkehub_v1_generated_GkeHubSettings_CreateMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/getmembership/SyncGetMembership.java new file mode 100644 index 000000000000..d785b960b9db --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/getmembership/SyncGetMembership.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHubSettings_GetMembership_sync] +import com.google.cloud.gkehub.v1.GkeHubSettings; +import java.time.Duration; + +public class SyncGetMembership { + + public static void main(String[] args) throws Exception { + syncGetMembership(); + } + + public static void syncGetMembership() 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 + GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder(); + gkeHubSettingsBuilder + .getMembershipSettings() + .setRetrySettings( + gkeHubSettingsBuilder + .getMembershipSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); + } +} +// [END gkehub_v1_generated_GkeHubSettings_GetMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/createmembership/SyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/createmembership/SyncCreateMembership.java new file mode 100644 index 000000000000..2d401e9a1d05 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/createmembership/SyncCreateMembership.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.stub.samples; + +// [START gkehub_v1_generated_GkeHubStubSettings_CreateMembership_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.gkehub.v1.stub.GkeHubStubSettings; +import java.time.Duration; + +public class SyncCreateMembership { + + public static void main(String[] args) throws Exception { + syncCreateMembership(); + } + + public static void syncCreateMembership() 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 + GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + gkeHubSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END gkehub_v1_generated_GkeHubStubSettings_CreateMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/getmembership/SyncGetMembership.java new file mode 100644 index 000000000000..f0feefeeb6ac --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/getmembership/SyncGetMembership.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.stub.samples; + +// [START gkehub_v1_generated_GkeHubStubSettings_GetMembership_sync] +import com.google.cloud.gkehub.v1.stub.GkeHubStubSettings; +import java.time.Duration; + +public class SyncGetMembership { + + public static void main(String[] args) throws Exception { + syncGetMembership(); + } + + public static void syncGetMembership() 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 + GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder(); + gkeHubSettingsBuilder + .getMembershipSettings() + .setRetrySettings( + gkeHubSettingsBuilder + .getMembershipSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); + } +} +// [END gkehub_v1_generated_GkeHubStubSettings_GetMembership_sync] From 2168ac7ace923b8fee865941c26dba96ec800ca9 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 5 Feb 2026 02:56:08 +0000 Subject: [PATCH 11/12] chore: Update generation configuration at Thu Feb 5 02:56:00 UTC 2026 --- .github/workflows/hermetic_library_generation.yaml | 2 +- generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 7985390da42c..c567de27e10f 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/generation_config.yaml b/generation_config.yaml index f1c1048ea371..87a3f8727ace 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.66.0 -googleapis_commitish: 7a5706618f42f482acf583febcc7b977b66c25b2 +gapic_generator_version: 2.66.1 +googleapis_commitish: 466a47d6cd89f3e252f2d26fb26fc27b53a6add7 libraries_bom_version: 26.75.0 # the libraries are ordered with respect to library name, which is From 9a9ef21326e45cb35dc1698c9edc7942ba591dc4 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 5 Feb 2026 04:25:58 +0000 Subject: [PATCH 12/12] chore: generate libraries at Thu Feb 5 02:58:53 UTC 2026 --- .../aiplatform/v1/DatasetServiceClient.java | 17 +++---- .../aiplatform/v1/DatasetServiceGrpc.java | 20 ++------ .../google/cloud/aiplatform/v1/Dataset.java | 28 ++++++++--- .../cloud/aiplatform/v1/DatasetOrBuilder.java | 8 ++- .../cloud/aiplatform/v1/DatasetProto.java | 45 +++++++++-------- .../cloud/aiplatform/v1/DatasetVersion.java | 28 ++++++++--- .../v1/DatasetVersionOrBuilder.java | 8 ++- .../aiplatform/v1/DatasetVersionProto.java | 47 +++++++++--------- .../aiplatform/v1/GetDatasetRequest.java | 2 - .../v1/GetDatasetVersionRequest.java | 2 - .../aiplatform/v1/SearchDataItemsRequest.java | 42 ++++++++-------- .../v1/SearchDataItemsRequestOrBuilder.java | 12 ++--- .../google/cloud/aiplatform/v1/dataset.proto | 9 +++- .../cloud/aiplatform/v1/dataset_service.proto | 8 +-- .../cloud/aiplatform/v1/dataset_version.proto | 9 +++- .../cloud/aiplatform/v1beta1/Dataset.java | 28 ++++++++--- .../aiplatform/v1beta1/DatasetOrBuilder.java | 8 ++- .../aiplatform/v1beta1/DatasetProto.java | 46 ++++++++--------- .../aiplatform/v1beta1/DatasetVersion.java | 28 ++++++++--- .../v1beta1/DatasetVersionOrBuilder.java | 8 ++- .../v1beta1/DatasetVersionProto.java | 49 ++++++++++--------- .../cloud/aiplatform/v1beta1/dataset.proto | 9 +++- .../aiplatform/v1beta1/dataset_version.proto | 9 +++- .../v1/ArtifactRegistryClient.java | 27 ++++++++-- .../artifactregistry/v1/FileProto.java | 31 ++++++------ .../devtools/artifactregistry/v1/Hash.java | 23 +++++++++ .../artifactregistry/v1/apt_artifact.proto | 2 +- .../artifactregistry/v1/artifact.proto | 2 +- .../artifactregistry/v1/attachment.proto | 2 +- .../devtools/artifactregistry/v1/export.proto | 2 +- .../devtools/artifactregistry/v1/file.proto | 5 +- .../artifactregistry/v1/generic.proto | 2 +- .../devtools/artifactregistry/v1/go.proto | 2 +- .../artifactregistry/v1/kfp_artifact.proto | 2 +- .../artifactregistry/v1/package.proto | 2 +- .../artifactregistry/v1/repository.proto | 2 +- .../devtools/artifactregistry/v1/rule.proto | 2 +- .../artifactregistry/v1/service.proto | 2 +- .../artifactregistry/v1/settings.proto | 2 +- .../devtools/artifactregistry/v1/tag.proto | 2 +- .../artifactregistry/v1/version.proto | 2 +- .../artifactregistry/v1/vpcsc_config.proto | 2 +- .../artifactregistry/v1/yum_artifact.proto | 2 +- .../proto/google/cloud/support/v2/actor.proto | 2 +- .../google/cloud/support/v2/attachment.proto | 2 +- .../cloud/support/v2/attachment_service.proto | 2 +- .../proto/google/cloud/support/v2/case.proto | 2 +- .../cloud/support/v2/case_service.proto | 2 +- .../google/cloud/support/v2/comment.proto | 2 +- .../cloud/support/v2/comment_service.proto | 2 +- .../google/cloud/support/v2/escalation.proto | 2 +- .../google/cloud/support/v2beta/actor.proto | 2 +- .../cloud/support/v2beta/attachment.proto | 2 +- .../support/v2beta/attachment_service.proto | 2 +- .../google/cloud/support/v2beta/case.proto | 2 +- .../cloud/support/v2beta/case_service.proto | 2 +- .../google/cloud/support/v2beta/comment.proto | 2 +- .../support/v2beta/comment_service.proto | 2 +- .../google/cloud/support/v2beta/content.proto | 2 +- .../cloud/support/v2beta/email_message.proto | 2 +- .../cloud/support/v2beta/escalation.proto | 2 +- .../cloud/support/v2beta/feed_item.proto | 2 +- .../cloud/support/v2beta/feed_service.proto | 2 +- 63 files changed, 376 insertions(+), 252 deletions(-) diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java index 78f9429a00f2..435169b38da2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java @@ -426,7 +426,7 @@ * * *

              ListAnnotations - *

              Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights. + *

              Lists Annotations belongs to a dataitem. * *

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

              *
                @@ -3225,8 +3225,7 @@ public final UnaryCallable getAnnotati // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

                Sample code: * @@ -3258,8 +3257,7 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

                Sample code: * @@ -3289,8 +3287,7 @@ public final ListAnnotationsPagedResponse listAnnotations(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

                Sample code: * @@ -3326,8 +3323,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

                Sample code: * @@ -3364,8 +3360,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

                Sample code: * diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java index 09c2bd00c285..1ea4d31bcc24 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java @@ -1231,9 +1231,7 @@ default void getAnnotationSpec( * * *

                -     * Lists Annotations belongs to a dataitem
                -     * This RPC is only available in InternalDatasetService. It is only used for
                -     * exporting conversation data to CCAI Insights.
                +     * Lists Annotations belongs to a dataitem.
                      * 
                */ default void listAnnotations( @@ -1573,9 +1571,7 @@ public void getAnnotationSpec( * * *
                -     * Lists Annotations belongs to a dataitem
                -     * This RPC is only available in InternalDatasetService. It is only used for
                -     * exporting conversation data to CCAI Insights.
                +     * Lists Annotations belongs to a dataitem.
                      * 
                */ public void listAnnotations( @@ -1860,9 +1856,7 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec( * * *
                -     * Lists Annotations belongs to a dataitem
                -     * This RPC is only available in InternalDatasetService. It is only used for
                -     * exporting conversation data to CCAI Insights.
                +     * Lists Annotations belongs to a dataitem.
                      * 
                */ public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations( @@ -2130,9 +2124,7 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec( * * *
                -     * Lists Annotations belongs to a dataitem
                -     * This RPC is only available in InternalDatasetService. It is only used for
                -     * exporting conversation data to CCAI Insights.
                +     * Lists Annotations belongs to a dataitem.
                      * 
                */ public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations( @@ -2409,9 +2401,7 @@ protected DatasetServiceFutureStub build( * * *
                -     * Lists Annotations belongs to a dataitem
                -     * This RPC is only available in InternalDatasetService. It is only used for
                -     * exporting conversation data to CCAI Insights.
                +     * Lists Annotations belongs to a dataitem.
                      * 
                */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java index 91630843dfcd..295e414e03d5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java @@ -100,10 +100,12 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
                    * Output only. Identifier. The resource name of the Dataset.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -126,10 +128,12 @@ public java.lang.String getName() { * *
                    * Output only. Identifier. The resource name of the Dataset.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1827,10 +1831,12 @@ public Builder mergeFrom( * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -1852,10 +1858,12 @@ public java.lang.String getName() { * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1877,10 +1885,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1901,10 +1911,12 @@ public Builder setName(java.lang.String value) { * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1921,10 +1933,12 @@ public Builder clearName() { * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java index 256f5a4f2d5a..b9efeb327ab1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java @@ -31,10 +31,12 @@ public interface DatasetOrBuilder * *
                    * Output only. Identifier. The resource name of the Dataset.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -46,10 +48,12 @@ public interface DatasetOrBuilder * *
                    * Output only. Identifier. The resource name of the Dataset.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java index 5fe1d8dc6b66..5382d978b4a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java @@ -88,9 +88,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "urce.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\032#google/cloud/aipla" + "tform/v1/io.proto\032,google/cloud/aiplatfo" + "rm/v1/saved_query.proto\032\034google/protobuf" - + "/struct.proto\032\037google/protobuf/timestamp.proto\"\206\006\n" - + "\007Dataset\022\024\n" - + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n" + + "/struct.proto\032\037google/protobuf/timestamp.proto\"\254\006\n" + + "\007Dataset\022:\n" + + "\004name\030\001 \001(\tB,\340A\003\340A\010\372A#\n" + + "!aiplatform.googleapis.com/Dataset\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n" + "\013description\030\020 \001(\t\022 \n" + "\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n" @@ -103,8 +104,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\006 \001(\t\022?\n" + "\006labels\030\007 \003(\0132/.google.cloud.aiplatform.v1.Dataset.LabelsEntry\022=\n\r" + "saved_queries\030\t \003(\0132&.google.cloud.aiplatform.v1.SavedQuery\022C\n" - + "\017encryption_spec\030\013 \001(\0132*.goo" - + "gle.cloud.aiplatform.v1.EncryptionSpec\022\036\n" + + "\017encryption_spec\030\013" + + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022\036\n" + "\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n" + "\017model_reference\030\022 \001(\tB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r" @@ -112,17 +113,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:b\352A_\n" - + "!aiplatform.googleapis.com/Data" - + "set\022:projects/{project}/locations/{location}/datasets/{dataset}\"\244\003\n" + + "!aiplatform.googleapis.com/Datase" + + "t\022:projects/{project}/locations/{location}/datasets/{dataset}\"\244\003\n" + "\020ImportDataConfig\022;\n\n" + "gcs_source\030\001 \001(\0132%.google.cloud.aiplatform.v1.GcsSourceH\000\022Z\n" + "\020data_item_labels\030\002" + " \003(\0132@.google.cloud.aiplatform.v1.ImportDataConfig.DataItemLabelsEntry\022]\n" - + "\021annotation_labels\030\003 \003(\0132B.google.cloud." - + "aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry\022\036\n" + + "\021annotation_labels\030\003 \003(\0132B.google.cloud.ai" + + "platform.v1.ImportDataConfig.AnnotationLabelsEntry\022\036\n" + "\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n" + "\023DataItemLabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\0327\n" + "\025AnnotationLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -131,15 +133,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ExportDataConfig\022E\n" + "\017gcs_destination\030\001" + " \001(\0132*.google.cloud.aiplatform.v1.GcsDestinationH\000\022I\n" - + "\016fraction_split\030\005 \001" - + "(\0132/.google.cloud.aiplatform.v1.ExportFractionSplitH\001\022E\n" - + "\014filter_split\030\007 \001(\0132-.go" - + "ogle.cloud.aiplatform.v1.ExportFilterSplitH\001\022\032\n" + + "\016fraction_split\030\005 \001(\013" + + "2/.google.cloud.aiplatform.v1.ExportFractionSplitH\001\022E\n" + + "\014filter_split\030\007 \001(\0132-.goog" + + "le.cloud.aiplatform.v1.ExportFilterSplitH\001\022\032\n" + "\022annotations_filter\030\002 \001(\t\022\026\n" + "\016saved_query_id\030\013 \001(\t\022\035\n" + "\025annotation_schema_uri\030\014 \001(\t\022J\n\n" - + "export_use\030\004 \001(\01626.google.clo" - + "ud.aiplatform.v1.ExportDataConfig.ExportUse\"A\n" + + "export_use\030\004 \001(\01626.google.cloud" + + ".aiplatform.v1.ExportDataConfig.ExportUse\"A\n" + "\tExportUse\022\032\n" + "\026EXPORT_USE_UNSPECIFIED\020\000\022\030\n" + "\024CUSTOM_CODE_TRAINING\020\006B\r\n" @@ -153,11 +155,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017training_filter\030\001 \001(\tB\003\340A\002\022\036\n" + "\021validation_filter\030\002 \001(\tB\003\340A\002\022\030\n" + "\013test_filter\030\003 \001(\tB\003\340A\002B\312\001\n" - + "\036com.google.cloud.aiplatform.v1B\014DatasetProtoP\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" + + "\036com.google.cloud.aiplatform.v1B\014DatasetProtoP\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( @@ -270,6 +272,7 @@ 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.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java index e19ad7b812e1..e5b26252a3a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java @@ -85,10 +85,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                    * Output only. Identifier. The resource name of the DatasetVersion.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -111,10 +113,12 @@ public java.lang.String getName() { * *
                    * Output only. Identifier. The resource name of the DatasetVersion.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1117,10 +1121,12 @@ public Builder mergeFrom( * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -1142,10 +1148,12 @@ public java.lang.String getName() { * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1167,10 +1175,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1191,10 +1201,12 @@ public Builder setName(java.lang.String value) { * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1211,10 +1223,12 @@ public Builder clearName() { * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java index 186ae65ce212..c1d6203b8cde 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java @@ -31,10 +31,12 @@ public interface DatasetVersionOrBuilder * *
                    * Output only. Identifier. The resource name of the DatasetVersion.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -46,10 +48,12 @@ public interface DatasetVersionOrBuilder * *
                    * Output only. Identifier. The resource name of the DatasetVersion.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java index 5bbdea7e182b..e35165f047f5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java @@ -53,33 +53,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "0google/cloud/aiplatform/v1/dataset_ver" + "\n0google/cloud/aiplatform/v1/dataset_ver" + "sion.proto\022\032google.cloud.aiplatform.v1\032\037" + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\034google/protobuf/stru" - + "ct.proto\032\037google/protobuf/timestamp.proto\"\362\003\n" - + "\016DatasetVersion\022\024\n" - + "\004name\030\001 \001(\tB\006\340A\003\340A\010\0224\n" - + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\006" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" - + "\004etag\030\003 \001(\t\022#\n" - + "\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024\n" - + "\014display_name\030\007 \001(\t\0220\n" - + "\010metadata\030\010" - + " \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034\n" - + "\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\r" - + "satisfies_pzs\030\n" - + " \001(\010B\003\340A\003\022\032\n\r" - + "satisfies_pzi\030\013 \001(\010B\003\340A\003:\214\001\352A\210\001\n" - + "(aiplatform.googleapis.com/DatasetVersion\022\\projects/{project}/locations/{" - + "location}/datasets/{dataset}/datasetVersions/{dataset_version}B\321\001\n" - + "\036com.google.cloud.aiplatform.v1B\023DatasetVersionProtoP\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\006proto3" + + "ct.proto\032\037google/protobuf/timestamp.prot" + + "o\"\237\004\n\016DatasetVersion\022A\n\004name\030\001 \001(\tB3\340A\003\340" + + "A\010\372A*\n(aiplatform.googleapis.com/Dataset" + + "Version\0224\n\013create_time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n\004e" + + "tag\030\003 \001(\t\022#\n\026big_query_dataset_name\030\004 \001(" + + "\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010metadata" + + "\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034" + + "\n\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\rsatisfie" + + "s_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\013 \001(\010B" + + "\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis.com/D" + + "atasetVersion\022\\projects/{project}/locati" + + "ons/{location}/datasets/{dataset}/datase" + + "tVersions/{dataset_version}B\321\001\n\036com.goog" + + "le.cloud.aiplatform.v1B\023DatasetVersionPr" + + "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( @@ -116,6 +114,7 @@ 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.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java index 205ddbd34919..8cfe877ca570 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java @@ -26,7 +26,6 @@ *
                  * Request message for
                  * [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
                - * Next ID: 4
                  * 
                * * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetRequest} @@ -359,7 +358,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder *
                    * Request message for
                    * [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
                -   * Next ID: 4
                    * 
                * * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetRequest} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java index 31108ef249cb..da7902cf625d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java @@ -26,7 +26,6 @@ *
                  * Request message for
                  * [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
                - * Next ID: 4
                  * 
                * * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest} @@ -364,7 +363,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder *
                    * Request message for
                    * [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
                -   * Next ID: 4
                    * 
                * * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java index f81c6b40d389..8322f52ea1bf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java @@ -1217,7 +1217,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The savedQuery. */ @java.lang.Override @@ -1248,7 +1248,7 @@ public java.lang.String getSavedQuery() { *
                * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The bytes for savedQuery. */ @java.lang.Override @@ -1418,7 +1418,7 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The annotationsFilter. */ @java.lang.Override @@ -1447,7 +1447,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The bytes for annotationsFilter. */ @java.lang.Override @@ -1657,7 +1657,7 @@ public int getPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The orderBy. */ @java.lang.Override @@ -1685,7 +1685,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The bytes for orderBy. */ @java.lang.Override @@ -2987,7 +2987,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The savedQuery. */ @java.lang.Deprecated @@ -3017,7 +3017,7 @@ public java.lang.String getSavedQuery() { *
                * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -3047,7 +3047,7 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @param value The savedQuery to set. * @return This builder for chaining. */ @@ -3076,7 +3076,7 @@ public Builder setSavedQuery(java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3101,7 +3101,7 @@ public Builder clearSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @param value The bytes for savedQuery to set. * @return This builder for chaining. */ @@ -3428,7 +3428,7 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -3456,7 +3456,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -3484,7 +3484,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @param value The annotationsFilter to set. * @return This builder for chaining. */ @@ -3511,7 +3511,7 @@ public Builder setAnnotationsFilter(java.lang.String value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3534,7 +3534,7 @@ public Builder clearAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @param value The bytes for annotationsFilter to set. * @return This builder for chaining. */ @@ -4102,7 +4102,7 @@ public Builder clearPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The orderBy. */ @java.lang.Deprecated @@ -4129,7 +4129,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The bytes for orderBy. */ @java.lang.Deprecated @@ -4156,7 +4156,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @param value The orderBy to set. * @return This builder for chaining. */ @@ -4182,7 +4182,7 @@ public Builder setOrderBy(java.lang.String value) { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4204,7 +4204,7 @@ public Builder clearOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @param value The bytes for orderBy to set. * @return This builder for chaining. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java index 7fb8a7181d8f..e1ed9c9d4655 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java @@ -160,7 +160,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The savedQuery. */ @java.lang.Deprecated @@ -180,7 +180,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -280,7 +280,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -298,7 +298,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -454,7 +454,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The orderBy. */ @java.lang.Deprecated @@ -471,7 +471,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The bytes for orderBy. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto index 9a6b7f607f72..a515e4b64185 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,9 +40,14 @@ message Dataset { }; // Output only. Identifier. The resource name of the Dataset. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } ]; // Required. The user-defined name of the Dataset. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto index e234e3ba6ff6..6fa941371b14 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -259,9 +259,7 @@ service DatasetService { option (google.api.method_signature) = "name"; } - // Lists Annotations belongs to a dataitem - // This RPC is only available in InternalDatasetService. It is only used for - // exporting conversation data to CCAI Insights. + // Lists Annotations belongs to a dataitem. rpc ListAnnotations(ListAnnotationsRequest) returns (ListAnnotationsResponse) { option (google.api.http) = { @@ -296,7 +294,6 @@ message CreateDatasetOperationMetadata { // Request message for // [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset]. -// Next ID: 4 message GetDatasetRequest { // Required. The name of the Dataset resource. string name = 1 [ @@ -528,7 +525,6 @@ message DeleteDatasetVersionRequest { // Request message for // [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion]. -// Next ID: 4 message GetDatasetVersionRequest { // Required. The resource name of the Dataset version to delete. // Format: diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto index 0998c614fa5f..226c2f2afc79 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,9 +37,14 @@ message DatasetVersion { }; // Output only. Identifier. The resource name of the DatasetVersion. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } ]; // Output only. Timestamp when this DatasetVersion was created. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java index cf2e82ea032a..0f31ddbc365f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java @@ -100,10 +100,12 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
                    * Output only. Identifier. The resource name of the Dataset.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -126,10 +128,12 @@ public java.lang.String getName() { * *
                    * Output only. Identifier. The resource name of the Dataset.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1829,10 +1833,12 @@ public Builder mergeFrom( * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -1854,10 +1860,12 @@ public java.lang.String getName() { * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1879,10 +1887,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1903,10 +1913,12 @@ public Builder setName(java.lang.String value) { * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1923,10 +1935,12 @@ public Builder clearName() { * *
                      * Output only. Identifier. The resource name of the Dataset.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java index a2f0eee43956..fa2521cc6928 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java @@ -31,10 +31,12 @@ public interface DatasetOrBuilder * *
                    * Output only. Identifier. The resource name of the Dataset.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -46,10 +48,12 @@ public interface DatasetOrBuilder * *
                    * Output only. Identifier. The resource name of the Dataset.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java index 3fc18e403284..700bac0d1e7b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java @@ -82,9 +82,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\037google/api/field_behavior.proto\032\031googl" + "e/api/resource.proto\0325google/cloud/aiplatform/v1beta1/encryption_spec.proto\032(goo" + "gle/cloud/aiplatform/v1beta1/io.proto\0321google/cloud/aiplatform/v1beta1/saved_que" - + "ry.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\225\006\n" - + "\007Dataset\022\024\n" - + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n" + + "ry.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\273\006\n" + + "\007Dataset\022:\n" + + "\004name\030\001 \001(\tB,\340A\003\340A\010\372A#\n" + + "!aiplatform.googleapis.com/Dataset\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n" + "\013description\030\020 \001(\t\022 \n" + "\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n" @@ -95,11 +96,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + "\004etag\030\006 \001(\t\022D\n" - + "\006labels\030\007 \003" - + "(\01324.google.cloud.aiplatform.v1beta1.Dataset.LabelsEntry\022B\n\r" + + "\006labels\030\007 \003(\013" + + "24.google.cloud.aiplatform.v1beta1.Dataset.LabelsEntry\022B\n\r" + "saved_queries\030\t \003(\0132+.google.cloud.aiplatform.v1beta1.SavedQuery\022H\n" - + "\017encryption_spec\030\013 \001(\0132/.google.c" - + "loud.aiplatform.v1beta1.EncryptionSpec\022\036\n" + + "\017encryption_spec\030\013" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022\036\n" + "\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n" + "\017model_reference\030\022 \001(\tB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r" @@ -107,14 +108,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:b\352A_\n" - + "!aiplatform.googleapis.com/Data" - + "set\022:projects/{project}/locations/{location}/datasets/{dataset}\"\263\003\n" + + "!aiplatform.googleapis.com/Datase" + + "t\022:projects/{project}/locations/{location}/datasets/{dataset}\"\263\003\n" + "\020ImportDataConfig\022@\n\n" + "gcs_source\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022_\n" - + "\020data_item_labels\030\002 \003(\0132E.google.cloud.aiplatfo" - + "rm.v1beta1.ImportDataConfig.DataItemLabelsEntry\022b\n" - + "\021annotation_labels\030\003 \003(\0132G.goo" - + "gle.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry\022\036\n" + + "\020data_item_labels\030\002 \003(\0132E.google.cloud.aiplatform" + + ".v1beta1.ImportDataConfig.DataItemLabelsEntry\022b\n" + + "\021annotation_labels\030\003 \003(\0132G.googl" + + "e.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry\022\036\n" + "\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n" + "\023DataItemLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -124,10 +125,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001B\010\n" + "\006source\"\342\001\n" + "\020ExportDataConfig\022J\n" - + "\017gcs_destination\030\001 \001(\0132/.google.clo" - + "ud.aiplatform.v1beta1.GcsDestinationH\000\022N\n" - + "\016fraction_split\030\005 \001(\01324.google.cloud.ai" - + "platform.v1beta1.ExportFractionSplitH\001\022\032\n" + + "\017gcs_destination\030\001" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000\022N\n" + + "\016fraction_split\030\005" + + " \001(\01324.google.cloud.aiplatform.v1beta1.ExportFractionSplitH\001\022\032\n" + "\022annotations_filter\030\002 \001(\tB\r\n" + "\013destinationB\007\n" + "\005split\"d\n" @@ -135,11 +136,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021training_fraction\030\001 \001(\001\022\033\n" + "\023validation_fraction\030\002 \001(\001\022\025\n\r" + "test_fraction\030\003 \001(\001B\343\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\014Datase" - + "tProtoP\001ZCcloud.google.com/go/aiplatform" - + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037" - + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" - + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\014DatasetP" + + "rotoP\001ZCcloud.google.com/go/aiplatform/a" + + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go" + + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" + + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -238,6 +239,7 @@ 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.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java index 8a30fe5d9a80..642378186061 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java @@ -85,10 +85,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                    * Output only. Identifier. The resource name of the DatasetVersion.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -111,10 +113,12 @@ public java.lang.String getName() { * *
                    * Output only. Identifier. The resource name of the DatasetVersion.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1118,10 +1122,12 @@ public Builder mergeFrom( * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -1143,10 +1149,12 @@ public java.lang.String getName() { * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1168,10 +1176,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1192,10 +1202,12 @@ public Builder setName(java.lang.String value) { * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1212,10 +1224,12 @@ public Builder clearName() { * *
                      * Output only. Identifier. The resource name of the DatasetVersion.
                +     * Format:
                +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                      * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java index 5cc81f2db9ab..dd29d0c07a16 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java @@ -31,10 +31,12 @@ public interface DatasetVersionOrBuilder * *
                    * Output only. Identifier. The resource name of the DatasetVersion.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -46,10 +48,12 @@ public interface DatasetVersionOrBuilder * *
                    * Output only. Identifier. The resource name of the DatasetVersion.
                +   * Format:
                +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
                    * 
                * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java index 496a098d7253..4f57711955e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java @@ -53,30 +53,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n5google/cloud/aiplatform/v1beta1/datase" - + "t_version.proto\022\037google.cloud.aiplatform" + "\n" + + "5google/cloud/aiplatform/v1beta1/dataset_version.proto\022\037google.cloud.aiplatform" + ".v1beta1\032\037google/api/field_behavior.prot" + "o\032\031google/api/resource.proto\032\034google/pro" - + "tobuf/struct.proto\032\037google/protobuf/time" - + "stamp.proto\"\362\003\n\016DatasetVersion\022\024\n\004name\030\001" - + " \001(\tB\006\340A\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022\014\n\004etag\030\003 \001(\t\022#\n\026big_query_dataset_name" - + "\030\004 \001(\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010met" - + "adata\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003" - + "\340A\002\022\034\n\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\rsat" - + "isfies_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\013" - + " \001(\010B\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis." - + "com/DatasetVersion\022\\projects/{project}/l" - + "ocations/{location}/datasets/{dataset}/d" - + "atasetVersions/{dataset_version}B\352\001\n#com" - + ".google.cloud.aiplatform.v1beta1B\023Datase" - + "tVersionProtoP\001ZCcloud.google.com/go/aip" - + "latform/apiv1beta1/aiplatformpb;aiplatfo" - + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" - + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" - + "e::Cloud::AIPlatform::V1beta1b\006proto3" + + "tobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\237\004\n" + + "\016DatasetVersion\022A\n" + + "\004name\030\001 \001(\tB3\340A\003\340A\010\372A*\n" + + "(aiplatform.googleapis.com/DatasetVersion\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + + "\004etag\030\003 \001(\t\022#\n" + + "\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024\n" + + "\014display_name\030\007 \001(\t\0220\n" + + "\010metadata\030\010" + + " \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034\n" + + "\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\r" + + "satisfies_pzs\030\n" + + " \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030\013 \001(\010B\003\340A\003:\214\001\352A\210\001\n" + + "(aiplatform.googleapis.com/DatasetVersion\022\\projects/{proje" + + "ct}/locations/{location}/datasets/{datas" + + "et}/datasetVersions/{dataset_version}B\352\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\023DatasetVersionProtoP\001ZCcloud.google.com/g" + + "o/aiplatform/apiv1beta1/aiplatformpb;aip" + + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -113,6 +117,7 @@ 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.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto index 43032debb0c1..d208f8e2ec26 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,9 +40,14 @@ message Dataset { }; // Output only. Identifier. The resource name of the Dataset. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } ]; // Required. The user-defined name of the Dataset. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto index 4599081f7426..ecdeb1a0da9c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,9 +37,14 @@ message DatasetVersion { }; // Output only. Identifier. The resource name of the DatasetVersion. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } ]; // Output only. Timestamp when this DatasetVersion was created. diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java index 6b6e8cbc4d2c..a62590d334a9 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java @@ -1020,7 +1020,8 @@ * * *

                ListLocations - *

                Lists information about the supported locations for this service. + *

                Lists information about the supported locations for this service.This method can be called in two ways: + *

                * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

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

                *
                  @@ -7090,7 +7091,13 @@ public final UnaryCallable exportArtifactCalla // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

                  * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

                  Sample code: * @@ -7123,7 +7130,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

                  * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

                  Sample code: * @@ -7157,7 +7170,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

                  * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

                  Sample code: * diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java index c84988f9e76e..185058aa92c1 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java @@ -84,14 +84,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ".google/devtools/artifactregistry/v1/file.proto\022#google.devtools.artifactregist" + "ry.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\223\001\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\246\001\n" + "\004Hash\022@\n" + "\004type\030\001 \001(\01622.google.devtools.artifactregistry.v1.Hash.HashType\022\r\n" - + "\005value\030\002 \001(\014\":\n" + + "\005value\030\002 \001(\014\"M\n" + "\010HashType\022\031\n" + "\025HASH_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006SHA256\020\001\022\007\n" - + "\003MD5\020\002\"\230\004\n" + + "\003MD5\020\002\022\021\n\r" + + "DIRSUM_SHA256\020\003\"\230\004\n" + "\004File\022\014\n" + "\004name\030\001 \001(\t\022\022\n\n" + "size_bytes\030\003 \001(\003\0229\n" @@ -100,16 +101,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\r\n" + "\005owner\030\007 \001(\t\0223\n\n" + "fetch_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n" - + "\013annotations\030\t \003(\0132:.google.devtools." - + "artifactregistry.v1.File.AnnotationsEntryB\003\340A\001\0322\n" + + "\013annotations\030\t \003(\013" + + "2:.google.devtools.artifactregistry.v1.File.AnnotationsEntryB\003\340A\001\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:y\352Av\n" - + "$artifactregistry.googleapis.com/File\022Nprojects/{project" - + "}/locations/{location}/repositories/{repository}/files/{file}\"\231\001\n" + + "$artifactregistry.googleapis.com/File\022Nprojects/{project}/locations/{location" + + "}/repositories/{repository}/files/{file}\"\231\001\n" + "\020ListFilesRequest\022<\n" - + "\006parent\030\001 \001(" - + "\tB,\340A\002\372A&\022$artifactregistry.googleapis.com/File\022\016\n" + + "\006parent\030\001 \001(\tB,\340" + + "A\002\372A&\022$artifactregistry.googleapis.com/File\022\016\n" + "\006filter\030\004 \001(\t\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022\020\n" @@ -124,14 +125,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + "$artifactregistry.googleapis.com/File\"\207\001\n" + "\021UpdateFileRequest\022<\n" - + "\004file\030\001 \001(\0132).g" - + "oogle.devtools.artifactregistry.v1.FileB\003\340A\002\0224\n" + + "\004file\030\001" + + " \001(\0132).google.devtools.artifactregistry.v1.FileB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002B\364\001\n" - + "\'com.google.devtools.artifactregistry.v1B\tFileProtoP\001ZPclo" - + "ud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002" - + " Google.Cloud.ArtifactRegistry.V1\312\002 Googl" - + "e\\Cloud\\ArtifactRegistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3" + + "\'com.google.devtools.artifactregistry.v1B\tFileProtoP\001ZPcloud.google.com/go/arti" + + "factregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002" + + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactRegis" + + "try\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java index c6a05a020f4a..56398a00f2e1 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java @@ -111,6 +111,16 @@ public enum HashType implements com.google.protobuf.ProtocolMessageEnum { * MD5 = 2; */ MD5(2), + /** + * + * + *

                  +     * Dirsum SHA256 hash.
                  +     * 
                  + * + * DIRSUM_SHA256 = 3; + */ + DIRSUM_SHA256(3), UNRECOGNIZED(-1), ; @@ -157,6 +167,17 @@ public enum HashType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MD5_VALUE = 2; + /** + * + * + *
                  +     * Dirsum SHA256 hash.
                  +     * 
                  + * + * DIRSUM_SHA256 = 3; + */ + public static final int DIRSUM_SHA256_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,6 +208,8 @@ public static HashType forNumber(int value) { return SHA256; case 2: return MD5; + case 3: + return DIRSUM_SHA256; default: return null; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto index c9da2a5d7be8..67a1b9cf42b6 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto index 691638efd8d6..a61538a9475f 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto index 7f283f684a87..da05158d2d81 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto index 2e89c126a96e..890e42a9e0c1 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto index 35b3ebde6f87..ed5886d9f5e7 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,6 +41,9 @@ message Hash { // MD5 hash. MD5 = 2; + + // Dirsum SHA256 hash. + DIRSUM_SHA256 = 3; } // The algorithm used to compute the hash value. diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto index b26f31a9e783..85c0c10f0ff4 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto index 0f459b4f1cf2..3a5d56918cbb 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto index 94641accdbb0..c7e59a59d84b 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto index 35ae37ef1e5b..8bb9c0426a71 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto index 40fc30a008a7..82bfb3ebf3f3 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto index cfe5be0ab580..03be67007bdc 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto index b7e7c368092d..0b17ae07be06 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto index 54f94b30a788..f617db75c128 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto index 3268a2f8ad0c..a7bcb3d59734 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto index 4efa5c15fec3..05a547676135 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto index 477bbda9a89f..a2c5b5100b79 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto index 3592c8f4896f..b36a13118249 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/actor.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/actor.proto index b214e08a2c1b..3dfb5de103eb 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/actor.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/actor.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment.proto index 02725e3730b4..9039620b3143 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment_service.proto index d7ee6559ecce..5c63b8dc101f 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case.proto index 63e65a4cd8a3..b14160b4c907 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case_service.proto index abd77bf62bf9..4030bc1cafe4 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment.proto index 2729176a3f6e..85c6f6076c86 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment_service.proto index d05d2ae763ae..6321b52b620e 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/escalation.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/escalation.proto index 5f5d68ca1972..ffc79d9e11f7 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/escalation.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/escalation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/actor.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/actor.proto index 908b94ad5fb0..6effd8a3acfb 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/actor.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/actor.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment.proto index 1ea39feaa846..918d006edbd4 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment_service.proto index e488712eec14..acf530964437 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case.proto index b042e9d95e45..10a2cb6c8c9d 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case_service.proto index cd9894d2b97e..8863f275036d 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment.proto index 0bc668d095f7..dd6b1ee2e0fd 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment_service.proto index f0cd726cfb3e..dff46126955f 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/content.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/content.proto index bd7c184bcd98..29750d7c24fe 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/content.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/content.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/email_message.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/email_message.proto index f20350358d46..6321cf006451 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/email_message.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/email_message.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/escalation.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/escalation.proto index e3cd802232f1..abec570edec0 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/escalation.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/escalation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_item.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_item.proto index 0540170772ec..c275dbcc3410 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_item.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_item.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_service.proto index bcf447d31d47..02d36c198080 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.