Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see
Model versions and lifecycle .
Send feedback
Class ApiAuth.Builder (1.20.1)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class ApiAuth . Builder extends GeneratedMessageV3 . Builder<ApiAuth . Builder > implements ApiAuthOrBuilder
The generic reusable api auth config.
Protobuf type google.cloud.vertexai.v1.ApiAuth
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ApiAuth . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
buildPartial()
public ApiAuth buildPartial ()
clear()
public ApiAuth . Builder clear ()
Overrides
clearApiKeyConfig()
public ApiAuth . Builder clearApiKeyConfig ()
The API secret.
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
clearAuthConfig()
public ApiAuth . Builder clearAuthConfig ()
clearField(Descriptors.FieldDescriptor field)
public ApiAuth . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ApiAuth . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public ApiAuth . Builder clone ()
Overrides
getApiKeyConfig()
public ApiAuth . ApiKeyConfig getApiKeyConfig ()
The API secret.
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
getApiKeyConfigBuilder()
public ApiAuth . ApiKeyConfig . Builder getApiKeyConfigBuilder ()
The API secret.
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
getApiKeyConfigOrBuilder()
public ApiAuth . ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder ()
The API secret.
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
getAuthConfigCase()
public ApiAuth . AuthConfigCase getAuthConfigCase ()
getDefaultInstanceForType()
public ApiAuth getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
hasApiKeyConfig()
public boolean hasApiKeyConfig ()
The API secret.
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
Returns
Type
Description
boolean
Whether the apiKeyConfig field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeApiKeyConfig(ApiAuth.ApiKeyConfig value)
public ApiAuth . Builder mergeApiKeyConfig ( ApiAuth . ApiKeyConfig value )
The API secret.
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
mergeFrom(ApiAuth other)
public ApiAuth . Builder mergeFrom ( ApiAuth other )
Parameter
Name
Description
other
ApiAuth
public ApiAuth . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ApiAuth . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ApiAuth . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setApiKeyConfig(ApiAuth.ApiKeyConfig value)
public ApiAuth . Builder setApiKeyConfig ( ApiAuth . ApiKeyConfig value )
The API secret.
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
setApiKeyConfig(ApiAuth.ApiKeyConfig.Builder builderForValue)
public ApiAuth . Builder setApiKeyConfig ( ApiAuth . ApiKeyConfig . Builder builderForValue )
The API secret.
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public ApiAuth . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ApiAuth . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ApiAuth . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-28 UTC."],[],[]]