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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UptimeCheckConfig.HttpCheck.BasicAuthentication
build()
UptimeCheckConfig.HttpCheck.BasicAuthentication
buildPartial()
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
clear()
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
clearPassword()
The password to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
clearUsername()
The username to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
clone()
UptimeCheckConfig.HttpCheck.BasicAuthentication
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getPassword()
The password to use when authenticating with the HTTP server.com.google.protobuf.ByteString
getPasswordBytes()
The password to use when authenticating with the HTTP server.String
getUsername()
The username to use when authenticating with the HTTP server.com.google.protobuf.ByteString
getUsernameBytes()
The username to use when authenticating with the HTTP server.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
mergeFrom(UptimeCheckConfig.HttpCheck.BasicAuthentication other)
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
mergeFrom(com.google.protobuf.Message other)
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
setPassword(String value)
The password to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
setPasswordBytes(com.google.protobuf.ByteString value)
The password to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
setUsername(String value)
The username to use when authenticating with the HTTP server.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
setUsernameBytes(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
clear
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
getDefaultInstanceForType
public UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UptimeCheckConfig.HttpCheck.BasicAuthentication build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UptimeCheckConfig.HttpCheck.BasicAuthentication buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in 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:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
clearField
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
clearOneof
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in 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:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
mergeFrom
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in 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:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getUsername
in 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:
getUsernameBytes
in 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:
getPassword
in 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:
getPasswordBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
mergeUnknownFields
public final UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder>
-
-