Send feedback
Class AuthConfig.UserPasswordConfig.Builder (0.28.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class AuthConfig . UserPasswordConfig . Builder extends GeneratedMessageV3 . Builder<AuthConfig . UserPasswordConfig . Builder > implements AuthConfig . UserPasswordConfigOrBuilder
Parameters to support Username and Password Authentication.
Protobuf type google.cloud.apihub.v1.AuthConfig.UserPasswordConfig
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 AuthConfig . UserPasswordConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public AuthConfig . UserPasswordConfig build ()
buildPartial()
public AuthConfig . UserPasswordConfig buildPartial ()
clear()
public AuthConfig . UserPasswordConfig . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AuthConfig . UserPasswordConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AuthConfig . UserPasswordConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearPassword()
public AuthConfig . UserPasswordConfig . Builder clearPassword ()
Required. Secret version reference containing the password.
The secretmanager.versions.access
permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
clearUsername()
public AuthConfig . UserPasswordConfig . Builder clearUsername ()
Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public AuthConfig . UserPasswordConfig . Builder clone ()
Overrides
getDefaultInstanceForType()
public AuthConfig . UserPasswordConfig getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getPassword()
public Secret getPassword ()
Required. Secret version reference containing the password.
The secretmanager.versions.access
permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
Secret
The password.
getPasswordBuilder()
public Secret . Builder getPasswordBuilder ()
Required. Secret version reference containing the password.
The secretmanager.versions.access
permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
getPasswordOrBuilder()
public SecretOrBuilder getPasswordOrBuilder ()
Required. Secret version reference containing the password.
The secretmanager.versions.access
permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
getUsername()
public String getUsername ()
Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The username.
getUsernameBytes()
public ByteString getUsernameBytes ()
Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for username.
hasPassword()
public boolean hasPassword ()
Required. Secret version reference containing the password.
The secretmanager.versions.access
permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the password field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(AuthConfig.UserPasswordConfig other)
public AuthConfig . UserPasswordConfig . Builder mergeFrom ( AuthConfig . UserPasswordConfig other )
public AuthConfig . UserPasswordConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public AuthConfig . UserPasswordConfig . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergePassword(Secret value)
public AuthConfig . UserPasswordConfig . Builder mergePassword ( Secret value )
Required. Secret version reference containing the password.
The secretmanager.versions.access
permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
Secret
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AuthConfig . UserPasswordConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AuthConfig . UserPasswordConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setPassword(Secret value)
public AuthConfig . UserPasswordConfig . Builder setPassword ( Secret value )
Required. Secret version reference containing the password.
The secretmanager.versions.access
permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
Secret
setPassword(Secret.Builder builderForValue)
public AuthConfig . UserPasswordConfig . Builder setPassword ( Secret . Builder builderForValue )
Required. Secret version reference containing the password.
The secretmanager.versions.access
permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AuthConfig . UserPasswordConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AuthConfig . UserPasswordConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setUsername(String value)
public AuthConfig . UserPasswordConfig . Builder setUsername ( String value )
Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The username to set.
setUsernameBytes(ByteString value)
public AuthConfig . UserPasswordConfig . Builder setUsernameBytes ( ByteString value )
Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for username to set.
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-10-02 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-10-02 UTC."],[],[]]