Package com.google.monitoring.v3
Class UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
- com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
-
- All Implemented Interfaces:
UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UptimeCheckConfig.HttpCheck.BasicAuthentication
public static final class UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder> implements UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder
The authentication parameters to provide to the specified resource or URL that requires a username and password. Currently, only [Basic HTTP authentication](https://tools.ietf.org/html/rfc7617) is supported in Uptime checks.
Protobuf typegoogle.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UptimeCheckConfig.HttpCheck.BasicAuthentication.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UptimeCheckConfig.HttpCheck.BasicAuthenticationbuild()UptimeCheckConfig.HttpCheck.BasicAuthenticationbuildPartial()UptimeCheckConfig.HttpCheck.BasicAuthentication.Builderclear()UptimeCheckConfig.HttpCheck.BasicAuthentication.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)UptimeCheckConfig.HttpCheck.BasicAuthentication.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)UptimeCheckConfig.HttpCheck.BasicAuthentication.BuilderclearPassword()The password to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.BuilderclearUsername()The username to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builderclone()UptimeCheckConfig.HttpCheck.BasicAuthenticationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetPassword()The password to use when authenticating with the HTTP server.com.google.protobuf.ByteStringgetPasswordBytes()The password to use when authenticating with the HTTP server.StringgetUsername()The username to use when authenticating with the HTTP server.com.google.protobuf.ByteStringgetUsernameBytes()The username to use when authenticating with the HTTP server.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildermergeFrom(UptimeCheckConfig.HttpCheck.BasicAuthentication other)UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildermergeFrom(com.google.protobuf.Message other)UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildersetPassword(String value)The password to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildersetPasswordBytes(com.google.protobuf.ByteString value)The password to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildersetUsername(String value)The username to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.BuildersetUsernameBytes(com.google.protobuf.ByteString value)The username to use when authenticating with the HTTP server.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
clear
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
getDefaultInstanceForType
public UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UptimeCheckConfig.HttpCheck.BasicAuthentication build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UptimeCheckConfig.HttpCheck.BasicAuthentication buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
setField
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
clearField
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
clearOneof
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
setRepeatedField
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
addRepeatedField
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
mergeFrom
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
mergeFrom
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder mergeFrom(UptimeCheckConfig.HttpCheck.BasicAuthentication other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
mergeFrom
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>- Throws:
IOException
-
getUsername
public String getUsername()
The username to use when authenticating with the HTTP server.
string username = 1;- Specified by:
getUsernamein interfaceUptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()
The username to use when authenticating with the HTTP server.
string username = 1;- Specified by:
getUsernameBytesin interfaceUptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder- Returns:
- The bytes for username.
-
setUsername
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder setUsername(String value)
The username to use when authenticating with the HTTP server.
string username = 1;- Parameters:
value- The username to set.- Returns:
- This builder for chaining.
-
clearUsername
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clearUsername()
The username to use when authenticating with the HTTP server.
string username = 1;- Returns:
- This builder for chaining.
-
setUsernameBytes
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder setUsernameBytes(com.google.protobuf.ByteString value)
The username to use when authenticating with the HTTP server.
string username = 1;- Parameters:
value- The bytes for username to set.- Returns:
- This builder for chaining.
-
getPassword
public String getPassword()
The password to use when authenticating with the HTTP server.
string password = 2;- Specified by:
getPasswordin interfaceUptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder- Returns:
- The password.
-
getPasswordBytes
public com.google.protobuf.ByteString getPasswordBytes()
The password to use when authenticating with the HTTP server.
string password = 2;- Specified by:
getPasswordBytesin interfaceUptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder- Returns:
- The bytes for password.
-
setPassword
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder setPassword(String value)
The password to use when authenticating with the HTTP server.
string password = 2;- Parameters:
value- The password to set.- Returns:
- This builder for chaining.
-
clearPassword
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clearPassword()
The password to use when authenticating with the HTTP server.
string password = 2;- Returns:
- This builder for chaining.
-
setPasswordBytes
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder setPasswordBytes(com.google.protobuf.ByteString value)
The password to use when authenticating with the HTTP server.
string password = 2;- Parameters:
value- The bytes for password to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
mergeUnknownFields
public final UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
-