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.GeneratedMessage.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.GeneratedMessage.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 type
google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The password to use when authenticating with the HTTP server.The username to use when authenticating with the HTTP server.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe password to use when authenticating with the HTTP server.com.google.protobuf.ByteStringThe password to use when authenticating with the HTTP server.The username to use when authenticating with the HTTP server.com.google.protobuf.ByteStringThe username to use when authenticating with the HTTP server.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setPassword(String value) The password to use when authenticating with the HTTP server.setPasswordBytes(com.google.protobuf.ByteString value) The password to use when authenticating with the HTTP server.setUsername(String value) The username to use when authenticating with the HTTP server.setUsernameBytes(com.google.protobuf.ByteString value) The username to use when authenticating with the HTTP server.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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
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
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.
-